aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-05-26 10:23:51 +0000
committerAlan Modra <amodra@gmail.com>2004-05-26 10:23:51 +0000
commite49f502242bc5fc72547397cd344aea5b9f53a14 (patch)
treeae210021072a6f2ccbcc28338697c52a865fb43c /bfd
parentc23968a21823bf856b9876dcf30483dc26c1a650 (diff)
downloadfsf-binutils-gdb-e49f502242bc5fc72547397cd344aea5b9f53a14.zip
fsf-binutils-gdb-e49f502242bc5fc72547397cd344aea5b9f53a14.tar.gz
fsf-binutils-gdb-e49f502242bc5fc72547397cd344aea5b9f53a14.tar.bz2
bfd/
* elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE for SHT_GROUP sections. ld/ * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP sections when doing a final link. Clear SEC_EXCLUDE when doing a relocable link, except for SEC_DEBUGGING sections. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the same condition here to drop SEC_EXCLUDE orphan sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 93ae1f6..a771b9a 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-26 Alan Modra <amodra@bigpond.net.au>
+
+ * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
+ for SHT_GROUP sections.
+
2004-05-25 Alan Modra <amodra@bigpond.net.au>
* elflink.c (elf_link_add_object_symbols): Don't set up merge
diff --git a/bfd/elf.c b/bfd/elf.c
index 93a3d3a..61f5f57 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -677,7 +677,7 @@ _bfd_elf_make_section_from_shdr (bfd *abfd,
if (hdr->sh_type != SHT_NOBITS)
flags |= SEC_HAS_CONTENTS;
if (hdr->sh_type == SHT_GROUP)
- flags |= SEC_GROUP | SEC_EXCLUDE;
+ flags |= SEC_GROUP;
if ((hdr->sh_flags & SHF_ALLOC) != 0)
{
flags |= SEC_ALLOC;