Summary: | Common symbol version information wrong in ld.bfd-linked library | ||
---|---|---|---|
Product: | binutils | Reporter: | Timm Bäder <tbaeder> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nickc |
Priority: | P2 | ||
Version: | 2.35 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Timm Bäder
2021-11-24 14:15:54 UTC
This does not reproduce for me on any upstream version of binutils I tried. Ok, with current ld.bfd from the master branch, I get lib1.so: file format elf64-x86-64 DYNAMIC SYMBOL TABLE: 0000000000000000 w D *UND* 0000000000000000 Base _ITM_deregisterTMCloneTable 0000000000000000 w D *UND* 0000000000000000 Base __gmon_start__ 0000000000000000 w D *UND* 0000000000000000 Base _ITM_registerTMCloneTable 0000000000000000 w DF *UND* 0000000000000000 GLIBC_2.2.5 __cxa_finalize 0000000000004019 g DO .bss 0000000000000001 Base foo 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. Got further confirmation from LLD upstream that everything is as it should be with newer binutils. Thanks. |