diff options
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 7 |
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; |