[Bug ld/28622] New: Common symbol version information wrong in ld.bfd-linked library

2021-11-24 Thread tbaeder at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28622

Bug ID: 28622
   Summary: Common symbol version information wrong in
ld.bfd-linked library
   Product: binutils
   Version: 2.35.2
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: tbaeder at redhat dot com
  Target Milestone: ---

Using this reproducer script:

#!/bin/sh

echo '.globl foo' > foo.s
echo '.comm foo,1,1' >> foo.s

# foo version in lib1.so is Base
gcc -shared -fPIC -o lib1.so foo.s
objdump -T lib1.so | grep foo


# foo's version in lib2.so is now ""
gcc -shared -fPIC -o lib2.so -L. -l1 foo.s
objdump -T lib2.so | grep foo



foo's version in lib1.so ends up being "Base". This reproducible with ld.bfd,
lld and gold.

However, foo's version in lib2.so ends up being "" (no version information
given). That *only* reproduces with ld.bfd and not with lld or gold.
Using the latter two, foo's version is Base in lib2.so as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/28564] sysdump: stack-buffer-overflow in sysdump.c:65

2021-11-24 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28564

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||nickc at redhat dot com
 Resolution|--- |FIXED

--- Comment #2 from Nick Clifton  ---
I have committed a small patch to fix this problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/28564] sysdump: stack-buffer-overflow in sysdump.c:65

2021-11-24 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=28564

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d8ed269e5c875845fcd0f1a25457eafe3f485249

commit d8ed269e5c875845fcd0f1a25457eafe3f485249
Author: Nick Clifton 
Date:   Wed Nov 24 17:02:02 2021 +

Fix an illegal memory access parsing a corrupt sysroff file.

PR 28564
* sysdump.c (getCHARS): Check for an out of bounds read.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/25374] linking to msvc import library results in invalid IDT entry

2021-11-24 Thread mati865 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25374

Mateusz Mikuła  changed:

   What|Removed |Added

 CC||mati865 at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/28622] Common symbol version information wrong in ld.bfd-linked library

2021-11-24 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28622

--- Comment #1 from Alan Modra  ---
This does not reproduce for me on any upstream version of binutils I tried.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/28603] Incorrect branch offset from the start of a function after enable LTO

2021-11-24 Thread sen2403 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28603

--- Comment #1 from Eason Lai  ---
I have tried to reproduce the issue by creating a simple code for reference,
but no lucky. If anyone else could give me hint which part of linker may causes
this problem, I will try deep dive the source code and find I can help or not.
Thank you.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/28622] Common symbol version information wrong in ld.bfd-linked library

2021-11-24 Thread tbaeder at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28622

--- Comment #2 from Timm Bäder  ---
Ok, with current ld.bfd from the master branch, I get

lib1.so: file format elf64-x86-64

DYNAMIC SYMBOL TABLE:
  w   D  *UND*    Base   
_ITM_deregisterTMCloneTable
  w   D  *UND*    Base__gmon_start__
  w   D  *UND*    Base   
_ITM_registerTMCloneTable
  w   DF *UND*    GLIBC_2.2.5 __cxa_finalize
4019 gDO .bss   0001  Basefoo


for the lib1.so. With the 2.35.2 installed on my system, the first three
symbols had no version information.

And the output for lib2.so is exactly the same. Looks like this is already
fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.