This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix GNU_RELRO for CRIS by defining COMMONPAGESIZE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]