From 0cf44ec826eab1f149285b8919aa9dc4140d8d78 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 22 Sep 2017 07:58:28 -0700 Subject: [PATCH] [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. --- gold/ChangeLog | 5 +++++ gold/aarch64.cc | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index 216bb271022..0ac7e9e3a6d 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2017-09-22 Jim Wilson + + * aarch64.cc (Target_aarch64::aarch64_info): Set + is_default_stack_executable to false. + 2017-09-22 Alan Modra * resolve.cc (clone): Fix got_offset_list test. diff --git a/gold/aarch64.cc b/gold/aarch64.cc index a72e2c31b2a..4c6e920f18a 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 -- 2.30.2