mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
b119512977
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.
13 lines
272 B
Makefile
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
|