[gdb/testsuite] Add missing .note.GNU-stack in gdb.arch/amd64-disp-step-self-call.exp
authorTom de Vries <tdevries@suse.de>
Fri, 7 Apr 2023 06:14:52 +0000 (08:14 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 7 Apr 2023 06:14:52 +0000 (08:14 +0200)
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
gdb/testsuite/gdb.arch/i386-disp-step-self-call.S

index 7372dc10132979e9be4b0f56f96b9d47ce926844..38745e949333cf53d8d1ce26aa36e1bd3f8cb8e7 100644 (file)
@@ -47,3 +47,4 @@ done:
        mov $0,%rdi
        call exit
        hlt
+       .section        .note.GNU-stack,"",@progbits
index 30553d508ba74411671216ee5cb7ee8d31ab609e..1f92dbec2e38c35374827aa9bb2c666a51d32c39 100644 (file)
@@ -47,3 +47,4 @@ done:
        pushl $0
        call exit
        hlt
+       .section        .note.GNU-stack,"",@progbits