* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment

alignment before adjusting DATA_SEGMENT_RELRO_END.
This commit is contained in:
Andreas Schwab 2004-09-07 15:54:47 +00:00
parent ee75fd9567
commit 875c4330ff
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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;