aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-04-07 08:14:52 +0200
committerTom de Vries <tdevries@suse.de>2023-04-07 08:14:52 +0200
commit929a05081ec2ca6448927b96f673b0cd9633a342 (patch)
tree6eaa5cbf175d713ff254a105f3adda7bf150cf70 /gdb
parentd100d8c1f316acbef7dfd75d09b44b5e23b0bb8a (diff)
downloadgdb-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.S1
-rw-r--r--gdb/testsuite/gdb.arch/i386-disp-step-self-call.S1
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