OSDN Git Service

Fix bug in previous delta
authornickc <nickc>
Wed, 24 Nov 1999 11:43:11 +0000 (11:43 +0000)
committernickc <nickc>
Wed, 24 Nov 1999 11:43:11 +0000 (11:43 +0000)
ld/ChangeLog
ld/ldlang.c

index 8a723c9..41c5a5c 100644 (file)
@@ -1,3 +1,8 @@
+1999-11-24  Nick Clifton  <nickc@cygnus.com>
+
+       * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD
+       attributes in order to be checked.
+
 1999-11-22  Nick Clifton  <nickc@cygnus.com>
 
        * ldlang.c (lang_check_section_addresses): Fix test to determine
index ad890d1..e203b47 100644 (file)
@@ -2609,7 +2609,7 @@ size_input_section (this_ptr, output_section_statement, fill, dot, relax)
 }
 
 #define IGNORE_SECTION(bfd, s) \
-  (((bfd_get_section_flags (bfd, s) & (SEC_ALLOC | SEC_LOAD)) == 0) \
+  (((bfd_get_section_flags (bfd, s) & (SEC_ALLOC | SEC_LOAD)) != (SEC_ALLOC | SEC_LOAD)) \
    || bfd_section_size (bfd, s) == 0)
 
 /* Check to see if any allocated sections overlap with other allocated