* ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
authorAlan Modra <amodra@gmail.com>
Tue, 26 May 2009 01:20:39 +0000 (01:20 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 26 May 2009 01:20:39 +0000 (01:20 +0000)
ld/ChangeLog
ld/ldlang.c

index 0671b7f23d2e179b532bdad27aed3a4ff4d51f0d..ded1d2a96a92b9c4f36a1e8ba119b1a950da842a 100644 (file)
@@ -1,3 +1,7 @@
+2009-05-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
+
 2009-05-22  Julian Brown  <julian@codesourcery.com>
 
        * emultempl/armelf.em (fix_cortex_a8): New.
index 2f1e0eac18f05ccadb017ffc5c62e78806e07684..30d71aa5215d60b34e127371c0420d2ad9ce284a 100644 (file)
@@ -4498,7 +4498,9 @@ lang_check_section_addresses (void)
   for (s = link_info.output_bfd->sections; s != NULL; s = s->next)
     {
       /* Only consider loadable sections with real contents.  */
-      if ((s->flags & SEC_NEVER_LOAD) || !(s->flags & SEC_LOAD)
+      if ((s->flags & SEC_NEVER_LOAD)
+         || !(s->flags & SEC_LOAD)
+         || !(s->flags & SEC_ALLOC)
          || s->size == 0)
        continue;