diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2018-03-01 20:00:02 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2018-03-01 20:16:52 +0100 |
commit | 8877afc2a9b403e3d68f27e62225a0340f598104 (patch) | |
tree | a8730f633eec1b50f6dbc0e3293678dea7dfadf2 | |
parent | Gentoo: Restore TEXTREL warnings for non-shared objects (diff) | |
download | binutils-gdb-8877afc2a9b403e3d68f27e62225a0340f598104.tar.gz binutils-gdb-8877afc2a9b403e3d68f27e62225a0340f598104.tar.bz2 binutils-gdb-8877afc2a9b403e3d68f27e62225a0340f598104.zip |
Gentoo: Properly ignore new textrel warnings in testsuite
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index cf1f828c05c..0d7ad936d6b 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -232,8 +232,8 @@ proc default_ld_link { ld target objects } { # Gentoo tweak: # We want to ignore TEXTREL warnings since we force enable them by default - regsub -all "^lt-ld-new: warning: creating a DT_TEXTREL in object\." $exec_output "\\1" exec_output - regsub -all -line "^(\[^\n\]*: warning: relocation\[^\n\]*\n\[^\n\]*: warning: creating a DT_TEXTREL in a shared object\.\n?)" $exec_output "" exec_output + regsub -all "^.*ld-new: warning: creating a DT_TEXTREL in object\.?" $exec_output "\\1" exec_output + regsub -all -line "^(\[^\n\]*: warning: relocation\[^\n\]*\n\[^\n\]*: warning: creating a DT_TEXTREL in object\.?\n?)" $exec_output "" exec_output return [string match "" $exec_output] @@ -975,7 +975,7 @@ proc run_dump_test { name {extra_options {}} } { } # Gentoo tweak: We need to kill the textrel warnings here... - regsub -all -line "^(\[^\n\]*: warning: relocation\[^\n\]*\n\[^\n\]*: warning: creating a DT_TEXTREL in a shared object\.\n?)" $comp_output "" comp_output + regsub -all -line "^(\[^\n\]*: warning: relocation\[^\n\]*\n\[^\n\]*: warning: creating a DT_TEXTREL in object\.?\n?)" $comp_output "" comp_output regsub "\n$" $comp_output "" comp_output if { $cmdret != 0 || $comp_output != "" || $check_ld(source) != "" } then { |