From 98720c64bcddccb687d46e6b087da0aef7abc198 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 18 Mar 2005 15:56:27 +0000 Subject: [PATCH] 2005-03-18 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set bfd_section when removing unused empty output sections for non-relocatable link. --- ld/ChangeLog | 6 ++++++ ld/emultempl/elf32.em | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index dce7055aaf1..0b7d0d41ed3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2005-03-18 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set + bfd_section when removing unused empty output sections for + non-relocatable link. + 2005-03-19 Alan Modra * ldlang.c (lang_insert_orphan): Use old section_tail rather than diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index d8309597ea2..1acedb456b2 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1459,8 +1459,6 @@ gld${EMULATION_NAME}_finish (void) { asection **p; - os->bfd_section = NULL; - for (p = &output_bfd->sections; *p; p = &(*p)->next) if (*p == s) { -- 2.30.2