summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/conf/ldscript.powerpc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/conf/ldscript.powerpc b/sys/conf/ldscript.powerpc
index fda2f2e..fac182d 100644
--- a/sys/conf/ldscript.powerpc
+++ b/sys/conf/ldscript.powerpc
@@ -52,9 +52,8 @@ SECTIONS
.rodata1 : { *(.rodata1) }
.sdata2 : { *(.sdata2) }
.sbss2 : { *(.sbss2) }
- /* Adjust the address for the data segment. We want to adjust up to
- the same address within the page on the next page up. */
- . = .;
+ /* Adjust the address for the data segment to the next page up. */
+ . = ((. + 0x1000) & ~(0x1000 - 1));
.data :
{
*(.data)
OpenPOWER on IntegriCloud