This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: powerpc64 toc pointer value
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 3 Jul 2013 10:13:07 +0930
- Subject: Re: powerpc64 toc pointer value
- References: <20121106051720 dot GK31965 at bubble dot grove dot modra dot org> <20130701031642 dot GZ21523 at bubble dot grove dot modra dot org> <20130702002630 dot GC2602 at bubble dot grove dot modra dot org>
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