summaryrefslogtreecommitdiffstats
path: root/sys/conf/ldscript.amd64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/conf/ldscript.amd64')
-rw-r--r--sys/conf/ldscript.amd647
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64
index 9210a73..a9521d8 100644
--- a/sys/conf/ldscript.amd64
+++ b/sys/conf/ldscript.amd64
@@ -8,7 +8,12 @@ SECTIONS
/* Read-only sections, merged into text segment: */
kernphys = CONSTANT (MAXPAGESIZE);
. = kernbase + kernphys + SIZEOF_HEADERS;
- .interp : { *(.interp) }
+ /*
+ * Use the AT keyword in order to set the right LMA that contains
+ * the physical address where the section should be loaded. This is
+ * needed for the Xen loader which honours the LMA.
+ */
+ .interp : AT (kernphys + SIZEOF_HEADERS) { *(.interp) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
OpenPOWER on IntegriCloud