PR ld/5785
authorNick Clifton <nickc@redhat.com>
Fri, 22 Feb 2008 14:19:43 +0000 (14:19 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 22 Feb 2008 14:19:43 +0000 (14:19 +0000)
        * ldlang.c (lang_size_sections_1): Honour the setting of an
        lma_region even if there is no vma region set, or the vma region
        is the same as the lma region.

ld/ChangeLog
ld/ldlang.c

index 7ba5fb42494f36fea342aeaeab59ecf188a41b7b..27d2e6fa3d0aa1d905fbe3c5912fb03437074124 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-22  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/5785
+       * ldlang.c (lang_size_sections_1): Honour the setting of an
+       lma_region even if there is no vma region set, or the vma region
+       is the same as the lma region.
+
 2008-02-18  Nick Clifton  <nickc@redhat.com>
 
        * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
index 262c94b671a084e89e8fba0d4e3c11834f6dee72..cbf46fc1daeebeb1a64ea92d902dde30dc265475 100644 (file)
@@ -4594,9 +4594,7 @@ lang_size_sections_1
                bfd_vma lma = exp_get_abs_int (os->load_base, 0, "load base");
                os->bfd_section->lma = lma;
              }
-           else if (os->region != NULL
-                    && os->lma_region != NULL
-                    && os->lma_region != os->region)
+           else if (os->lma_region != NULL)
              {
                bfd_vma lma = os->lma_region->current;