diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-05-02 16:00:49 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-05-02 16:01:39 -0700 |
commit | 3d8505928a06e00b05bb162c1ad0dd612c1c16af (patch) | |
tree | 9690bf1e88ba14f63468731aeab69c3ba4852029 /ld | |
parent | 43e379d74c994fe431368b5f25f778bf601a2981 (diff) | |
download | gdb-3d8505928a06e00b05bb162c1ad0dd612c1c16af.zip gdb-3d8505928a06e00b05bb162c1ad0dd612c1c16af.tar.gz gdb-3d8505928a06e00b05bb162c1ad0dd612c1c16af.tar.bz2 |
x86: Add -Wl,--no-as-needed to some TLS tests
* testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
"TLS without PLT (1)" and "TLS without PLT (3)".
* testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
to "TLS without PLT (3)".
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/tls.exp | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/tls.exp | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 4fc4e1d..ff52608 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,12 @@ 2017-05-02 H.J. Lu <hongjiu.lu@intel.com> + * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to + "TLS without PLT (1)" and "TLS without PLT (3)". + * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to + to "TLS without PLT (3)". + +2017-05-02 H.J. Lu <hongjiu.lu@intel.com> + PR ld/21384 * testsuite/ld-elf/pr21384.d: New file. * testsuite/ld-elf/pr21384.dl: Likewise. diff --git a/ld/testsuite/ld-i386/tls.exp b/ld/testsuite/ld-i386/tls.exp index 7a99e46..5fd42bc 100644 --- a/ld/testsuite/ld-i386/tls.exp +++ b/ld/testsuite/ld-i386/tls.exp @@ -141,7 +141,7 @@ run_ld_link_exec_tests [list \ ] \ [list \ "TLS without PLT (1)" \ - "tmpdir/tls-main1.o \ + "-Wl,--no-as-needed tmpdir/tls-main1.o \ tmpdir/libtls-1a.so tmpdir/libtls-1b.so -Wl,-R,tmpdir" \ "" \ { dummy.s } \ @@ -159,7 +159,7 @@ run_ld_link_exec_tests [list \ ] \ [list \ "TLS without PLT (3)" \ - "-Wl,-z,now tmpdir/tls-main1.o \ + "-Wl,--no-as-needed -Wl,-z,now tmpdir/tls-main1.o \ tmpdir/libtls-1a.so tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \ "" \ { dummy.s } \ diff --git a/ld/testsuite/ld-x86-64/tls.exp b/ld/testsuite/ld-x86-64/tls.exp index 5282146..4263d95 100644 --- a/ld/testsuite/ld-x86-64/tls.exp +++ b/ld/testsuite/ld-x86-64/tls.exp @@ -159,7 +159,7 @@ run_ld_link_exec_tests [list \ ] \ [list \ "TLS without PLT (3)" \ - "-Wl,-z,now tmpdir/tls-main1.o \ + "-Wl,--no-as-needed -Wl,-z,now tmpdir/tls-main1.o \ tmpdir/libtls-1a.so tmpdir/libtls-1bn.so -Wl,-R,tmpdir" \ "" \ { dummy.s } \ |