------- Additional Comments From amodra at gmail dot com 2010-01-15 09:37 ------- The sysv gabi says: "When the link editor combines several relocatable object files, it does not allow multiple definitions of STB_GLOBAL symbols with the same name. On the other hand, if a defined global symbol exists, the appearance of a weak symbol with the same name will not cause an error. The link editor honors the global definition and ignores the weak ones. Similarly, if a common symbol exists (that is, a symbol whose st_shndx field holds SHN_COMMON), the appearance of a weak symbol with the same name will not cause an error. The link editor honors the common definition and ignores the weak ones."
I interpret "ignores" to mean that whether the weak symbol is present or not, the end result should be the same. So I think HJ's 9670 patch to merge visibilty from the weak symbol to the strong one is totally bogus. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at sources dot |amodra at gmail dot com |redhat dot com | Status|NEW |ASSIGNED Last reconfirmed|0000-00-00 00:00:00 |2010-01-15 09:37:08 date| | http://sourceware.org/bugzilla/show_bug.cgi?id=11175 ------- 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