* ldlang.c (lang_size_sections_1): Don't check mem regions for
authorAlan Modra <amodra@gmail.com>
Fri, 19 May 2006 06:09:31 +0000 (06:09 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 19 May 2006 06:09:31 +0000 (06:09 +0000)
os->ignored sections.

ld/ChangeLog
ld/ldlang.c

index d8b2a7decf8d09b457a741c66dd769fa12c3cc57..a780b87c24fa6f98361c5925773587566a4ee63f 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-19  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (lang_size_sections_1): Don't check mem regions for
+       os->ignored sections.
+
 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * ldlang.c (lang_size_sections): Call lang_reset_memory_regions
index 041253859d57ab300d2dc7b6d7d6429cbd02ec80..7b026b0f6b969d574325b858e7a140fd0ba9f6e2 100644 (file)
@@ -4198,7 +4198,8 @@ lang_size_sections_1
                    /* If a loadable section is using the default memory
                       region, and some non default memory regions were
                       defined, issue an error message.  */
-                   if (!IGNORE_SECTION (os->bfd_section)
+                   if (!os->ignored
+                       && !IGNORE_SECTION (os->bfd_section)
                        && ! link_info.relocatable
                        && check_regions
                        && strcmp (os->region->name,