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: ccoutant at gmail dot com
Subject: [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss
Date: Tue, 25 Aug 2015 23:47:58 +0000

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

--- Comment #3 from Cary Coutant <ccoutant at gmail dot com> ---
We've discussed fixing this before, but we now have legacy scripts that invoke
gold with decimal values, and changing it would break them. We could certainly
peek at the number and treat it as hex if it has any A-F digits, but that still
wouldn't catch options like -Ttext=10000. We could further favor hex over
decimal unless it looks like a power of two when treated as decimal (or an
integer multiple of some large power of two), but that's straying into
dangerously unpredictable territory.

The bottom line is that I don't have a good idea for how to fix this to match
the Gnu ld documentation without breaking something.

What's difficult about adding the "0x" so that it works with both linkers?

-- 
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]