bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: tbaeder at redhat dot com
Subject: [Bug ld/28622] New: Common symbol version information wrong in ld.bfd-linked library
Date: Wed, 24 Nov 2021 14:15:54 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]