]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix reference to toc symbol.
authorAlan Modra <amodra@gmail.com>
Wed, 2 Apr 2014 03:10:21 +0000 (13:40 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 2 Apr 2014 03:10:21 +0000 (13:40 +1030)
https://sourceware.org/ml/binutils/2014-03/msg00033.html removes the
"magic" treatment of symbols defined in a .toc section.

* sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.

ChangeLog
sysdeps/powerpc/powerpc64/start.S

index bfb30834fc15d6e839f0ac12984b1dba80819c75..13e2c935ac77eb80c048ce9a7f7b77bf7d9b844a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-04-02  Alan Modra  <amodra@gmail.com>
+
+       * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
+
 2014-04-01  Will Newton  <will.newton@linaro.org>
 
        * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
index 15e29d9fb0da008cdc54cb6b10cfe275948964e6..934c558389dfd9f2ca1cc4fa7989cb8e58628f02 100644 (file)
@@ -74,7 +74,7 @@ ENTRY(_start)
 
  /* put the address of start_addresses in r8...  **
 ** PPC64 ABI uses R13 for thread local, so we leave it alone */
-       ld      r8,.L01(r2)
+       ld      r8,.L01@toc(r2)
 
  /* and continue in libc-start, in glibc.  */
        b       JUMPTARGET(__libc_start_main)