From acd56f757b4e5ab8737b9564bd7a4ad1009acd8d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 2 Apr 2014 13:40:21 +1030 Subject: [PATCH] Fix reference to toc symbol. 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. Backport of 483818d768ed99a5edf4114298a75ebedaee8d5c. --- ChangeLog | 4 ++++ sysdeps/powerpc/powerpc64/start.S | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a54240d46ca..17683349e91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-04-02 Alan Modra + + * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference. + 2014-04-01 Alan Modra [BZ #16786] diff --git a/sysdeps/powerpc/powerpc64/start.S b/sysdeps/powerpc/powerpc64/start.S index 15e29d9fb0d..934c558389d 100644 --- a/sysdeps/powerpc/powerpc64/start.S +++ b/sysdeps/powerpc/powerpc64/start.S @@ -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) -- 2.47.2