[Bug ld/11339] ld lma default change breaks existing linker scripts
--- Additional Comments From jamesb at broadcom dot com 2010-03-04 08:36 --- As per the mailing list discussion. -- What|Removed |Added Status|NEW |RESOLVED Resolution||WONTFIX http://sourceware.org/bugzilla/show_bug.cgi?id=11339 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11350] New: Broken versioned symbols in the output for the relocatable objects
When linking a relocatable object, where any input object has the defined global versioned symbols, gold cuts the symbol version for the symbols in the output symbol table. It means, that kind of symbols lose the version information in the output object; also, if the input object has two versions of one symbol -- versioned and non-versioned -- the output object will contain two symbols with identical names (duplicate). There is some example for GNU gold (GNU Binutils 2.20.51.20100304) 1.9 This is a part of readelf output for the input object (readelf -sW divdi3.os), which shows the versioned and non-versioned symbols for __divdi3: Symbol table '.symtab' contains 34 entries: Num:Value Size TypeBind Vis Ndx Name ... 20: 05dc 120 FUNCGLOBAL DEFAULT1 __divdi3 ... 30: 05dc 120 FUNCGLOBAL DEFAULT1 __div...@glibc_2.4 ... Link the input object as relocatable with the following command: ld -r -o divdi3.out divdi3.os This is a part of readelf output for the result object (readelf -sW divdi3.out), which shows the symbol duplicates for __divdi3: Symbol table '.symtab' contains 27 entries: Num:Value Size TypeBind Vis Ndx Name ... 13: 05dc 120 FUNCGLOBAL DEFAULT1 __divdi3 ... 24: 05dc 120 FUNCGLOBAL DEFAULT1 __divdi3 ... (I will attach the complete readelf outputs to the bug report) So, as far as I understood, it happens because of two linked problems: the Symbol_table::sized_write_symbol method always looks for the non-versioned version of symbol in the symbol names string pool; and the symbol names string pool never gets a string representation for that kind of versioned symbols (i.e. the strings like "n...@ver"). -- Summary: Broken versioned symbols in the output for the relocatable objects Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: ian at airs dot com ReportedBy: vkutuzov at accesssoftek dot com CC: bug-binutils at gnu dot org GCC host triplet: i686-pc-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=11350 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11350] Broken versioned symbols in the output for the relocatable objects
--- Additional Comments From vkutuzov at accesssoftek dot com 2010-03-04 23:44 --- Created an attachment (id=4646) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4646&action=view) Readelf output for the source object -- http://sourceware.org/bugzilla/show_bug.cgi?id=11350 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11350] Broken versioned symbols in the output for the relocatable objects
--- Additional Comments From vkutuzov at accesssoftek dot com 2010-03-04 23:45 --- Created an attachment (id=4647) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4647&action=view) Readelf output for the result object -- http://sourceware.org/bugzilla/show_bug.cgi?id=11350 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11350] Broken versioned symbols in the output for the relocatable objects
--- Additional Comments From vkutuzov at accesssoftek dot com 2010-03-04 23:45 --- Created an attachment (id=4648) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4648&action=view) The source object -- http://sourceware.org/bugzilla/show_bug.cgi?id=11350 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11350] Broken versioned symbols in the output for the relocatable objects
--- Additional Comments From vkutuzov at accesssoftek dot com 2010-03-04 23:46 --- Created an attachment (id=4649) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4649&action=view) The rsult obejct -- http://sourceware.org/bugzilla/show_bug.cgi?id=11350 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils