[gdb/testsuite] Add missing .note.GNU-stack in gdb.arch/amd64-disp-step-self-call.exp
authorTom de Vries <tdevries@suse.de>
Fri, 7 Apr 2023 06:14:52 +0000 (08:14 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 7 Apr 2023 06:14:52 +0000 (08:14 +0200)
commit929a05081ec2ca6448927b96f673b0cd9633a342
tree6eaa5cbf175d713ff254a105f3adda7bf150cf70
parentd100d8c1f316acbef7dfd75d09b44b5e23b0bb8a
[gdb/testsuite] Add missing .note.GNU-stack in gdb.arch/amd64-disp-step-self-call.exp

For test-case gdb.arch/amd64-disp-step-self-call.exp I get:
...
gdb compile failed, ld: warning: amd64-disp-step-self-call0.o: \
  missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future \
  version of the linker
...

Fix this by adding the missing .note.GNU-stack.

Likewise for gdb.arch/i386-disp-step-self-call.exp.

Tested on x86_64-linux.
gdb/testsuite/gdb.arch/amd64-disp-step-self-call.S
gdb/testsuite/gdb.arch/i386-disp-step-self-call.S