* elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP.
[deliverable/binutils-gdb.git] / bfd / elf64-ppc.c
index ff6c4b272103f8a49d179f98e5eafc768e9f94b9..6bdc701d067aea426476e927fb89320b397d6fe2 100644 (file)
@@ -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)
This page took 0.024916 seconds and 4 git commands to generate.