From f420c9c84eb53fea7da452eab8ae0bd855537859 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 22 May 2022 14:00:06 +0930 Subject: [PATCH] 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. --- ld/emultempl/aarch64elf.em | 4 ++++ ld/emultempl/armelf.em | 4 ++++ ld/emultempl/scoreelf.em | 4 ++++ ld/testsuite/ld-elf/elf.exp | 2 -- 4 files changed, 12 insertions(+), 2 deletions(-) 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 <