[pushed,gdb/testsuite] Add missing .note.GNU-stack in gdb.arch/amd64-disp-step-self-call.exp
Commit Message
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 | 1 +
gdb/testsuite/gdb.arch/i386-disp-step-self-call.S | 1 +
2 files changed, 2 insertions(+)
base-commit: d100d8c1f316acbef7dfd75d09b44b5e23b0bb8a
@@ -47,3 +47,4 @@ done:
mov $0,%rdi
call exit
hlt
+ .section .note.GNU-stack,"",@progbits
@@ -47,3 +47,4 @@ done:
pushl $0
call exit
hlt
+ .section .note.GNU-stack,"",@progbits