aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2022-11-28 09:29:37 +0100
committerClément Chigot <chigot@adacore.com>2023-03-16 15:01:05 +0100
commitb119512977bbdbdce84493dfa6321f6d1f82dbf0 (patch)
tree1dd2c5eda3a219325869bcf30c98a64ba71094b9 /ld/emulparams
parente263a66b01a697632a51ad5ec1e6c08071e3e5ec (diff)
downloadgdb-b119512977bbdbdce84493dfa6321f6d1f82dbf0.zip
gdb-b119512977bbdbdce84493dfa6321f6d1f82dbf0.tar.gz
gdb-b119512977bbdbdce84493dfa6321f6d1f82dbf0.tar.bz2
ld: add support of QNX stack arguments for aarch64nto
QNX is handling the stack argument using a .note section. Generate it according to ELF argument -zexecstack, -zstack-size and a new NTO argument --lazy-stack. Another NTO argument --stack mimicking -zstack-size is added in order to ensure compatibility with previously made NTO linkers. This requires a new emultempl nto.em which is applied above the default ${ARCH}elf.em. ld/ChangeLog: * emulparams/aarch64nto.sh: Move to nto.em. * emultempl/nto.em: New file. * testsuite/ld-aarch64/aarch64-nto.exp: New test. * testsuite/ld-aarch64/nto-stack-note-1.d: New test. * testsuite/ld-aarch64/nto-stack-note-2.d: New test. * testsuite/ld-aarch64/start.s: New test.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/aarch64nto.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emulparams/aarch64nto.sh b/ld/emulparams/aarch64nto.sh
index 4f0657d..5138e33 100644
--- a/ld/emulparams/aarch64nto.sh
+++ b/ld/emulparams/aarch64nto.sh
@@ -10,7 +10,7 @@ LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
NO_REL_RELOCS=yes
TEMPLATE_NAME=elf
-EXTRA_EM_FILE=aarch64elf
+EXTRA_EM_FILE=nto
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes