aboutsummaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-08-21 13:10:54 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-08-21 13:10:54 +0000
commit2b60860a4c823c5de508a6af53fcfd1c57c31cba (patch)
treef10dfea14e939e3f8b1bf79506d436e81ea8b522 /ld/ldexp.c
parentd9c78d7d2c66f687879ec9399fbaf60d08ed8cc2 (diff)
downloadgdb-2b60860a4c823c5de508a6af53fcfd1c57c31cba.zip
gdb-2b60860a4c823c5de508a6af53fcfd1c57c31cba.tar.gz
gdb-2b60860a4c823c5de508a6af53fcfd1c57c31cba.tar.bz2
PR ld/6833
* ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align EXPLD.DATASEG.MIN_BASE. * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'. Use OLD_BASE now for the minimal base check after the base decrease by the maximum alignment found.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r--ld/ldexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 3c6ad0c..08664e6 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -415,7 +415,7 @@ fold_binary (etree_type *tree)
if (expld.phase == lang_allocating_phase_enum)
{
expld.dataseg.phase = exp_dataseg_align_seen;
- expld.dataseg.min_base = align_n (expld.dot, maxpage);
+ expld.dataseg.min_base = expld.dot;
expld.dataseg.base = expld.result.value;
expld.dataseg.pagesize = commonpage;
expld.dataseg.maxpagesize = maxpage;