binutils-gdb/ld/testsuite/ld-aarch64/nto-stack-note-1.d
Clément Chigot b119512977 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.
2023-03-16 15:01:05 +01:00

13 lines
272 B
Makefile

#name: nto-stack-note-1
#source: start.s
#as:
#ld: -z stack-size=0x10000
#readelf: -n
Displaying notes found in: .note
[ ]+Owner[ ]+Data size[ ]+Description
QNX 0x0000000c QNX stack
Stack Size: 0x10000
Stack allocated: 10000
Executable: no