From: jakub Date: Wed, 3 Apr 2002 10:25:40 +0000 (+0000) Subject: * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3b7bee63e4b680bd1cf7e92c5c4248d85160dc5c;p=pf3gnuchains%2Fpf3gnuchains3x.git * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size is smaller than maximum, round dot up to common page boundary. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 929977e3af..33c861e16f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2002-04-03 Jakub Jelinek + + * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size + is smaller than maximum, round dot up to common page boundary. + 2002-03-28 Alan Modra * configure.host: Set up for generic hosts first, then tweak as diff --git a/ld/ldexp.c b/ld/ldexp.c index 903374ed01..c4876a877e 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -356,7 +356,8 @@ fold_binary (tree, current_section, allocation_done, dot, dotp) } } else if (other.value < maxpage) - result.value += dot & (maxpage - other.value); + result.value += (dot + other.value - 1) + & (maxpage - other.value); } else result.valid_p = false;