summaryrefslogtreecommitdiff
path: root/sys/arch/arm/conf/ldscript.head
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-12-30 23:50:08 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-12-30 23:50:08 +0000
commit3e2923d918820b57513c2f1a63841ef8a23bbd26 (patch)
treea17ba84997c10b54a3e4c6f3d97dcefb2b83d7b8 /sys/arch/arm/conf/ldscript.head
parent5964e793205ec0e85b0e4a9fdf19a469788eb6f4 (diff)
xscale bits, taken from NetBSD with modifications as appropriate for OpenBSD.
Diffstat (limited to 'sys/arch/arm/conf/ldscript.head')
-rw-r--r--sys/arch/arm/conf/ldscript.head25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/arch/arm/conf/ldscript.head b/sys/arch/arm/conf/ldscript.head
new file mode 100644
index 00000000000..58e099f1d5d
--- /dev/null
+++ b/sys/arch/arm/conf/ldscript.head
@@ -0,0 +1,25 @@
+/* $NetBSD: ldscript.evbarm,v 1.2 2003/03/05 23:54:22 thorpej Exp $
+*/
+
+OUTPUT_ARCH(arm)
+ENTRY(KERNEL_BASE_phys)
+SECTIONS
+{
+ KERNEL_BASE_phys = @KERNEL_BASE_PHYS@;
+ KERNEL_BASE_virt = @KERNEL_BASE_VIRT@;
+
+ /* Kernel start: */
+ .start (KERNEL_BASE_phys) :
+ {
+ *(.start)
+ } =0
+
+ /* Read-only sections, merged into text segment: */
+ .text (KERNEL_BASE_virt + SIZEOF(.start)) :
+ AT (LOADADDR(.start) + SIZEOF(.start))
+ {
+ *(.text)
+ *(.text.*)
+ *(.stub)
+ *(.glue_7t) *(.glue_7)
+ *(.rodata) *(.rodata.*)