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 | 07dfcf38848fef6d958b810579ae5aeea6cb0e15 (patch) | |
tree | 6d4a72f9fb6016cf98052be34904800d9ee5116d /ld/ldlang.c | |
parent | 98ec6e726638cb708f0e818c747883fd840b8d1b (diff) | |
download | gdb-07dfcf38848fef6d958b810579ae5aeea6cb0e15.zip gdb-07dfcf38848fef6d958b810579ae5aeea6cb0e15.tar.gz gdb-07dfcf38848fef6d958b810579ae5aeea6cb0e15.tar.bz2 |
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.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 262c94b..cbf46fc 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; |