From: Alan Modra Date: Fri, 14 Jan 2011 02:27:41 +0000 (+0000) Subject: * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't X-Git-Tag: cgen-snapshot-20110201~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=175b7cd42c9adacf6fd3d4c70248c237647fa4fd;p=external%2Fbinutils.git * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't attempt to put non-alloc orphans before debug sections, just place them after .comment. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1dc63c1..886207b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2011-01-14 Alan Modra + + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't + attempt to put non-alloc orphans before debug sections, just place + them after .comment. + 2011-01-14 J. Park PR ld/12339 diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 9120f85..ddcd590 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -13,7 +13,7 @@ fragment < ELF support by Ian Lance Taylor @@ -1788,7 +1788,7 @@ gld${EMULATION_NAME}_place_orphan (asection *s, { ".sdata", SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_DATA | SEC_SMALL_DATA, 0, 0, 0, 0 }, - { 0, + { ".comment", SEC_HAS_CONTENTS, 0, 0, 0, 0 }, }; @@ -1880,7 +1880,6 @@ gld${EMULATION_NAME}_place_orphan (asection *s, if (!orphan_init_done) { - lang_output_section_statement_type *lookup; struct orphan_save *ho; for (ho = hold; ho < hold + sizeof (hold) / sizeof (hold[0]); ++ho) @@ -1890,16 +1889,6 @@ gld${EMULATION_NAME}_place_orphan (asection *s, if (ho->os != NULL && ho->os->flags == 0) ho->os->flags = ho->flags; } - lookup = hold[orphan_bss].os; - if (lookup == NULL) - lookup = &lang_output_section_statement.head->output_section_statement; - for (; lookup != NULL; lookup = lookup->next) - if ((lookup->bfd_section != NULL - && (lookup->bfd_section->flags & SEC_DEBUGGING) != 0) - || strcmp (lookup->name, ".comment") == 0) - break; - hold[orphan_nonalloc].os = lookup ? lookup->prev : NULL; - hold[orphan_nonalloc].name = ".comment"; orphan_init_done = 1; }