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] [GOLD] Set non-exec stack for aarch64


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

commit 0cf44ec826eab1f149285b8919aa9dc4140d8d78
Author: Jim Wilson <jim.wilson@linaro.org>
Date:   Fri Sep 22 07:58:28 2017 -0700

    [GOLD] Set non-exec stack for aarch64
    
    GNU-stack notes added in 2004, aarch64 port added in 2012, so no old object
    files with missing GNU-stack notes that we need to worry about.
    
    	gold/
    	* aarch64.cc (Target_aarch64::aarch64_info): Set
    	is_default_stack_executable to false.

Diff:
---
 gold/ChangeLog  | 5 +++++
 gold/aarch64.cc | 8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index 216bb27..0ac7e9e 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-22  Jim Wilson  <jim.wilson@linaro.org>
+
+	* aarch64.cc (Target_aarch64::aarch64_info): Set
+	is_default_stack_executable to false.
+
 2017-09-22  Alan Modra  <amodra@gmail.com>
 
 	* resolve.cc (clone): Fix got_offset_list test.
diff --git a/gold/aarch64.cc b/gold/aarch64.cc
index a72e2c3..4c6e920 100644
--- a/gold/aarch64.cc
+++ b/gold/aarch64.cc
@@ -3523,7 +3523,7 @@ const Target::Target_info Target_aarch64<64, false>::aarch64_info =
   false,		// has_make_symbol
   false,		// has_resolve
   false,		// has_code_fill
-  true,			// is_default_stack_executable
+  false,		// is_default_stack_executable
   true,			// can_icf_inline_merge_sections
   '\0',			// wrap_char
   "/lib/ld.so.1",	// program interpreter
@@ -3551,7 +3551,7 @@ const Target::Target_info Target_aarch64<32, false>::aarch64_info =
   false,		// has_make_symbol
   false,		// has_resolve
   false,		// has_code_fill
-  true,			// is_default_stack_executable
+  false,		// is_default_stack_executable
   false,		// can_icf_inline_merge_sections
   '\0',			// wrap_char
   "/lib/ld.so.1",	// program interpreter
@@ -3579,7 +3579,7 @@ const Target::Target_info Target_aarch64<64, true>::aarch64_info =
   false,		// has_make_symbol
   false,		// has_resolve
   false,		// has_code_fill
-  true,			// is_default_stack_executable
+  false,		// is_default_stack_executable
   true,			// can_icf_inline_merge_sections
   '\0',			// wrap_char
   "/lib/ld.so.1",	// program interpreter
@@ -3607,7 +3607,7 @@ const Target::Target_info Target_aarch64<32, true>::aarch64_info =
   false,		// has_make_symbol
   false,		// has_resolve
   false,		// has_code_fill
-  true,			// is_default_stack_executable
+  false,		// is_default_stack_executable
   false,		// can_icf_inline_merge_sections
   '\0',			// wrap_char
   "/lib/ld.so.1",	// program interpreter


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