summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2001-10-08 10:43:34 +0000
committermp <mp@FreeBSD.org>2001-10-08 10:43:34 +0000
commit28baac583a7e98ff29cf97f76f36e97ecacd026b (patch)
tree8c56ac8130f4ca72b0b183e55546d733b6b7406a
parentb97af7c8125a8779a00e46b3d8215ae23787b7d3 (diff)
downloadFreeBSD-src-28baac583a7e98ff29cf97f76f36e97ecacd026b.zip
FreeBSD-src-28baac583a7e98ff29cf97f76f36e97ecacd026b.tar.gz
Page align the data segment.
-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