]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: PowerPC64 __tls_get_addr_opt stub .eh_frame fix
authorAlan Modra <amodra@gmail.com>
Wed, 1 Aug 2018 09:29:03 +0000 (18:59 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 1 Aug 2018 09:36:37 +0000 (19:06 +0930)
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.

ld/ChangeLog
ld/testsuite/ld-powerpc/powerpc.exp

index 73e57b30d06e4697c2e6a16cd2c57a1a10d291b0..93b3f6729eedb2e98ab7781cb22e33d77de7f290 100644 (file)
@@ -1,3 +1,8 @@
+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.
index ed7bc74cf42308b8c0261d9e8149085f18b7fbb2..ac563eba14208cfd788d8e1e6bbc5e91d968b192 100644 (file)
@@ -224,7 +224,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}