summaryrefslogtreecommitdiffstats
path: root/sys/conf/ldscript.arm
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2005-11-24 02:25:49 +0000
committercognet <cognet@FreeBSD.org>2005-11-24 02:25:49 +0000
commit2a2203ec202a935c64457164772bd84ca2d2814c (patch)
treef351d6a80ed4b7eb82e302cfe7c9cbd9b0d42f8b /sys/conf/ldscript.arm
parentcaae9bf0814e6d393e79b98b8b66b456cf281a12 (diff)
downloadFreeBSD-src-2a2203ec202a935c64457164772bd84ca2d2814c.zip
FreeBSD-src-2a2203ec202a935c64457164772bd84ca2d2814c.tar.gz
Create a non-elf pure binary version of the kernel as well.
Diffstat (limited to 'sys/conf/ldscript.arm')
-rw-r--r--sys/conf/ldscript.arm29
1 files changed, 15 insertions, 14 deletions
diff --git a/sys/conf/ldscript.arm b/sys/conf/ldscript.arm
index d43e730..3ccf916 100644
--- a/sys/conf/ldscript.arm
+++ b/sys/conf/ldscript.arm
@@ -8,7 +8,20 @@ SECTIONS
{
/* Read-only sections, merged into text segment: */
. = KERNVIRTADDR + SIZEOF_HEADERS;
- .interp : { *(.interp) }
+ .text :
+ {
+ *(.text)
+ *(.stub)
+ /* .gnu.warning sections are handled specially by elf32.em. */
+ *(.gnu.warning)
+ *(.gnu.linkonce.t*)
+ } =0x9090
+ _etext = .;
+ PROVIDE (etext = .);
+ .fini : { *(.fini) } =0x9090
+ .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
+ .rodata1 : { *(.rodata1) }
+ .interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
@@ -43,19 +56,7 @@ SECTIONS
.rela.plt : { *(.rela.plt) }
.init : { *(.init) } =0x9090
.plt : { *(.plt) }
- .text :
- {
- *(.text)
- *(.stub)
- /* .gnu.warning sections are handled specially by elf32.em. */
- *(.gnu.warning)
- *(.gnu.linkonce.t*)
- } =0x9090
- _etext = .;
- PROVIDE (etext = .);
- .fini : { *(.fini) } =0x9090
- .rodata : { *(.rodata) *(.gnu.linkonce.r*) }
- .rodata1 : { *(.rodata1) }
+
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(0x1000) + (. & (0x1000 - 1)) ;
OpenPOWER on IntegriCloud