* ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):

Adjust the current address of DEFAULT_MEMORY_REGION even when dot hasn't changed.
This commit is contained in:
Nick Clifton 2006-08-24 14:59:24 +00:00
parent f414f22f4b
commit 85852e367c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-08-24 Pedro Alves <pedro_alves@portugalmail.pt>
* 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 <amodra@bigpond.net.au>
* ldexp.c (fold_name <LOADADDR>): Return an absolute value

View File

@ -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