testsuite supports_dt_relr
authorAlan Modra <amodra@gmail.com>
Thu, 13 Jan 2022 02:21:12 +0000 (12:51 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 13 Jan 2022 03:42:43 +0000 (14:12 +1030)
commitfb6ac163adc48a20be9d0a8de4c691b73431d3dd
treef26dafdee017179cac3589c6dc878d2a6e50b0c6
parentdd68e156fdeee13046b31b002abcee018269e4c2
testsuite supports_dt_relr

Tidy, and fix "FAIL: Build dt-relr-glibc-1b.so" on all non-x86
linux targets.

binutils/
* binutils-common.exp (supports_dt_relr): New proc.
ld/
* testsuite/config/default.exp (DT_RELR_LDFLAGS, NO_DT_RELR_LDFLAGS),
(DT_RELR_CC_LDFLAGS, NO_DT_RELR_CC_LDFLAGS): Use supports_dt_relr.
* testsuite/ld-elf/dt-relr.exp: Don't run unless supports_dt_relr.
* testsuite/ld-elf/dt-relr-1a.d: Likewise.
* testsuite/ld-elf/dt-relr-1b.d: Likewise.
* testsuite/ld-elf/dt-relr-1c.d: Likewise.
* testsuite/ld-elf/dt-relr-2a.d: Likewise.
* testsuite/ld-elf/dt-relr-2b.d: Likewise.
* testsuite/ld-elf/dt-relr-2c.d: Likewise.
* testsuite/ld-elf/dt-relr-2d.d: Likewise.
* testsuite/ld-elf/dt-relr-2e.d: Likewise.
* testsuite/ld-elf/dt-relr-2f.d: Likewise.
* testsuite/ld-elf/dt-relr-2g.d: Likewise.
* testsuite/ld-elf/dt-relr-2h.d: Likewise.
* testsuite/ld-elf/dt-relr-3a.d: Likewise.
* testsuite/ld-elf/dt-relr-3b.d: Likewise.
16 files changed:
binutils/testsuite/lib/binutils-common.exp
ld/testsuite/config/default.exp
ld/testsuite/ld-elf/dt-relr-1a.d
ld/testsuite/ld-elf/dt-relr-1b.d
ld/testsuite/ld-elf/dt-relr-1c.d
ld/testsuite/ld-elf/dt-relr-2a.d
ld/testsuite/ld-elf/dt-relr-2b.d
ld/testsuite/ld-elf/dt-relr-2c.d
ld/testsuite/ld-elf/dt-relr-2d.d
ld/testsuite/ld-elf/dt-relr-2e.d
ld/testsuite/ld-elf/dt-relr-2f.d
ld/testsuite/ld-elf/dt-relr-2g.d
ld/testsuite/ld-elf/dt-relr-2h.d
ld/testsuite/ld-elf/dt-relr-3a.d
ld/testsuite/ld-elf/dt-relr-3b.d
ld/testsuite/ld-elf/dt-relr.exp