diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-10-27 03:22:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2006-10-27 03:22:09 +0000 |
commit | 79b62bf8ce98aa5b86ccbf753e02c3e3aef8fd83 (patch) | |
tree | 275226013f67afb03660cf822eda81bcbf1dcb0b /bfd/merge.c | |
parent | a659b9a7323ff7b1e5a6f901613efdecb70ea8d5 (diff) | |
download | binutils-redhat-79b62bf8ce98aa5b86ccbf753e02c3e3aef8fd83.tar.gz |
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 'bfd/merge.c')
-rw-r--r-- | bfd/merge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/merge.c b/bfd/merge.c index c1795d2911..577a716002 100644 --- a/bfd/merge.c +++ b/bfd/merge.c @@ -766,7 +766,7 @@ _bfd_merge_sections (bfd *abfd ATTRIBUTE_UNUSED, the hash table at all. */ for (secinfo = sinfo->chain; secinfo; secinfo = secinfo->next) if (secinfo->first_str == NULL) - secinfo->sec->flags |= SEC_EXCLUDE; + secinfo->sec->flags |= SEC_EXCLUDE | SEC_KEEP; } return TRUE; |