diff options
author | Alan Modra <amodra@gmail.com> | 2012-11-06 03:44:51 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-11-06 03:44:51 +0000 |
commit | 53d8967a8594639334bfd928268e0857b2e72732 (patch) | |
tree | b40a017244ff1735d494b18eb0c3cfd465a21bea /bfd/elf64-ppc.c | |
parent | 1ec2d25ebf75dc6efc4a57e9e62565cf3ad13d87 (diff) | |
download | gdb-53d8967a8594639334bfd928268e0857b2e72732.zip gdb-53d8967a8594639334bfd928268e0857b2e72732.tar.gz gdb-53d8967a8594639334bfd928268e0857b2e72732.tar.bz2 |
* elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index ff6c4b2..6bdc701 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) |