summaryrefslogtreecommitdiffstats
path: root/utils/apeconsole/apeloader/ape.ld
diff options
context:
space:
mode:
Diffstat (limited to 'utils/apeconsole/apeloader/ape.ld')
-rw-r--r--utils/apeconsole/apeloader/ape.ld46
1 files changed, 46 insertions, 0 deletions
diff --git a/utils/apeconsole/apeloader/ape.ld b/utils/apeconsole/apeloader/ape.ld
new file mode 100644
index 0000000..3b26fae
--- /dev/null
+++ b/utils/apeconsole/apeloader/ape.ld
@@ -0,0 +1,46 @@
+OUTPUT_FORMAT(binary)
+ENTRY(__start)
+
+SECTIONS
+{
+ .text 0x00100000 : ALIGN(4) SUBALIGN(4)
+ {
+ KEEP(*(.init))
+ *(.text)
+ }
+
+
+ .data . : ALIGN(4) SUBALIGN(4)
+ {
+ *(.data*)
+ *(.rodata*)
+ }
+
+ _fbss = .;
+ .bss . : ALIGN(4) SUBALIGN(4)
+ {
+ *(.bss*)
+ }
+ _ebss = .;
+
+
+ .stack . (NOLOAD) : ALIGN(4) SUBALIGN(4)
+ {
+ _fstack = .;
+ _estack = 00118000;
+ }
+
+
+ /DISCARD/ :
+ {
+ *(.comment)
+ *(.note.GNU-stack)
+ *(.eh_frame)
+ *(.got)
+ *(.ARM.exidx*)
+ *(.reginfo)
+ *(.mdebug.abi32)
+ *(.pdr)
+ }
+}
+
OpenPOWER on IntegriCloud