aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-22 14:00:06 +0930
committerAlan Modra <amodra@gmail.com>2022-05-26 20:34:32 +0930
commitf420c9c84eb53fea7da452eab8ae0bd855537859 (patch)
tree5c850f6fe17a43f47d62c50b29bb008b32494012 /ld/testsuite
parent20d814202abb0af6f1f37880e3a473362465eaae (diff)
downloadgdb-f420c9c84eb53fea7da452eab8ae0bd855537859.zip
gdb-f420c9c84eb53fea7da452eab8ae0bd855537859.tar.gz
gdb-f420c9c84eb53fea7da452eab8ae0bd855537859.tar.bz2
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-elf/elf.exp2
1 files changed, 0 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index ebb5ba0..621d4e1 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -182,8 +182,6 @@ if { [check_gc_sections_available] && ![istarget "v850-*-*"] } {
proc target_defaults_to_execstack {} {
if { [istarget "aarch64*-*-*"]
- || [istarget "arm*-*-*"]
- || [istarget "*-*-nacl"]
|| [istarget "arc*-*-*"]
|| [istarget "ia64*-*-*"]
|| [istarget "nios2*-*-*"]