aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
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 /ld/emultempl
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 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em7
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 89c5d5d..9950649 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1182,9 +1182,10 @@ gld${EMULATION_NAME}_place_orphan (lang_input_statement_type *file, asection *s)
#define HAVE_SECTION(hold, name) \
(hold.os != NULL || (hold.os = lang_output_section_find (name)) != NULL)
- if (((s->flags & (SEC_EXCLUDE | SEC_GROUP)) != 0 && !link_info.relocatable)
- || ((s->flags & (SEC_EXCLUDE | SEC_DEBUGGING))
- == (SEC_EXCLUDE | SEC_DEBUGGING)))
+ if (link_info.relocatable && (s->flags & SEC_DEBUGGING) == 0)
+ s->flags &= ~SEC_EXCLUDE;
+
+ if ((s->flags & SEC_EXCLUDE) != 0)
{
if (s->output_section == NULL)
s->output_section = bfd_abs_section_ptr;