From 929a05081ec2ca6448927b96f673b0cd9633a342 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 7 Apr 2023 08:14:52 +0200 Subject: [PATCH] [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 | 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 -- 2.30.2