aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-01-01 00:06:24 +0000
committerJakub Jelinek <jakub@redhat.com>2006-01-01 00:06:24 +0000
commitbce50a28c08e1fb5131a6c63125e12c73b965e93 (patch)
tree656c69d030587073b7c069edbab6edf841cf9b74 /bfd/elf64-ppc.c
parent7a732551f444e96b123fb7b8acdbf3cde09acbf4 (diff)
downloadgdb-bce50a28c08e1fb5131a6c63125e12c73b965e93.zip
gdb-bce50a28c08e1fb5131a6c63125e12c73b965e93.tar.gz
gdb-bce50a28c08e1fb5131a6c63125e12c73b965e93.tar.bz2
* elf64-ppc.c (ppc64_elf_action_discarded): Return 0
for .toc1 section.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index e3908aa..a2cfaac 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -1,5 +1,5 @@
/* PowerPC64-specific support for 64-bit ELF.
- Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
Written by Linus Nordberg, Swox AB <info@swox.com>,
based on elf32-ppc.c by Ian Lance Taylor.
@@ -9494,6 +9494,9 @@ ppc64_elf_action_discarded (asection *sec)
if (strcmp (".toc", sec->name) == 0)
return 0;
+ if (strcmp (".toc1", sec->name) == 0)
+ return 0;
+
return _bfd_elf_default_action_discarded (sec);
}