aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-05-19 06:09:31 +0000
committerAlan Modra <amodra@gmail.com>2006-05-19 06:09:31 +0000
commitf0636a4439c44c9919dd52b7f83b50fa729fac2f (patch)
treeace81ea048c0622a46d0e140efb64b8bca1c66bb /ld/ldlang.c
parent1ea63fd215f30c2e235a2ba8c550d28d711aea60 (diff)
downloadgdb-f0636a4439c44c9919dd52b7f83b50fa729fac2f.zip
gdb-f0636a4439c44c9919dd52b7f83b50fa729fac2f.tar.gz
gdb-f0636a4439c44c9919dd52b7f83b50fa729fac2f.tar.bz2
* ldlang.c (lang_size_sections_1): Don't check mem regions for
os->ignored sections.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 0412538..7b026b0 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -4198,7 +4198,8 @@ 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 (!IGNORE_SECTION (os->bfd_section)
+ if (!os->ignored
+ && !IGNORE_SECTION (os->bfd_section)
&& ! link_info.relocatable
&& check_regions
&& strcmp (os->region->name,