[GOLD] Set non-exec stack for aarch64
authorJim Wilson <jim.wilson@linaro.org>
Fri, 22 Sep 2017 14:58:28 +0000 (07:58 -0700)
committerJim Wilson <jim.wilson@linaro.org>
Fri, 22 Sep 2017 14:58:28 +0000 (07:58 -0700)
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.

gold/ChangeLog
gold/aarch64.cc

index 216bb271022d5409641251cc3140c85646c73630..0ac7e9e3a6dc2ea87fc6ed6c63913f376a7d299d 100644 (file)
@@ -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.
index a72e2c31b2afec6ec833143f9a3beeab7af1c3a3..4c6e920f18a4a2914845d21d393c8521493bd57c 100644 (file)
@@ -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