summaryrefslogtreecommitdiffstats
path: root/sys/conf/ldscript.mips.octeon1
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2011-01-20 19:09:02 +0000
committerimp <imp@FreeBSD.org>2011-01-20 19:09:02 +0000
commitf5ce255340e1daf691b1d30f31d6823b202e9567 (patch)
treeb8e0a52d8d3a7066f5e3c8e70df1345dc36eec9d /sys/conf/ldscript.mips.octeon1
parentd7200f3f19ae70c6fc623456c4e7ceda8e6f631d (diff)
downloadFreeBSD-src-f5ce255340e1daf691b1d30f31d6823b202e9567.zip
FreeBSD-src-f5ce255340e1daf691b1d30f31d6823b202e9567.tar.gz
Collapse all the octeon ldscripts down into one now that we don't need one each for all the wacky ABIs
Diffstat (limited to 'sys/conf/ldscript.mips.octeon1')
-rw-r--r--sys/conf/ldscript.mips.octeon162
1 files changed, 62 insertions, 0 deletions
diff --git a/sys/conf/ldscript.mips.octeon1 b/sys/conf/ldscript.mips.octeon1
new file mode 100644
index 0000000..07b8345
--- /dev/null
+++ b/sys/conf/ldscript.mips.octeon1
@@ -0,0 +1,62 @@
+/* $FreeBSD$ */
+
+ENTRY(_start)
+ __DYNAMIC = 0;
+PROVIDE (_DYNAMIC = 0);
+
+PHDRS {
+ text PT_LOAD FLAGS(0x7);
+}
+
+SECTIONS {
+ . = KERNLOADADDR + SIZEOF_HEADERS;
+
+ .text : {
+ *(.text)
+ *(.dynamic)
+ etext = .;
+ _etext = .;
+ . = ALIGN(0x2000);
+ } : text
+
+ . = ALIGN(0x2000);
+ .rodata : {
+ _fdata = .;
+ *(.rodata)
+ . = ALIGN(32);
+ }
+
+ .data : {
+ _rwdata = .;
+ *(.data)
+ . = ALIGN(32);
+ CONSTRUCTORS;
+ }
+
+ _gp = (. + 0x8000);
+
+ .sdata : {
+ _small_start = .;
+ *(.sdata)
+ . = ALIGN(32);
+ edata = .;
+ _edata = .;
+ } : text
+
+ .sbss : {
+ __bss_start = .;
+ _fbss = .;
+ *(.sbss) *(.scommon)
+ _small_end = .;
+ . = ALIGN(32);
+ }
+
+ .bss : {
+ *(.bss)
+ *(COMMON)
+ . = ALIGN(32);
+ _end = .;
+ end = .;
+ }
+
+}
OpenPOWER on IntegriCloud