summaryrefslogtreecommitdiffstats
path: root/sys/conf/ldscript.mips
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2010-01-23 05:59:10 +0000
committergonzo <gonzo@FreeBSD.org>2010-01-23 05:59:10 +0000
commit3cd8a0a775f87b85e6f3cdba08178a4e80585966 (patch)
treefa8cef03e28a7f5f0bcfbfcb5bfb7085ec08a3da /sys/conf/ldscript.mips
parentbd8fb9e267b92921fd7d5fbe27514ec3c1957171 (diff)
downloadFreeBSD-src-3cd8a0a775f87b85e6f3cdba08178a4e80585966.zip
FreeBSD-src-3cd8a0a775f87b85e6f3cdba08178a4e80585966.tar.gz
- Move .text and all sections up to .bss inclusive to the beginning of
the script. Trampoline kernel builder assumes that .text goes right after headers and places startup function first in .text segment.
Diffstat (limited to 'sys/conf/ldscript.mips')
-rw-r--r--sys/conf/ldscript.mips38
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/conf/ldscript.mips b/sys/conf/ldscript.mips
index 3e55dba..0736fd1 100644
--- a/sys/conf/ldscript.mips
+++ b/sys/conf/ldscript.mips
@@ -44,6 +44,25 @@ SECTIONS
{
/* Read-only sections, merged into text segment: */
. = KERNLOADADDR + SIZEOF_HEADERS;
+ .text :
+ {
+ *(.trap)
+ *(.text)
+ *(.text.*)
+ *(.stub)
+ /* .gnu.warning sections are handled specially by elf32.em. */
+ *(.gnu.warning)
+ *(.gnu.linkonce.t.*)
+ } =0x1000000
+ .fini :
+ {
+ KEEP (*(.fini))
+ } =0x1000000
+ PROVIDE (__etext = .);
+ PROVIDE (_etext = .);
+ PROVIDE (etext = .);
+ .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
+ .rodata1 : { *(.rodata1) }
.interp : { *(.interp) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
@@ -163,25 +182,6 @@ SECTIONS
{
KEEP (*(.init))
} =0x1000000
- .text :
- {
- *(.trap)
- *(.text)
- *(.text.*)
- *(.stub)
- /* .gnu.warning sections are handled specially by elf32.em. */
- *(.gnu.warning)
- *(.gnu.linkonce.t.*)
- } =0x1000000
- .fini :
- {
- KEEP (*(.fini))
- } =0x1000000
- PROVIDE (__etext = .);
- PROVIDE (_etext = .);
- PROVIDE (etext = .);
- .rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
- .rodata1 : { *(.rodata1) }
.reginfo : { *(.reginfo) }
.sdata2 : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }
.sbss2 : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }
OpenPOWER on IntegriCloud