* ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
authorAlan Modra <amodra@gmail.com>
Wed, 16 Jan 2008 01:28:21 +0000 (01:28 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 16 Jan 2008 01:28:21 +0000 (01:28 +0000)
ld/ChangeLog
ld/ldlang.c

index 1913eac7255dc47c51e20fa36889ed0e7ae81af0..3c479dbc429fc15c42180380a7354d655ffd9d14 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
+
 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
 
        * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
index 8aee9a38a699cccd67fa207a8df89fc0bab3cabe..c5ad76d7c114957606e3f15e4b10258028b2f3fa 100644 (file)
@@ -4702,8 +4702,7 @@ lang_size_sections_1
                       should have space allocated to it, unless the
                       user has explicitly stated that the section
                       should never be loaded.  */
-                   if (!(output_section_statement->flags
-                         & (SEC_NEVER_LOAD | SEC_ALLOC)))
+                   if (!(output_section_statement->flags & SEC_NEVER_LOAD))
                      output_section_statement->bfd_section->flags |= SEC_ALLOC;
                  }
                dot = newdot;