2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Mar 2005 15:56:27 +0000 (15:56 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Mar 2005 15:56:27 +0000 (15:56 +0000)
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
bfd_section when removing unused empty output sections for
non-relocatable link.

ld/ChangeLog
ld/emultempl/elf32.em

index dce7055aaf1017554c626d402fd1968e4e4a2c89..0b7d0d41ed3aaf712c6ab7f39db4904f9ed29aae 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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  <amodra@bigpond.net.au>
 
        * ldlang.c (lang_insert_orphan): Use old section_tail rather than
index d8309597ea232d5cf8eb252fa18701d9fddfb230..1acedb456b2901cad05158bd2f0ea2c6007930ad 100644 (file)
@@ -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)
                  {