https://sourceware.org/bugzilla/show_bug.cgi?id=14187
--- Comment #7 from Stas Sergeev <stsp at users dot sourceforge.net> --- (In reply to Ian Lance Taylor from comment #6) > The difference in -Ttext behaviour between gold and GNU ld is intentional. > The -Ttext option in GNU ld is nearly meaningless when using ELF. Gold's > -Ttext option corresponds to GNU ld's -Ttext-segment option. The difference > in accepted numbers is not. For some reason nobody ever noticed that ld > defaults to hex and gold defaults to decimal. This bug was filled in 2012, so obviously it was noticed also before. IMHO the intentional differences are good, but you could add a command-line switch to enable them. For example it seems --section-start actually accepts the decimal numbers as hex (without requiring 0x), but -T requires 0x. So you have inconsistencies. > Yes, this means that gold is not a drop-in linker replacement for all uses. > That is true for several reasons. Its fine as long as you teach the distributions about this. :) So far at least fedora provides gold as an "alternative" to ld.bfd, so that you only do alternatives --set ld /usr/bin/ld.gold https://fedoraproject.org/wiki/Features/GoldLinkerDefault They say: "The only user-visible change should be link times improve, particularly for very large applications." I think ubuntu does the same. So people really think it is a drop-in replacement. Maybe you can implement an option that will make it fully compatible? Then fedora will be able to perhaps run it via some wrapper script that will enable that compatibility mode? No current users will be affected. > As far as I can tell GNU ld does not search /usr/local/lib either, unless > configured with a special --with-lib-path option. In any case, that should > be a different bug report. OK, I'll report that to fedora then, thanks. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils