aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-10-08 22:17:35 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-10-08 22:17:35 +0000
commita7f18fb387151b49d2751a5085c4e48f605264d0 (patch)
tree7e99e697bff3d25167a932e4dd25a5ce8855b093 /ld/ldlang.c
parent5fbad20aae685921fd57536b22b6e29ebe17b97f (diff)
downloadfsf-binutils-gdb-a7f18fb387151b49d2751a5085c4e48f605264d0.zip
fsf-binutils-gdb-a7f18fb387151b49d2751a5085c4e48f605264d0.tar.gz
fsf-binutils-gdb-a7f18fb387151b49d2751a5085c4e48f605264d0.tar.bz2
* ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
whether to skip test for no memory region.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index f443acd..2d1f5d5 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -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