* gdb-container-rh-pkg.patch - Patches added (bsc#1207712): * gdb-testsuite-add-gdb.suse-debranding.exp.patch - Patches added (test-case fix): * gdb-testsuite-fix-gdb.dwarf2-dw2-dir-file-name.exp-w.patch - Patches added (fedora patch fixup): * fixup-gdb-test-dw2-aranges.patch - Patches added (master backports): * gdb-testsuite-add-xfail-in-gdb.arch-i386-pkru.exp.patch * gdb-testsuite-add-xfail-in-gdb.python-py-record-btra.patch * gdb-testsuite-factor-out-proc-linux_kernel_version.patch * gdb-testsuite-fix-gdb.base-infoline-reloc-main-from-.patch * gdb-testsuite-fix-gdb.base-nested-subp-2-3-.exp-with.patch * gdb-testsuite-fix-gdb.threads-schedlock.exp-on-fast-.patch * gdb-testsuite-handle-missing-.note.gnu-stack.patch * gdb-testsuite-simplify-gdb.arch-amd64-disp-step-avx..patch * gdb-testsuite-fix-gdb.threads-schedlock.exp-for-gcc-.patch * gdb-testsuite-add-xfail-case-in-gdb.python-py-record.patch * add-elfcompress_zstd.patch * binutils-gdb-support-zstd-compressed-debug-section.patch * fix-gdb-build-elf-support-check-lzstd.patch - Patches removed (dropped by fedora): * gdb-test-ivy-bridge.patch - Disable "BuildRequires: %{gcc}-fortran" for SLE-11. - Maintenance script qa-local.sh: * Add SLE-11 to configs. * Build with --no-verify. - Maintenance script qa.sh: * Add -sle11. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=347
81 lines
2.5 KiB
Diff
81 lines
2.5 KiB
Diff
From a95556346e4336d2d6eeba74430212e833c065fb Mon Sep 17 00:00:00 2001
|
|
From: Tom de Vries <tdevries@suse.de>
|
|
Date: Wed, 12 Oct 2022 16:50:16 +0200
|
|
Subject: [PATCH 10/11] [gdb/testsuite] Fix gdb.base/nested-subp{2,3}.exp with
|
|
recent ld
|
|
|
|
On openSUSE Tumbleweed (with ld 2.39) I get for test-case
|
|
gdb.base/nested-subp2.exp:
|
|
...
|
|
gdb compile failed, ld: warning: tmp.o: requires executable stack \
|
|
(because the .note.GNU-stack section is executable)
|
|
...
|
|
|
|
Fix this by compiling with -Wl,--no-warn-execstack.
|
|
|
|
Likewise in gdb.base/nested-subp3.exp
|
|
|
|
Tested on x86_64-linux.
|
|
---
|
|
gdb/testsuite/gdb.base/nested-subp2.exp | 15 ++++++++++++---
|
|
gdb/testsuite/gdb.base/nested-subp3.exp | 15 ++++++++++++---
|
|
2 files changed, 24 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/gdb/testsuite/gdb.base/nested-subp2.exp b/gdb/testsuite/gdb.base/nested-subp2.exp
|
|
index 876b797e49d..8cb57bd1ee7 100644
|
|
--- a/gdb/testsuite/gdb.base/nested-subp2.exp
|
|
+++ b/gdb/testsuite/gdb.base/nested-subp2.exp
|
|
@@ -29,10 +29,19 @@ if ![support_nested_function_tests] {
|
|
return -1
|
|
}
|
|
|
|
+set flags {}
|
|
+lappend flags debug
|
|
+lappend flags additional_flags=-std=gnu99
|
|
+
|
|
+set ld_flags additional_flags=-Wl,--no-warn-execstack
|
|
+if { [gdb_can_simple_compile ld-flags {int main () { return 0; }} executable \
|
|
+ $ld_flags] } {
|
|
+ lappend flags $ld_flags
|
|
+}
|
|
+
|
|
if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
|
|
- [standard_output_file "${testcase}"] \
|
|
- executable \
|
|
- [list debug "additional_flags=-std=gnu99"]] != "" } {
|
|
+ [standard_output_file "${testcase}"] \
|
|
+ executable $flags] != "" } {
|
|
return -1
|
|
}
|
|
|
|
diff --git a/gdb/testsuite/gdb.base/nested-subp3.exp b/gdb/testsuite/gdb.base/nested-subp3.exp
|
|
index dd236f07c8f..31da8d47f84 100644
|
|
--- a/gdb/testsuite/gdb.base/nested-subp3.exp
|
|
+++ b/gdb/testsuite/gdb.base/nested-subp3.exp
|
|
@@ -29,10 +29,19 @@ if ![support_nested_function_tests] {
|
|
return -1
|
|
}
|
|
|
|
+set flags {}
|
|
+lappend flags debug
|
|
+lappend flags additional_flags=-std=gnu99
|
|
+
|
|
+set ld_flags additional_flags=-Wl,--no-warn-execstack
|
|
+if { [gdb_can_simple_compile ld-flags {int main () { return 0; }} executable \
|
|
+ $ld_flags] } {
|
|
+ lappend flags $ld_flags
|
|
+}
|
|
+
|
|
if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
|
|
- [standard_output_file "${testcase}"] \
|
|
- executable \
|
|
- [list debug "additional_flags=-std=gnu99"]] != "" } {
|
|
+ [standard_output_file "${testcase}"] \
|
|
+ executable $flags] != "" } {
|
|
return -1
|
|
}
|
|
|
|
--
|
|
2.35.3
|
|
|