summaryrefslogtreecommitdiff
path: root/Source/Library/Link.ld
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-18 16:27:29 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-18 16:27:29 +0100
commit437e65ecbdedd07105254b1b5e6a41d191a794a3 (patch)
tree5c48afbd76c5cfc4c1297fc18acb0bc71cd502b3 /Source/Library/Link.ld
parent260347c06637f15ea93c6ad99bce4420a28bae6b (diff)
downloadMelon-437e65ecbdedd07105254b1b5e6a41d191a794a3.tar.gz
Melon-437e65ecbdedd07105254b1b5e6a41d191a794a3.zip
Revert "[nonworking commit] Started porting newlib"
This reverts commit d04645198d648a17ccb83e70aa5e6d60a06121aa.
Diffstat (limited to 'Source/Library/Link.ld')
-rw-r--r--Source/Library/Link.ld33
1 files changed, 33 insertions, 0 deletions
diff --git a/Source/Library/Link.ld b/Source/Library/Link.ld
new file mode 100644
index 0000000..68591fd
--- /dev/null
+++ b/Source/Library/Link.ld
@@ -0,0 +1,33 @@
+ENTRY (start)
+INPUT (Melon.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 = .;
+}