[PATCH] Support -pie for aarch64*-elf targets.
Roland McGrath
mcgrathr@google.com
Mon Jul 18 20:34:00 GMT 2016
Other aarch64-* targets and other *-elf targets support -pie,
so this looks like it was just a simple oversight.
OK for trunk and 2.27 branch?
Thanks,
Roland
ld/
* emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes.
* emulparams/aarch64elf32.sh: Likewise.
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 758d7ad..4154d8e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-18 Roland McGrath <roland@hack.frob.com>
+
+ * emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes.
+ * emulparams/aarch64elf32.sh: Likewise.
+
2016-07-16 Alan Modra <amodra@gmail.com>
* plugin.c: Don't include libbfd.h. Include plugin-api.h
diff --git a/ld/emulparams/aarch64elf.sh b/ld/emulparams/aarch64elf.sh
index 6864d65..6eb2bad 100644
--- a/ld/emulparams/aarch64elf.sh
+++ b/ld/emulparams/aarch64elf.sh
@@ -13,6 +13,8 @@ TEMPLATE_NAME=elf32
EXTRA_EM_FILE=aarch64elf
GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
ENTRY=_start
diff --git a/ld/emulparams/aarch64elf32.sh b/ld/emulparams/aarch64elf32.sh
index f85c9ff..c0d6b72 100644
--- a/ld/emulparams/aarch64elf32.sh
+++ b/ld/emulparams/aarch64elf32.sh
@@ -13,6 +13,8 @@ TEMPLATE_NAME=elf32
EXTRA_EM_FILE=aarch64elf
GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
ENTRY=_start
More information about the Binutils
mailing list