This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Support -pie for aarch64*-elf targets.
- From: Roland McGrath <mcgrathr at google dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 18 Jul 2016 13:33:52 -0700
- Subject: [PATCH] Support -pie for aarch64*-elf targets.
- Authentication-results: sourceware.org; auth=none
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