aboutsummaryrefslogtreecommitdiff
path: root/ldscripts
diff options
context:
space:
mode:
authorDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2006-02-10 16:27:02 +1100
committerDavid Gibson <dgibson@sneetch.ozlabs.ibm.com>2006-02-10 16:27:02 +1100
commit59a7a7a65bb51690817045692b6e2542e957ca5f (patch)
tree54bd41fce6a6d0407d4b7a8c143d3670e105b6fb /ldscripts
parentd8e88a553dcaa8861e6cf8d2b97bec872f650434 (diff)
downloadlibhugetlbfs-59a7a7a65bb51690817045692b6e2542e957ca5f.tar.gz
Adjust 64-bit ppc linker script to use 1.5TB for BSS instead of 1TB, so
that programs linked with it can work (albeit without hugepage) on old kernels with the fixed 1-1.5TB hugepage range.
Diffstat (limited to 'ldscripts')
-rw-r--r--ldscripts/elf64ppc.xB5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldscripts/elf64ppc.xB b/ldscripts/elf64ppc.xB
index be2f22b..073735f 100644
--- a/ldscripts/elf64ppc.xB
+++ b/ldscripts/elf64ppc.xB
@@ -178,7 +178,10 @@ SECTIONS
/* Hugepage area */
/* Saving hugepages is more important than saving executable size, so
* we don't attempt to maintain congruence here */
- . = ALIGN(0x10000000000); /* Align to next 1TB area */
+ . = ALIGN(0x18000000000); /* Move into next 1TB area, but use 1.5TB
+ * instead of 1TB for compatibility with
+ * old kernels that have a fixed hugepage
+ * range */
/* HACK: workaround fact that kernel may not cope with segments with zero
* filesize */
.hugetlb.data : { LONG(1) } :htlb