aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-11-06 03:44:49 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-11-06 03:44:49 +0000
commit6ede38e8a05b789238377a0b40f228b47aa04953 (patch)
tree6ac4b904924bf3cd33ce7b2f81aa9b19bdac54de
parent61194af8f3a12e365aa0c39e68cc7eeb69ec8ba2 (diff)
downloadbinutils-6ede38e8a05b789238377a0b40f228b47aa04953.tar.gz
* elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf64-ppc.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index df18d9571..cebc00794 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-06 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP.
+
2012-11-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
PR target/14788
@@ -1447,7 +1451,7 @@
PR target/13503
* reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
* bfd-in2.h: Regenerate.
- * libbfd.h: Regenrate.
+ * libbfd.h: Regenerate.
* elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to
R_AVR_8_HLO8.
(avr_reloc_map): Likewise.
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index ff6c4b272..6bdc701d0 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11300,6 +11300,7 @@ maybe_strip_output (struct bfd_link_info *info, asection *isec)
{
if (isec->size == 0
&& isec->output_section->size == 0
+ && !(isec->output_section->flags & SEC_KEEP)
&& !bfd_section_removed_from_list (info->output_bfd,
isec->output_section)
&& elf_section_data (isec->output_section)->dynindx == 0)