From: Alan Modra Date: Fri, 22 Sep 2017 01:34:41 +0000 (+0930) Subject: [GOLD] Set non-exec stack for ppc64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c54582504bde81ff7268f4d9464542e58359f94f;p=thirdparty%2Fbinutils-gdb.git [GOLD] Set non-exec stack for ppc64 gcc doesn't emit stack notes for ELFv1, since ELFv1 never needs an executable stack. Note that ELFv1 is usually big-endian and ELFv2 little-endian, but the ABI is really orthogonal to endiannes. * powerpc.cc (Target_powerpc<64,*>::powerpc_info): Set is_default_stack_executable false. (cherry picked from commit ec76901011c5af6a565936d4ad87247c51901b58) --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 0fc54ddf71e..32c0e21f549 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2017-09-28 Alan Modra + + * powerpc.cc (Target_powerpc<64,*>::powerpc_info): Set + is_default_stack_executable false. + 2017-08-03 James Clarke * options.h (General_options): Set a non-NULL second help string diff --git a/gold/powerpc.cc b/gold/powerpc.cc index ba20ef1ad72..22590c1e435 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -1618,7 +1618,7 @@ Target::Target_info Target_powerpc<64, true>::powerpc_info = false, // has_make_symbol true, // 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 "/usr/lib/ld.so.1", // dynamic_linker @@ -1646,7 +1646,7 @@ Target::Target_info Target_powerpc<64, false>::powerpc_info = false, // has_make_symbol true, // 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 "/usr/lib/ld.so.1", // dynamic_linker