[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.
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, stsp at users dot sourceforge.net, 2015/08/24
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss,
ccoutant at gmail dot com <=
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, vapier at gentoo dot org, 2015/08/25
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, stsp at users dot sourceforge.net, 2015/08/26
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, ian at airs dot com, 2015/08/26
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, stsp at users dot sourceforge.net, 2015/08/26
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, vapier at gentoo dot org, 2015/08/26
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, ian at airs dot com, 2015/08/26
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, vapier at gentoo dot org, 2015/08/27
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, ccoutant at gmail dot com, 2015/08/27
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, ccoutant at gmail dot com, 2015/08/27
- [Bug gold/14187] gold incorrectly requires hexadecimals to start with 0x with -Ttext/-Tdata/-Tbss, stsp at users dot sourceforge.net, 2015/08/28