aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-05-28 05:42:30 +0000
committerAlan Modra <amodra@gmail.com>2004-05-28 05:42:30 +0000
commit164e712d71c3e73cf048b45615b8f3f2f1fc4b84 (patch)
treeaf51365646945b52fa48e5eebdd14b134562df8a /ld/emultempl
parent652ca075fb8a0fa8dfaed984df1e8ca250f6fcce (diff)
downloadgdb-164e712d71c3e73cf048b45615b8f3f2f1fc4b84.zip
gdb-164e712d71c3e73cf048b45615b8f3f2f1fc4b84.tar.gz
gdb-164e712d71c3e73cf048b45615b8f3f2f1fc4b84.tar.bz2
* ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
(output_section_callback): Nor SEC_KEEP here. (gc_section_callback): Twiddle SEC_EXCLUDE here. (lang_gc_wild): Delete. Fold into.. (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage collecting. (lang_process): Always call lang_gc_sections. (lang_place_orphans): Handle SEC_EXCLUDE sections. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove SEC_EXCLUDE code.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em10
1 files changed, 0 insertions, 10 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 9950649..2039846 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1182,16 +1182,6 @@ 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 (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;
- return TRUE;
- }
-
place = NULL;
if ((s->flags & SEC_ALLOC) == 0)
;