]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ldlang.c (lang_size_sections_1, lang_assignment_statement_enum):
authorNick Clifton <nickc@redhat.com>
Thu, 24 Aug 2006 14:59:24 +0000 (14:59 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 24 Aug 2006 14:59:24 +0000 (14:59 +0000)
  Adjust the current address of DEFAULT_MEMORY_REGION even when dot hasn't changed.

ld/ChangeLog
ld/ldlang.c

index 3e9c2d45a11262a74fd33387412fa88bb9d4c873..8b73d1378308617fa9ac782e9b4a9f76b902ace0 100644 (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
index df5c33cc258a1bb07a132fe3d4d39447ca0d8a17..36a61308ac0525d5f3373b28eb4642b23ee492f8 100644 (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