* [pushed] [gdb/testsuite] Add missing .note.GNU-stack in gdb.arch/amd64-disp-step-self-call.exp
@ 2023-04-07 6:15 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-04-07 6:15 UTC (permalink / raw)
To: gdb-patches
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(+)
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 7372dc10132..38745e94933 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 30553d508ba..1f92dbec2e3 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
base-commit: d100d8c1f316acbef7dfd75d09b44b5e23b0bb8a
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-07 6:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 6:15 [pushed] [gdb/testsuite] Add missing .note.GNU-stack in gdb.arch/amd64-disp-step-self-call.exp Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).