aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2006-08-24 14:59:24 +0000
committerNick Clifton <nickc@redhat.com>2006-08-24 14:59:24 +0000
commit85852e367c292980e79ea9d916dbc053da724af5 (patch)
tree8456a7fff91cdafc64d867f1539d34f45f1cc60a /ld/ldlang.c
parentf414f22f4be7f09b6b5eea0b0a61f535ee6d9137 (diff)
downloadgdb-85852e367c292980e79ea9d916dbc053da724af5.zip
gdb-85852e367c292980e79ea9d916dbc053da724af5.tar.gz
gdb-85852e367c292980e79ea9d916dbc053da724af5.tar.bz2
* ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
Adjust the current address of DEFAULT_MEMORY_REGION even when dot hasn't changed.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index df5c33c..36a6130 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