diff options
author | Tom de Vries <tdevries@suse.de> | 2023-04-07 08:14:52 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-04-07 08:14:52 +0200 |
commit | 929a05081ec2ca6448927b96f673b0cd9633a342 (patch) | |
tree | 6eaa5cbf175d713ff254a105f3adda7bf150cf70 /gdb | |
parent | d100d8c1f316acbef7dfd75d09b44b5e23b0bb8a (diff) | |
download | gdb-929a05081ec2ca6448927b96f673b0cd9633a342.zip gdb-929a05081ec2ca6448927b96f673b0cd9633a342.tar.gz gdb-929a05081ec2ca6448927b96f673b0cd9633a342.tar.bz2 |
[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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-disp-step-self-call.S | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-disp-step-self-call.S | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.S b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.S index 7372dc1..38745e9 100644 --- a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.S +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.S @@ -47,3 +47,4 @@ done: mov $0,%rdi call exit hlt + .section .note.GNU-stack,"",@progbits diff --git a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.S b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.S index 30553d5..1f92dbe 100644 --- a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.S +++ b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.S @@ -47,3 +47,4 @@ done: pushl $0 call exit hlt + .section .note.GNU-stack,"",@progbits |