svn commit: r199693 - projects/mips/sys/conf
Warner Losh
imp at FreeBSD.org
Mon Nov 23 07:11:11 UTC 2009
Author: imp
Date: Mon Nov 23 07:11:10 2009
New Revision: 199693
URL: http://svn.freebsd.org/changeset/base/199693
Log:
Linker scripts for octeon1 kernels of various flavors.
Added:
projects/mips/sys/conf/ldscript.mips.octeon1.kernel.32
projects/mips/sys/conf/ldscript.mips.octeon1.kernel.64
projects/mips/sys/conf/ldscript.mips.octeon1.kernel.n32
Added: projects/mips/sys/conf/ldscript.mips.octeon1.kernel.32
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/mips/sys/conf/ldscript.mips.octeon1.kernel.32 Mon Nov 23 07:11:10 2009 (r199693)
@@ -0,0 +1,60 @@
+/*
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors."
+*/
+OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
+OUTPUT_ARCH(mips)
+ENTRY(_start)
+ __DYNAMIC = 0;
+PROVIDE (_DYNAMIC = 0);
+
+SECTIONS {
+
+ .text . : {
+ *(.text)
+ *(.dynamic)
+ etext = .;
+ _etext = .;
+ . = ALIGN(0x2000);
+ }
+
+ .rodata ALIGN(0x2000) : {
+ _fdata = .;
+ *(.rodata)
+ . = ALIGN(32);
+ }
+
+ .data . : {
+ _rwdata = .;
+ *(.data)
+ . = ALIGN(32);
+ CONSTRUCTORS;
+ }
+
+ _gp = (. + 0x8000);
+
+ .sdata . : {
+ _small_start = .;
+ *(.sdata)
+ . = ALIGN(32);
+ edata = .;
+ _edata = .;
+ }
+
+ .sbss . : {
+ __bss_start = .;
+ _fbss = .;
+ *(.sbss) *(.scommon)
+ _small_end = .;
+ . = ALIGN(32);
+ }
+
+ .bss . : {
+ *(.bss)
+ *(COMMON)
+ . = ALIGN(32);
+ _end = .;
+ end = .;
+ }
+
+}
Added: projects/mips/sys/conf/ldscript.mips.octeon1.kernel.64
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/mips/sys/conf/ldscript.mips.octeon1.kernel.64 Mon Nov 23 07:11:10 2009 (r199693)
@@ -0,0 +1,61 @@
+TARGET(elf64-tradbigmips)
+OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips")
+OUTPUT_ARCH(mips)
+ENTRY(_start)
+/* __DYNAMIC = 0;
+PROVIDE (_DYNAMIC = 0);
+*/
+PHDRS {
+ text PT_LOAD FLAGS ( 5 ) ;
+}
+
+SECTIONS {
+
+ .text _start : {
+ *(.text)
+ /*(.dynamic)*/
+ etext = .;
+ _etext = .;
+ . = ALIGN(0x2000);
+ } : text
+
+ .rodata ALIGN(0x2000) : {
+ _fdata = .;
+ *(.rodata)
+ . = ALIGN(32);
+ }
+
+ .data . : {
+ _rwdata = .;
+ *(.data)
+ . = ALIGN(32);
+ CONSTRUCTORS;
+ }
+
+ _gp = (. + 0x8000);
+
+ .sdata . : {
+ _small_start = .;
+ *(.sdata)
+ . = ALIGN(32);
+ edata = .;
+ _edata = .;
+ }
+
+ .sbss . : {
+ __bss_start = .;
+ _fbss = .;
+ *(.sbss) *(.scommon)
+ _small_end = .;
+ . = ALIGN(32);
+ }
+
+ .bss . : {
+ *(.bss)
+ *(COMMON)
+ . = ALIGN(32);
+ _end = .;
+ end = .;
+ }
+
+}
Added: projects/mips/sys/conf/ldscript.mips.octeon1.kernel.n32
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/mips/sys/conf/ldscript.mips.octeon1.kernel.n32 Mon Nov 23 07:11:10 2009 (r199693)
@@ -0,0 +1,57 @@
+TARGET(elf32-ntradbigmips)
+OUTPUT_FORMAT("elf32-ntradbigmips", "elf32-ntradbigmips", "elf32-ntradlittlemips")
+OUTPUT_ARCH(mips)
+ENTRY(_start)
+ __DYNAMIC = 0;
+PROVIDE (_DYNAMIC = 0);
+
+SECTIONS {
+
+ .text . : {
+ *(.text)
+ *(.dynamic)
+ etext = .;
+ _etext = .;
+ . = ALIGN(0x2000);
+ }
+
+ .rodata ALIGN(0x2000) : {
+ _fdata = .;
+ *(.rodata)
+ . = ALIGN(32);
+ }
+
+ .data . : {
+ _rwdata = .;
+ *(.data)
+ . = ALIGN(32);
+ CONSTRUCTORS;
+ }
+
+ _gp = (. + 0x8000);
+
+ .sdata . : {
+ _small_start = .;
+ *(.sdata)
+ . = ALIGN(32);
+ edata = .;
+ _edata = .;
+ }
+
+ .sbss . : {
+ __bss_start = .;
+ _fbss = .;
+ *(.sbss) *(.scommon)
+ _small_end = .;
+ . = ALIGN(32);
+ }
+
+ .bss . : {
+ *(.bss)
+ *(COMMON)
+ . = ALIGN(32);
+ _end = .;
+ end = .;
+ }
+
+}
More information about the svn-src-projects
mailing list