[PATCH] MIPS/Linux: Enable creation of the RELRO header
Maciej W. Rozycki
macro@linux-mips.org
Thu May 26 19:16:00 GMT 2005
Hello,
Do we have any particular reason to set DATA_ADDR to 0x10000000 for
traditional o32 targets as used by Linux? I don't think so -- it just
happens to come from Irix defaults and we probably don't need such a close
compatibility. OTOH, getting rid of that DATA_ADDR would let us make use
of the "-z relro" option, like other Linux ports (including new MIPS ABIs)
do.
Here's my proposal. It doesn't cause any regressions for a native run on
mipsel-linux-gnu. It works for me as expected with glibc 2.3.5.
2005-05-26 Maciej W. Rozycki <macro@linux-mips.org>
* emulparams/elf32btsmip.sh: Unset DATA_ADDR.
OK to apply to the HEAD?
Maciej
binutils-2.16-mips-ld-data_addr.patch
diff -up --recursive --new-file binutils-2.16.macro/ld/emulparams/elf32btsmip.sh binutils-2.16/ld/emulparams/elf32btsmip.sh
--- binutils-2.16.macro/ld/emulparams/elf32btsmip.sh 2002-01-21 17:19:09.000000000 +0000
+++ binutils-2.16/ld/emulparams/elf32btsmip.sh 2005-05-22 15:31:51.000000000 +0000
@@ -5,5 +5,6 @@
OUTPUT_FORMAT="elf32-tradbigmips"
BIG_OUTPUT_FORMAT="elf32-tradbigmips"
LITTLE_OUTPUT_FORMAT="elf32-tradlittlemips"
+unset DATA_ADDR
SHLIB_TEXT_START_ADDR=0
ENTRY=__start
More information about the Binutils
mailing list