aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-08-01 18:59:03 +0930
committerAndreas K. Hüttel <dilfridge@gentoo.org>2018-11-30 23:40:45 +0100
commit231e0dcac54c48468ad2755dd459cda5f7654474 (patch)
tree6cd7a5ab16c73c011ead4001d5db78954d34130c
parentPowerPC64 __tls_get_addr_opt stub .eh_frame fix (diff)
downloadbinutils-gdb-231e0dcac54c48468ad2755dd459cda5f7654474.tar.gz
binutils-gdb-231e0dcac54c48468ad2755dd459cda5f7654474.tar.bz2
binutils-gdb-231e0dcac54c48468ad2755dd459cda5f7654474.zip
Re: PowerPC64 __tls_get_addr_opt stub .eh_frame fix
The modified test failed on some powerpc targets due to differences in default hash style. If the default hash style is both, then more sections are created, bumping section ids. Section id is used in stub symbols and although the test is careful to not depend on id in labels, the stub hash traversal order changes when stub names change. That lead to the stubs being emitted in a different order and thus not matching expected output. * testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with hash-style specified. (cherry picked from commit a67ae9b01af7eb2b1f8e5c517338a4b12167ce40) (cherry picked from commit 95fbde6791dd4b7821a40cbbc985a257e4819fdb) Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-powerpc/powerpc.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c719502b781..97fe5699c84 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
2018-08-01 Alan Modra <amodra@gmail.com>
+ * testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with hash-style
+ specified.
+
+2018-08-01 Alan Modra <amodra@gmail.com>
+
* testsuite/ld-powerpc/powerpc.exp: Run tlsopt5 with plt alignment.
* testsuite/ld-powerpc/tlsopt5.s: Add extra call.
* testsuite/ld-powerpc/tlsopt5.wf: Adjust expected output.
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp
index 3c7b707cd0d..de762966e5d 100644
--- a/ld/testsuite/ld-powerpc/powerpc.exp
+++ b/ld/testsuite/ld-powerpc/powerpc.exp
@@ -221,7 +221,7 @@ set ppc64elftests {
"tlsopt4"}
{"TLS DLL" "-shared -melf64ppc --version-script tlsdll.ver" "" "-a64" {tlsdll.s}
{} "tlsdll.so"}
- {"TLS opt 5" "-melf64ppc -shared --gc-sections --no-plt-localentry tmpdir/tlsdll.so" "" "-a64" {tlsopt5.s}
+ {"TLS opt 5" "-melf64ppc -shared --hash-style=both --gc-sections --no-plt-localentry tmpdir/tlsdll.so" "" "-a64" {tlsopt5.s}
{{objdump -dr tlsopt5.d} {readelf -wf tlsopt5.wf}}
"tlsopt5"}
{"sym@tocbase" "-shared -melf64ppc" "" "-a64" {symtocbase-1.s symtocbase-2.s}