From: Alan Modra Date: Fri, 19 May 2006 06:09:31 +0000 (+0000) Subject: * ldlang.c (lang_size_sections_1): Don't check mem regions for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0636a4439c44c9919dd52b7f83b50fa729fac2f;p=binutils-gdb.git * ldlang.c (lang_size_sections_1): Don't check mem regions for os->ignored sections. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index d8b2a7decf8..a780b87c24f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2006-05-19 Alan Modra + + * ldlang.c (lang_size_sections_1): Don't check mem regions for + os->ignored sections. + 2005-05-17 Daniel Jacobowitz * ldlang.c (lang_size_sections): Call lang_reset_memory_regions diff --git a/ld/ldlang.c b/ld/ldlang.c index 041253859d5..7b026b0f6b9 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,