From bce50a28c08e1fb5131a6c63125e12c73b965e93 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 1 Jan 2006 00:06:24 +0000 Subject: [PATCH] * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 for .toc1 section. --- bfd/ChangeLog | 5 +++++ bfd/elf64-ppc.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index dc6be12..b526ae9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-01-01 Jakub Jelinek + + * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 + for .toc1 section. + 2005-12-31 Valeriy E. Ushakov Kaz Kojima 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 , 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); } -- 2.7.4