From: Nick Clifton Date: Thu, 24 Aug 2006 14:59:24 +0000 (+0000) Subject: * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85852e367c292980e79ea9d916dbc053da724af5;p=binutils-gdb.git * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum): Adjust the current address of DEFAULT_MEMORY_REGION even when dot hasn't changed. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 3e9c2d45a11..8b73d137830 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2006-08-24 Pedro Alves + + * ldlang.c (lang_size_sections_1, lang_assignment_statement_enum): + Adjust the current address of DEFAULT_MEMORY_REGION even + when dot hasn't changed. + 2006-08-23 Alan Modra * ldexp.c (fold_name ): Return an absolute value diff --git a/ld/ldlang.c b/ld/ldlang.c index df5c33cc258..36a61308ac0 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4621,7 +4621,7 @@ lang_size_sections_1 output_section_statement->bfd_section, &newdot); - if (newdot != dot && !output_section_statement->ignored) + if (!output_section_statement->ignored) { if (output_section_statement == abs_output_section) { @@ -4630,7 +4630,7 @@ lang_size_sections_1 lang_memory_region_lookup (DEFAULT_MEMORY_REGION, FALSE)->current = newdot; } - else + else if (newdot != dot) { /* Insert a pad after this statement. We can't put the pad before when relaxing, in case the