aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-05-27 05:53:36 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-05-27 05:53:36 +0000
commitb30962503862fcef0e3c550d4b652b2318e8684a (patch)
treee5c2134c9b2c5fa702f16eb71ddd6e80da1c5e78 /bfd/elf.c
parent9bb351fd9cfb5adf3630f433486727808fe994e7 (diff)
downloadgdb-b30962503862fcef0e3c550d4b652b2318e8684a.zip
gdb-b30962503862fcef0e3c550d4b652b2318e8684a.tar.gz
gdb-b30962503862fcef0e3c550d4b652b2318e8684a.tar.bz2
bfd/
2004-05-26 H.J. Lu <hongjiu.lu@intel.com> * elf.c (_bfd_elf_make_section_from_shdr): Undo the last change. ld/ 2004-05-26 H.J. Lu <hongjiu.lu@intel.com> * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link. * ldlang.c (lang_add_section): Likewise.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 61f5f57..93a3d3a 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;
+ flags |= SEC_GROUP | SEC_EXCLUDE;
if ((hdr->sh_flags & SHF_ALLOC) != 0)
{
flags |= SEC_ALLOC;