ld: Pass -z notext to linker for tests with DT_TEXTREL
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 25 May 2020 11:54:31 +0000 (04:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 25 May 2020 11:54:50 +0000 (04:54 -0700)
commitaf2c48d8545cbc24aa6caf9b9f2a49ab6c0aaa7b
tree53375e0ef7c55834937f47d1c0a2afbd84c2470f
parenta39d29cda15d4f303c989eb0ac644a3144827881
ld: Pass -z notext to linker for tests with DT_TEXTREL

Some linker tests need DT_TEXTREL.  Pass -z notext to linker for these
tests so that they will pass with DT_TEXTREL check defaulting to warning
or error.

* testsuite/ld-elf/eh6.d: Pass -z notext to linker.
* testsuite/ld-elf/ehdr_start-shared.d: Likewise.
* testsuite/ld-elf/pr19539.d: Likewise.
* testsuite/ld-elfvers/vers.exp: Likewise.
* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
* testsuite/ld-i386/i386.exp: Likewise.
* testsuite/ld-i386/nogot1.d: Likewise.
* testsuite/ld-i386/pr19539.d: Likewise.
* testsuite/ld-i386/pr19636-2a.d: Likewise.
* testsuite/ld-i386/pr19636-2b.d: Likewise.
* testsuite/ld-i386/pr19636-2c.d: Likewise.
* testsuite/ld-i386/pr19636-2d.d: Likewise.
* testsuite/ld-i386/pr19636-2e.d: Likewise.
* testsuite/ld-i386/pr19636-3d.d: Likewise.
* testsuite/ld-i386/pr19636-3e.d: Likewise.
* testsuite/ld-i386/pr19939b.d: Likewise.
* testsuite/ld-i386/undefweaka.d: Likewise.
* testsuite/ld-i386/undefweakb.d: Likewise.
* testsuite/ld-shared/shared.exp: Likewise.
* testsuite/ld-size/size.exp: Likewise.
* testsuite/ld-unique/unique.exp: Likewise.
* testsuite/ld-x86-64/pie1.d: Likewise.
* testsuite/ld-x86-64/pr19539a.d: Likewise.
* testsuite/ld-x86-64/pr19539b.d: Likewise.
* testsuite/ld-x86-64/pr19636-1d.d: Likewise.
* testsuite/ld-x86-64/pr19636-1e.d: Likewise.
* testsuite/ld-x86-64/pr19807-1a.d: Likewise.
* testsuite/ld-x86-64/pr19807-1b.d: Likewise.
* testsuite/ld-x86-64/pr19807-2b.d: Likewise.
* testsuite/ld-x86-64/pr19807-2c.d: Likewise.
* testsuite/ld-x86-64/pr19807-2d.d: Likewise.
* testsuite/ld-x86-64/pr19807-2e.d: Likewise.
* testsuite/ld-x86-64/pr19939b.d: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
35 files changed:
ld/ChangeLog
ld/testsuite/ld-elf/eh6.d
ld/testsuite/ld-elf/ehdr_start-shared.d
ld/testsuite/ld-elf/pr19539.d
ld/testsuite/ld-elfvers/vers.exp
ld/testsuite/ld-elfvsb/elfvsb.exp
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/nogot1.d
ld/testsuite/ld-i386/pr19539.d
ld/testsuite/ld-i386/pr19636-2a.d
ld/testsuite/ld-i386/pr19636-2b.d
ld/testsuite/ld-i386/pr19636-2c.d
ld/testsuite/ld-i386/pr19636-2d.d
ld/testsuite/ld-i386/pr19636-2e.d
ld/testsuite/ld-i386/pr19636-3d.d
ld/testsuite/ld-i386/pr19636-3e.d
ld/testsuite/ld-i386/pr19939b.d
ld/testsuite/ld-i386/undefweaka.d
ld/testsuite/ld-i386/undefweakb.d
ld/testsuite/ld-shared/shared.exp
ld/testsuite/ld-size/size.exp
ld/testsuite/ld-unique/unique.exp
ld/testsuite/ld-x86-64/pie1.d
ld/testsuite/ld-x86-64/pr19539a.d
ld/testsuite/ld-x86-64/pr19539b.d
ld/testsuite/ld-x86-64/pr19636-1d.d
ld/testsuite/ld-x86-64/pr19636-1e.d
ld/testsuite/ld-x86-64/pr19807-1a.d
ld/testsuite/ld-x86-64/pr19807-1b.d
ld/testsuite/ld-x86-64/pr19807-2b.d
ld/testsuite/ld-x86-64/pr19807-2c.d
ld/testsuite/ld-x86-64/pr19807-2d.d
ld/testsuite/ld-x86-64/pr19807-2e.d
ld/testsuite/ld-x86-64/pr19939b.d
ld/testsuite/ld-x86-64/x86-64.exp