summaryrefslogtreecommitdiff
path: root/2ndbootloader.lds
diff options
context:
space:
mode:
Diffstat (limited to '2ndbootloader.lds')
-rw-r--r--2ndbootloader.lds37
1 files changed, 37 insertions, 0 deletions
diff --git a/2ndbootloader.lds b/2ndbootloader.lds
new file mode 100644
index 0000000..547692d
--- /dev/null
+++ b/2ndbootloader.lds
@@ -0,0 +1,37 @@
+OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
+OUTPUT_ARCH(i386)
+ENTRY(_start)
+SECTIONS
+{
+ . = 0x10F00000; /* bootstub entry in DRAM */
+ .text.head : {
+ _head = . ;
+ *(.text.head)
+ _ehead = . ;
+ }
+ .text : {
+ _text = .; /* Text */
+ *(.text)
+ *(.text.*)
+ _etext = . ;
+ }
+ .rodata : {
+ _rodata = . ;
+ *(.rodata) /* read-only data */
+ *(.rodata.*)
+ _erodata = . ;
+ }
+ .data : {
+ _data = . ;
+ *(.data)
+ *(.data.*)
+ _edata = . ;
+ }
+ .bss : {
+ _bss = . ;
+ *(.bss)
+ *(.bss.*)
+ *(COMMON)
+ _end = . ;
+ }
+}