diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2004-09-07 15:54:47 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2004-09-07 15:54:47 +0000 |
commit | d8795fb4a9acea4671a212e6beee088549660f55 (patch) | |
tree | f968db117437244658e1fac556868d986c12469c /ld | |
parent | eb015fae1f45d1925098e27b24ba48361e678ed7 (diff) | |
download | binutils-redhat-d8795fb4a9acea4671a212e6beee088549660f55.tar.gz |
* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
alignment before adjusting DATA_SEGMENT_RELRO_END.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldexp.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index e61f71960b..0f5562268c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2004-09-07 Andreas Schwab <schwab@suse.de> + + * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment + alignment before adjusting DATA_SEGMENT_RELRO_END. + 2004-09-06 Mark Mitchell <mark@codesourcery.com> * emulparams/armsymbian.sh: Use armbpabi script. diff --git a/ld/ldexp.c b/ld/ldexp.c index e7587c1710..c19070f41d 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -427,6 +427,7 @@ fold_binary (etree_type *tree, a common page boundary. */ bfd_vma relro; + result.value += dot & (maxpage - 1); relro = exp_data_seg.relro_end - exp_data_seg.base; result.value += -relro & (other.value - 1); exp_data_seg.base = result.value; |