aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-10-27 03:22:09 +0000
committerAlan Modra <amodra@gmail.com>2006-10-27 03:22:09 +0000
commita14a5de357808faa8a25d1eff69454a8c0dca8d8 (patch)
treef9198e55241910d034585796755a4c2f7746967c /ld/emultempl
parent7ebede5616fbc72ac4177676c039bef55cdf2b85 (diff)
downloadgdb-a14a5de357808faa8a25d1eff69454a8c0dca8d8.zip
gdb-a14a5de357808faa8a25d1eff69454a8c0dca8d8.tar.gz
gdb-a14a5de357808faa8a25d1eff69454a8c0dca8d8.tar.bz2
bfd/
* section.c (SEC_KEEP): Update comment. * bfd-in2.h: Regenerate. * elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections. * merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections. * stabs.c (_bfd_discard_section_stabs): Likewise. (_bfd_link_section_stabs): Likewise. Simplify abs_section check. ld/ * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP sections have been discarded. (lang_do_version_exports_section): Set SEC_KEEP on export section. * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning sections.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 3350ac0..99fb8ab 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1214,7 +1214,7 @@ ${ELF_INTERPRETER_SET_DEFAULT}
/* Also set SEC_EXCLUDE, so that symbols defined in the warning
section don't get copied to the output. */
- s->flags |= SEC_EXCLUDE;
+ s->flags |= SEC_EXCLUDE | SEC_KEEP;
}
}