This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Remove 0x (Re: PATCH: Fix the linker script support)
- From: "H . J . Lu" <hjl at lucon dot org>
- To: Ulrich Drepper <drepper at redhat dot com>, binutils at sources dot redhat dot com
- Date: Thu, 17 Jan 2002 15:29:59 -0800
- Subject: PATCH: Remove 0x (Re: PATCH: Fix the linker script support)
- References: <20020117125345.A4665@lucon.org> <m33d14bncs.fsf@myware.mynet> <20020117150502.C6853@lucon.org> <m3ofjsa7sd.fsf@myware.mynet>
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