Fix GNU_RELRO for CRIS by defining COMMONPAGESIZE
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Fri Jan 10 00:27:00 GMT 2014
I don't fix the issue that every target has to add the line
below, when it should better be the default (maybe by
genscripts.sh recognizing "0" or "no" to not set it or some
such).
I don't fix the issue that the linker advertises the option "-z
relro" despite fully knowing that it doesn't properly "handle
it". (And a commit on 2011-07-14 by Alan indicates it's quite
deliberate?)
I don't even enter a PR for mips-linux failing, as mentioned.
I just fix the thing for my target by this lame copy-paste.
Sorry for not DTRT.
Committed.
ld:
* emulparams/crislinux.sh (COMMONPAGESIZE): Define.
diff --git a/ld/emulparams/crislinux.sh b/ld/emulparams/crislinux.sh
index 47a9c51..c072dba 100644
--- a/ld/emulparams/crislinux.sh
+++ b/ld/emulparams/crislinux.sh
@@ -16,6 +16,7 @@ GENERATE_SHLIB_SCRIPT=yes
TEXT_START_ADDR=0x80000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
# We don't do the hoops through DEFINED to provide [_]*start, as it
# doesn't work with --gc-sections, and the start-name is pretty fixed
brgds, H-P
More information about the Binutils
mailing list