* ldlang.c (lang_size_sections_1): Don't complain about
authorAlan Modra <amodra@gmail.com>
Mon, 8 Apr 2002 01:01:43 +0000 (01:01 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 8 Apr 2002 01:01:43 +0000 (01:01 +0000)
SEC_NEVER_LOAD sections having no memory region specified.

ld/ChangeLog
ld/ldlang.c

index a4f616e67d7c4ae9721d2e8443deeb540534fb20..57b607c5b3b240786f664b46a06d3cbc84fefa9b 100644 (file)
@@ -1,5 +1,8 @@
 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
 
+       * ldlang.c (lang_size_sections_1): Don't complain about
+       SEC_NEVER_LOAD sections having no memory region specified.
+
        * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
 
 2002-04-07  matthew green  <mrg@redhat.com>
index 83f6317353e5843252b25507785b48af55fde85e..afa77e1eabaa7f6e0000c340e39126b4dde3d682 100644 (file)
@@ -2930,6 +2930,8 @@ lang_size_sections_1 (s, output_section_statement, prev, fill, dot, relax)
                       defined, issue a warning.  */
                    if ((bfd_get_section_flags (output_bfd, os->bfd_section)
                         & (SEC_ALLOC | SEC_LOAD)) != 0
+                       && (bfd_get_section_flags (output_bfd, os->bfd_section)
+                           & SEC_NEVER_LOAD) == 0
                        && ! link_info.relocateable
                        && strcmp (os->region->name, "*default*") == 0
                        && lang_memory_region_list != NULL