This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: powerpc64 toc pointer value


Yet another change for ".TOC.".  Like _GLOBAL_OFFSET_TABLE_ this symbol
shouldn't become dynamic.

	* elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.".

Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.413
diff -u -p -r1.413 elf64-ppc.c
--- bfd/elf64-ppc.c	2 Jul 2013 00:25:07 -0000	1.413
+++ bfd/elf64-ppc.c	2 Jul 2013 23:56:50 -0000
@@ -6550,6 +6550,13 @@ ppc64_elf_func_desc_adjust (bfd *obfd AT
   if (htab == NULL)
     return FALSE;
 
+  if (htab->elf.hgot != NULL)
+    {
+      htab->elf.hgot->root.type = bfd_link_hash_new;
+      htab->elf.hgot->type = STT_OBJECT;
+      _bfd_elf_link_hash_hide_symbol (info, htab->elf.hgot, TRUE);
+    }
+
   if (htab->sfpr == NULL)
     /* We don't have any relocs.  */
     return TRUE;

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]