* ldlang.c (strip_excluded_output_sections): Don't ignore sections
authorAlan Modra <amodra@gmail.com>
Fri, 13 Jul 2007 07:34:25 +0000 (07:34 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 13 Jul 2007 07:34:25 +0000 (07:34 +0000)
with update_dot_tree.

ld/ChangeLog
ld/ldlang.c

index 7b9a1f84cd24e15ae650ebe8aaa06a384bdb1ee4..52324af7555d509cf464ee275ef4bee0fb7e7c52 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-13  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (strip_excluded_output_sections): Don't ignore sections
+       with update_dot_tree.
+
 2007-07-12  Nathan Sidwell  <nathan@codesourcery.com>
 
        * scripttempl/pe.sc: Don't include .gcc_except_table and
index 56edee80a1dab226861a813d92e75257fad46bcb..ecc0dad9640b69bff68831bf805b50d6064ed274 100644 (file)
@@ -3380,7 +3380,8 @@ strip_excluded_output_sections (void)
        {
          /* We don't set bfd_section to NULL since bfd_section of the
             removed output section statement may still be used.  */
-         if (!os->section_relative_symbol)
+         if (!os->section_relative_symbol
+             && !os->update_dot_tree)
            os->ignored = TRUE;
          output_section->flags |= SEC_EXCLUDE;
          bfd_section_list_remove (output_bfd, output_section);