diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-05-25 04:54:31 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-05-25 04:54:50 -0700 |
commit | af2c48d8545cbc24aa6caf9b9f2a49ab6c0aaa7b (patch) | |
tree | 53375e0ef7c55834937f47d1c0a2afbd84c2470f /ld/testsuite/ld-size/size.exp | |
parent | a39d29cda15d4f303c989eb0ac644a3144827881 (diff) | |
download | gdb-af2c48d8545cbc24aa6caf9b9f2a49ab6c0aaa7b.zip gdb-af2c48d8545cbc24aa6caf9b9f2a49ab6c0aaa7b.tar.gz gdb-af2c48d8545cbc24aa6caf9b9f2a49ab6c0aaa7b.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-size/size.exp')
-rw-r--r-- | ld/testsuite/ld-size/size.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp index 23b0b87..20ebc01 100644 --- a/ld/testsuite/ld-size/size.exp +++ b/ld/testsuite/ld-size/size.exp @@ -114,7 +114,7 @@ run_cc_link_tests [list \ ] \ [list \ "Build size-7" \ - "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libsize-7.so" \ + "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/libsize-7.so" \ "$NOPIE_CFLAGS" \ {size-7a.c} \ {{readelf -rW size-7.rd}} \ @@ -129,7 +129,7 @@ run_cc_link_tests [list \ ] \ [list \ "Build size-8" \ - "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libsize-8.so" \ + "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/libsize-8.so" \ "$NOPIE_CFLAGS" \ {size-8a.c} \ {{readelf -rW size-8.rd}} \ @@ -277,7 +277,7 @@ run_ld_link_exec_tests [list \ ] \ [list \ "Run size-8" \ - "$NOPIE_LDFLAGS -Wl,--no-as-needed,--hash-styl=gnu \ + "$NOPIE_LDFLAGS -Wl,--no-as-needed,--hash-styl=gnu,-z,notext \ tmpdir/libsize-8.so" \ "" \ {size-8a.c} \ |