PATCH: Remove 0x (Re: PATCH: Fix the linker script support)
H . J . Lu
hjl@lucon.org
Thu Jan 17 17:21:00 GMT 2002
On Thu, Jan 17, 2002 at 03:15:30PM -0800, Ulrich Drepper wrote:
>
> > I don't believe we should force people to upgrade ld just because
> > glibc can't handle the extra `0x'.
>
> HJ, you know better than most people that one benefits a lot from
> using a newer linker, *especially* on MIPS.
Ok, here is a patch. It may look strange. But glibc doesn't like the
leading 0x. Is that ok?
H.J.
---
2002-01-17 H.J. Lu <hjl@gnu.org>
* emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change
to 0.
* emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
--- emulparams/elf32btsmip.sh.X Fri Nov 23 11:55:22 2001
+++ emulparams/elf32btsmip.sh Thu Jan 17 15:26:04 2002
@@ -5,5 +5,5 @@
OUTPUT_FORMAT="elf32-tradbigmips"
BIG_OUTPUT_FORMAT="elf32-tradbigmips"
LITTLE_OUTPUT_FORMAT="elf32-tradlittlemips"
-SHLIB_TEXT_START_ADDR=0x0
+SHLIB_TEXT_START_ADDR=0
ENTRY=__start
--- emulparams/elf64btsmip.sh.X Fri Nov 23 11:55:22 2001
+++ emulparams/elf64btsmip.sh Thu Jan 17 15:25:59 2002
@@ -10,7 +10,7 @@ ELFSIZE=64
GENERATE_SHLIB_SCRIPT=yes
DATA_ADDR=0x0400000000
NONPAGED_TEXT_START_ADDR=0x10000000
-SHLIB_TEXT_START_ADDR=0x0
+SHLIB_TEXT_START_ADDR=0
TEXT_DYNAMIC=
unset EXECUTABLE_SYMBOLS
More information about the Binutils
mailing list