From: Alan Modra Date: Wed, 3 Jul 2013 00:45:50 +0000 (+0000) Subject: * elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c66bb0eea0d2b6bc4b07f3457e2166fd0bbaba3c;p=binutils-gdb.git * elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.". --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cf111ae1a30..71d6148be72 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2013-07-03 Alan Modra + + * elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.". + 2013-07-02 Tristan Gingold * coff-rs6000.c (xcoff_find_nearest_line_discriminator): Add missing @@ -9,7 +13,7 @@ (_bfd_vms_find_nearest_line_discriminator): New function. 2013-07-02 Tristan Gingold - + * coff-rs6000.c (xcoff_create_csect_from_smclas): Handle more smclas. 2013-07-02 Tristan Gingold diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 7829520a7f2..5a4bcfd566d 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -6550,6 +6550,13 @@ ppc64_elf_func_desc_adjust (bfd *obfd ATTRIBUTE_UNUSED, 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;