From: Alan Modra Date: Sun, 22 May 2022 04:30:06 +0000 (+0930) Subject: bit-rot in target before_parse function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f420c9c84eb53fea7da452eab8ae0bd855537859;p=binutils-gdb.git bit-rot in target before_parse function Copy initialisation over from the elf.em before_parse. Commit ba951afb999 2022-05-03 changed behaviour on arm and score regarding exec stack. This patch restores the previous behaviour. * emultempl/aarch64elf.em (before_parse): Init separate_code, warn_execstack, no_warn_rwx_segments and default_execstack. * emultempl/armelf.em (before_parse): Likewise. * emultempl/scoreelf.em (before_parse): Likewise. * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Return true for arm and nacl. --- diff --git a/ld/emultempl/aarch64elf.em b/ld/emultempl/aarch64elf.em index 26e3dd243fc..1968f12cf29 100644 --- a/ld/emultempl/aarch64elf.em +++ b/ld/emultempl/aarch64elf.em @@ -54,6 +54,10 @@ fragment <