X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fldlang.c;h=7b026b0f6b969d574325b858e7a140fd0ba9f6e2;hb=f0636a4439c44c9919dd52b7f83b50fa729fac2f;hp=041253859d57ab300d2dc7b6d7d6429cbd02ec80;hpb=1ea63fd215f30c2e235a2ba8c550d28d711aea60;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldlang.c b/ld/ldlang.c index 041253859d..7b026b0f6b 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,