From: Alan Modra Date: Wed, 16 Jan 2008 01:28:21 +0000 (+0000) Subject: * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14ac84b444873e8a901fa46c8fd11f2ae182843d;p=binutils-gdb.git * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1913eac7255..3c479dbc429 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2008-01-16 Alan Modra + + * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test. + 2008-01-16 Alan Modra * ldlang.h (lang_afile_asection_pair_statement_enum): Delete. diff --git a/ld/ldlang.c b/ld/ldlang.c index 8aee9a38a69..c5ad76d7c11 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4702,8 +4702,7 @@ lang_size_sections_1 should have space allocated to it, unless the user has explicitly stated that the section should never be loaded. */ - if (!(output_section_statement->flags - & (SEC_NEVER_LOAD | SEC_ALLOC))) + if (!(output_section_statement->flags & SEC_NEVER_LOAD)) output_section_statement->bfd_section->flags |= SEC_ALLOC; } dot = newdot;