From d08a14c3854c87e4e5ab279af5fd54061cd9cd7d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 8 Apr 2002 01:01:43 +0000 Subject: [PATCH] * ldlang.c (lang_size_sections_1): Don't complain about SEC_NEVER_LOAD sections having no memory region specified. --- ld/ChangeLog | 3 +++ ld/ldlang.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index a4f616e67d7..57b607c5b3b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,8 @@ 2002-04-08 Alan Modra + * ldlang.c (lang_size_sections_1): Don't complain about + SEC_NEVER_LOAD sections having no memory region specified. + * ld.texinfo (Format Commands ): Typo fix. 2002-04-07 matthew green diff --git a/ld/ldlang.c b/ld/ldlang.c index 83f6317353e..afa77e1eaba 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2930,6 +2930,8 @@ lang_size_sections_1 (s, output_section_statement, prev, fill, dot, relax) defined, issue a warning. */ if ((bfd_get_section_flags (output_bfd, os->bfd_section) & (SEC_ALLOC | SEC_LOAD)) != 0 + && (bfd_get_section_flags (output_bfd, os->bfd_section) + & SEC_NEVER_LOAD) == 0 && ! link_info.relocateable && strcmp (os->region->name, "*default*") == 0 && lang_memory_region_list != NULL