summaryrefslogtreecommitdiff
path: root/Source/Library/App.ld
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Library/App.ld')
-rw-r--r--Source/Library/App.ld33
1 files changed, 33 insertions, 0 deletions
diff --git a/Source/Library/App.ld b/Source/Library/App.ld
new file mode 100644
index 0000000..793949a
--- /dev/null
+++ b/Source/Library/App.ld
@@ -0,0 +1,33 @@
+ENTRY (start)
+INPUT (libMelon.o)
+
+SECTIONS{
+ . = 0x10000000;
+
+ .text : {
+ *(.text)
+ }
+
+ .rodata ALIGN (0x1000) :{
+ *(.rodata)
+ }
+
+ .data ALIGN (0x1000) : {
+ start_ctors = .;
+ *(.ctor*)
+ end_ctors = .;
+ start_dtors = .;
+ *(.dtor*)
+ end_dtors = .;
+ *(.data)
+ }
+
+ .bss : {
+ sbss = .;
+ *(COMMON)
+ *(.bss)
+ ebss = .;
+ }
+
+ end = .; _end = .; __end = .;
+}