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.