summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/powerpc-power9.s
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-10-25 14:14:34 +0200
committerTom de Vries <tdevries@suse.de>2022-10-25 14:14:34 +0200
commit0f2cd53cf4f730136e2b275e8279d8bc348a9a88 (patch)
treef7775e58ca7ef93377015832ca65a28690d05712 /gdb/testsuite/gdb.arch/powerpc-power9.s
parent4ff322b6fa699e352730f58a0a1e90c09274b0f6 (diff)
downloadbinutils-gdb-0f2cd53cf4f730136e2b275e8279d8bc348a9a88.tar.gz
[gdb/testsuite] Handle missing .note.GNU-stack
On openSUSE Tumbleweed I run into this for the dwarf assembly test-cases, and some hardcoded assembly test-cases: ... Running gdb.dwarf2/fission-absolute-dwo.exp ... gdb compile failed, ld: warning: fission-absolute-dwo.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 === gdb Summary === # of untested testcases 1 ... Fix the dwarf assembly test-cases by adding the missing .note.GNU-stack in proc Dwarf::assemble. Fix the hard-coded test-cases using this command: ... $ for f in $(find gdb/testsuite/gdb.* -name *.S); do if ! grep -q note.GNU-stack $f; then echo -e "\t.section\t.note.GNU-stack,\"\",@progbits" >> $f; fi; done ... Likewise for .s files, and gdb/testsuite/lib/my-syscalls.S. The idiom for arm seems to be to use %progbits instead, see commit 9a5911c08be ("gdb/testsuite/gdb.dwarf2: Replace @ with % for ARM compatability"), so hand-edit gdb/testsuite/gdb.arch/arm-disp-step.S to use %progbits instead. Note that dwarf assembly testcases use %progbits as decided by proc _section. Tested on x86_64-linux. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29674
Diffstat (limited to 'gdb/testsuite/gdb.arch/powerpc-power9.s')
-rw-r--r--gdb/testsuite/gdb.arch/powerpc-power9.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/powerpc-power9.s b/gdb/testsuite/gdb.arch/powerpc-power9.s
index d15af59d279..09dcb38183a 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power9.s
+++ b/gdb/testsuite/gdb.arch/powerpc-power9.s
@@ -384,3 +384,4 @@ func:
.long 0xffd7048e /* mffscrni f30,0 */
.long 0xffd71c8e /* mffscrni f30,3 */
.long 0xfff8048e /* mffsl f31 */
+ .section .note.GNU-stack,"",@progbits