From 50e05050cddfd84925e0dc7a09228cb15035f4fa Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 24 Nov 1999 11:43:11 +0000 Subject: [PATCH] Fix bug in previous delta --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 8a723c9430b..41c5a5c44bd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +1999-11-24 Nick Clifton + + * ldlang.c (IGNORE_SECTION): Section must have both ALLOC and LOAD + attributes in order to be checked. + 1999-11-22 Nick Clifton * ldlang.c (lang_check_section_addresses): Fix test to determine diff --git a/ld/ldlang.c b/ld/ldlang.c index ad890d19998..e203b4791ee 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -2609,7 +2609,7 @@ size_input_section (this_ptr, output_section_statement, fill, dot, relax) } #define IGNORE_SECTION(bfd, s) \ - (((bfd_get_section_flags (bfd, s) & (SEC_ALLOC | SEC_LOAD)) == 0) \ + (((bfd_get_section_flags (bfd, s) & (SEC_ALLOC | SEC_LOAD)) != (SEC_ALLOC | SEC_LOAD)) \ || bfd_section_size (bfd, s) == 0) /* Check to see if any allocated sections overlap with other allocated -- 2.30.2