bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x


From: ian at airs dot com
Subject: [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss
Date: Wed, 26 Aug 2015 12:41:06 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=14187

--- Comment #6 from Ian Lance Taylor <ian at airs dot com> ---
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.

Yes, this means that gold is not a drop-in linker replacement for all uses. 
That is true for several reasons.

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]