]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Support RELRO in aarch64-elf target
authorRoland McGrath <mcgrathr@google.com>
Fri, 21 Mar 2025 02:17:20 +0000 (19:17 -0700)
committerRoland McGrath <mcgrathr@google.com>
Wed, 26 Mar 2025 03:34:00 +0000 (03:34 +0000)
Other *-elf targets set COMMONPAGESIZE in emulparams/*.sh and so
enable `-z relro` and related features.  Make aarch64-elf match.
There is no reason to think that a "generic ELF" target should
have any particular set of features disabled.

ld/emulparams/aarch64elf.sh
ld/emulparams/aarch64elf32.sh

index 72616b576919be8cf5bbec42bc02106392d36ece..aa051c76a7a1782f81188fe8758ec113424b362a 100644 (file)
@@ -18,6 +18,7 @@ GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 
 ENTRY=_start
 EMBEDDED=yes
index 45bf31a179ae5059ea8c374da3440eaf43f034da..0565b7a066cd37854d4537bf9f572d3aa5b3e57b 100644 (file)
@@ -18,6 +18,7 @@ GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 
 ENTRY=_start
 EMBEDDED=yes