diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2021-11-26 21:42:16 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2021-11-26 21:42:16 +0000 |
commit | 9949bb06389dd6e6a23366572a3c760e2c7fcc82 (patch) | |
tree | d1b7dbcd98fa540134d39c4624b72ebf1ea5d554 /ld | |
parent | 8677059126a84cb9f71371beb8688138a41014fc (diff) | |
download | binutils-9949bb06389dd6e6a23366572a3c760e2c7fcc82.zip binutils-9949bb06389dd6e6a23366572a3c760e2c7fcc82.tar.gz binutils-9949bb06389dd6e6a23366572a3c760e2c7fcc82.tar.bz2 |
Fix ifunc test fails on hppa*-*-*
2021-11-26 John David Anglin <danglin@gcc.gnu.org>
PR ld/27442
ld/ChangeLog:
* ld/testsuite/ld-ifunc/ifunc.exp (contains_irelative_reloc): Adjust
regexp.
Skip static ifunc-using executable test on hppa*-*-*.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-ifunc/ifunc.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp index e559884..7e20dc2 100644 --- a/ld/testsuite/ld-ifunc/ifunc.exp +++ b/ld/testsuite/ld-ifunc/ifunc.exp @@ -147,7 +147,7 @@ proc contains_irelative_reloc { binary_file } { # 080496f4 0000002a R_386_IRELATIVE - if { ![regexp "\[0-9a-f\]+\[ \]+\[0-9a-f\]+\[ \]+R_(\[_0-9A-Z\]+_IREL(|ATIVE)|PARISC_IPLT)\[ \]*\[0-9a-f\]*\n" [file_contents readelf.out]] } { + if { ![regexp "\[0-9a-f\]+\[ \]+\[0-9a-f\]+\[ \]+R_(\[_0-9A-Z\]+_IREL(|ATIVE)|PARISC_IPLT).*\n" [file_contents readelf.out]] } { return 0 } @@ -361,6 +361,7 @@ if {[contains_irelative_reloc tmpdir/local_prog] != 1} { set fails [expr $fails + 1] } if { ![string match "" $STATIC_LDFLAGS] \ + && ![istarget hppa*-*-*] \ && [contains_irelative_reloc tmpdir/static_prog] != 1} { fail "Static ifunc-using executable does not contain R_*_IRELATIVE relocation" set fails [expr $fails + 1] |