bit-rot in target before_parse function
authorAlan Modra <amodra@gmail.com>
Sun, 22 May 2022 04:30:06 +0000 (14:00 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 26 May 2022 11:04:32 +0000 (20:34 +0930)
commitf420c9c84eb53fea7da452eab8ae0bd855537859
tree5c850f6fe17a43f47d62c50b29bb008b32494012
parent20d814202abb0af6f1f37880e3a473362465eaae
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
ld/emultempl/armelf.em
ld/emultempl/scoreelf.em
ld/testsuite/ld-elf/elf.exp