[PATCH] D19272: [ELF] - linkerscript AT keyword (in output section description) implemented.
Ed Maste via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 12:08:30 PDT 2016
emaste added a comment.
FYI the linker script parser now handles all of the FreeBSD kernel linker script except for `AT`. Now the only kernel linker script workaround in my test FreeBSD tree is:
diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64
index d445857..3efca9a 100644
--- a/sys/conf/ldscript.amd64
+++ b/sys/conf/ldscript.amd64
@@ -8,12 +8,7 @@ SECTIONS
/* Read-only sections, merged into text segment: */
kernphys = CONSTANT (MAXPAGESIZE);
. = kernbase + kernphys + SIZEOF_HEADERS;
- /*
- * 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) }
+ .interp : { *(.interp) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
https://reviews.llvm.org/D19272
More information about the llvm-commits
mailing list