diff options
author | Roland McGrath <mcgrathr@google.com> | 2025-03-20 19:17:20 -0700 |
---|---|---|
committer | Roland McGrath <mcgrathr@google.com> | 2025-03-26 03:34:00 +0000 |
commit | a393de33f2b3e8ddbf618ec84a0f9032f0efa859 (patch) | |
tree | 7ea9751d336f00a8e2f1cca969e0d92bfef02ef6 | |
parent | a7ecc1ba9715ac8f3a7772b9d7155f4c00ae2daf (diff) | |
download | binutils-a393de33f2b3e8ddbf618ec84a0f9032f0efa859.zip binutils-a393de33f2b3e8ddbf618ec84a0f9032f0efa859.tar.gz binutils-a393de33f2b3e8ddbf618ec84a0f9032f0efa859.tar.bz2 |
ld: Support RELRO in aarch64-elf target
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.
-rw-r--r-- | ld/emulparams/aarch64elf.sh | 1 | ||||
-rw-r--r-- | ld/emulparams/aarch64elf32.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ld/emulparams/aarch64elf.sh b/ld/emulparams/aarch64elf.sh index 72616b5..aa051c7 100644 --- a/ld/emulparams/aarch64elf.sh +++ b/ld/emulparams/aarch64elf.sh @@ -18,6 +18,7 @@ GENERATE_SHLIB_SCRIPT=yes GENERATE_PIE_SCRIPT=yes MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" ENTRY=_start EMBEDDED=yes diff --git a/ld/emulparams/aarch64elf32.sh b/ld/emulparams/aarch64elf32.sh index 45bf31a..0565b7a 100644 --- a/ld/emulparams/aarch64elf32.sh +++ b/ld/emulparams/aarch64elf32.sh @@ -18,6 +18,7 @@ GENERATE_SHLIB_SCRIPT=yes GENERATE_PIE_SCRIPT=yes MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" ENTRY=_start EMBEDDED=yes |