https://sourceware.org/bugzilla/show_bug.cgi?id=33577
--- Comment #50 from Michael Matz <matz at suse dot de> --- (In reply to H.J. Lu from comment #44) > ld.so in glibc always determines bindings of VER_NDX_LOCAL symbols by > st_other. > Linux linkers should be the same. Or you could just admit that ld.so was incompletely implementing the spec by not looking at the version index when its there. (In reply to H.J. Lu from comment #45) > The old spec specifies symbols with version index 0 to local binding. > However, it is never implemented on Solaris, ld nor ld.so in Linux. But by _everything_ except ld.bfd and glibc ld.so. And > How about adding a linker option to use version index 1 for unversioned > defined symbol? I don't see how a linker option to not produce buggy output is useful. But perhaps one to do produce buggy output. I.e. sure, but default to use NDX_GLOBAL for defined STB_GLOBAL symbols. > In the meantime, all Linux linkers should be changed to follow ld and ld.so. Why? The others follow the spec. -- You are receiving this mail because: You are on the CC list for the bug.
