This is the mail archive of the binutils-cvs@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]

[binutils-gdb] Support -pie for aarch64*-elf targets.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3af09e8db3084f5e03b7f09768a2ab6415418e63

commit 3af09e8db3084f5e03b7f09768a2ab6415418e63
Author: Roland McGrath <mcgrathr@chromium.org>
Date:   Tue Jul 19 10:19:06 2016 -0700

    Support -pie for aarch64*-elf targets.
    
    ld/
    	* emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes.
    	* emulparams/aarch64elf32.sh: Likewise.

Diff:
---
 ld/ChangeLog                  | 7 ++++++-
 ld/emulparams/aarch64elf.sh   | 2 ++
 ld/emulparams/aarch64elf32.sh | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index a8c9d16..9dc24b4 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-19  Roland McGrath  <roland@hack.frob.com>
+
+	* emulparams/aarch64elf.sh (GENERATE_PIE_SCRIPT): Set to yes.
+	* emulparams/aarch64elf32.sh: Likewise.
+
 2016-07-19  Maciej W. Rozycki  <macro@imgtec.com>
 
 	* testsuite/ld-mips-elf/unaligned-branch-2.d: Update error
@@ -1051,7 +1056,7 @@
 	* testsuite/ld-plugin/pr20103c.c: Likewise.
 
 2016-05-24  Maciej W. Rozycki  <macro@imgtec.com>
-    
+
 	* testsuite/ld-mips-elf/jalx-local.d: New test.
 	* testsuite/ld-mips-elf/jalx-local-n32.d: New test.
 	* testsuite/ld-mips-elf/jalx-local-n64.d: New test.
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


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