diff options
author | Alan Modra <amodra@gmail.com> | 2022-04-21 08:49:30 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-04-21 15:31:39 +0930 |
commit | 333cd559bae5a6be60832c020da479ae23fd2664 (patch) | |
tree | 8940c5b1d2cb11ade6dc64dfbc01085d3c8a2a5f /binutils/testsuite | |
parent | afa7150c8d4c6c98a6f07d96d9d6f6dba0f52b51 (diff) | |
download | gdb-333cd559bae5a6be60832c020da479ae23fd2664.zip gdb-333cd559bae5a6be60832c020da479ae23fd2664.tar.gz gdb-333cd559bae5a6be60832c020da479ae23fd2664.tar.bz2 |
prune .note.GNU-stack warning from testsuite
binutils/
* testsuite/lib/binutils-common.exp (prune_warnings_extra): Remove
.note.GNU-stack warning.
(run_dump_test): Call prune_warnings for ld and objcopy output.
ld/
* testsuite/ld-elf/elf.exp: Disable prune_warnings_extra temporarily
around test for absent .note.GNU-stack
* testsuite/ld-cris/globsymw2.s,
* testsuite/ld-cris/warn3.d: Modify "is not implemented" message
to avoid dejagnu prune_warnings.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/lib/binutils-common.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp index 55b9698..87b0d10 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -637,6 +637,7 @@ proc prune_warnings_extra { text } { } # PR binutils/23898: It is OK to have gaps in build notes. regsub -all "(^|\n)(\[^\n\]*: Warning: Gap in build notes detected from\[^\n\]*\n?)+" $text "\\1" text + regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*missing \\.note\\.GNU-stack section\[^\n\]*\n?)+" $text "\\1" text return $text } @@ -1326,7 +1327,7 @@ proc run_dump_test { name {extra_options {}} } { send_log "$cmd\n" set cmdret [remote_exec host [concat sh -c [list "$cmd 2>&1"]] "" "/dev/null" "dump.tmp"] remote_upload host "dump.tmp" - append comp_output [file_contents "dump.tmp"] + append comp_output [prune_warnings [file_contents "dump.tmp"]] remote_file host delete "dump.tmp" remote_file build delete "dump.tmp" set cmdret [lindex $cmdret 0] @@ -1343,7 +1344,7 @@ proc run_dump_test { name {extra_options {}} } { send_log "$cmd\n" set cmdret [remote_exec host [concat sh -c [list "$cmd 2>&1"]] "" "/dev/null" "dump.tmp"] remote_upload host "dump.tmp" - append comp_output [file_contents "dump.tmp"] + append comp_output [prune_warnings [file_contents "dump.tmp"]] remote_file host delete "dump.tmp" remote_file build delete "dump.tmp" set cmdret [lindex $cmdret 0] |