diff options
author | Nick Clifton <nickc@redhat.com> | 2008-02-22 14:19:43 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-02-22 14:19:43 +0000 |
commit | 81b5491b29eff77661d7490f1f4d6b6a7a7e9456 (patch) | |
tree | c850f11a00905ec090f284f41f3349e286b2f1c3 | |
parent | c515c50e987b7232e359854a62dae73f9d2d1580 (diff) | |
download | binutils-redhat-81b5491b29eff77661d7490f1f4d6b6a7a7e9456.tar.gz |
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.
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/ldlang.c | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 7ba5fb4249..27d2e6fa3d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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 diff --git a/ld/ldlang.c b/ld/ldlang.c index 262c94b671..cbf46fc1da 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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; |