* ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 8 Oct 2003 22:17:35 +0000 (22:17 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 8 Oct 2003 22:17:35 +0000 (22:17 +0000)
whether to skip test for no memory region.

ld/ChangeLog
ld/ldlang.c

index f12a8a8719feb6870322e33182373c6c6a5533d0..b054185ca37a914193b4869b6c1c80c590e2ab26 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-08  Alexandre Oliva  <aoliva@redhat.com>
+
+       * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
+       whether to skip test for no memory region.
+
 2003-10-08  Nick Clifton  <nickc@redhat.com>
 
        * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
index f443acd058b0dfa1c35193218a19e184f5660a7c..2d1f5d50823f1c36fc0b871c8b49fab8559ef276 100644 (file)
@@ -2801,8 +2801,7 @@ 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 ((bfd_get_section_flags (output_bfd, os->bfd_section)
-                        & (SEC_ALLOC | SEC_LOAD)) != 0
+                   if (!IGNORE_SECTION (output_bfd, os->bfd_section)
                        && (bfd_get_section_flags (output_bfd, os->bfd_section)
                            & SEC_NEVER_LOAD) == 0
                        && ! link_info.relocatable
This page took 0.039166 seconds and 4 git commands to generate.