aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-07-03 00:45:50 +0000
committerAlan Modra <amodra@gmail.com>2013-07-03 00:45:50 +0000
commitc66bb0eea0d2b6bc4b07f3457e2166fd0bbaba3c (patch)
treeb5230c28371b99803c5722adb9c25516d819e660 /bfd/elf64-ppc.c
parentc21a6e9987b4c74180ee0c17baf5a4f7b7c551eb (diff)
downloadgdb-c66bb0eea0d2b6bc4b07f3457e2166fd0bbaba3c.zip
gdb-c66bb0eea0d2b6bc4b07f3457e2166fd0bbaba3c.tar.gz
gdb-c66bb0eea0d2b6bc4b07f3457e2166fd0bbaba3c.tar.bz2
* elf64-ppc.c (ppc64_elf_func_desc_adjust): Hide ".TOC.".
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 7829520..5a4bcfd 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;