added initial linker script and tartup asm code
[my-code/arm.git] / betty / lpc2220_ram.ld
diff --git a/betty/lpc2220_ram.ld b/betty/lpc2220_ram.ld
new file mode 100644 (file)
index 0000000..c6fd14d
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * lpc2220_ram.ld - linker script for the lpc2220 device (->ram)
+ *
+ * author: hackbard@hackdaworld.org
+ *
+ */
+
+SECTIONS {
+       . = 0x40000200;
+       .text . : {
+               startup.o(.text)        /* startup code */
+               *(.text)                /* all remaining code */
+               *(.glue_7)              /* glue code */
+               *(.glue_7t)             /* glue code */
+       }
+
+       . = ALIGN(4);
+
+       .rodata : { *(.rodata) }        /* read only data */
+
+       . = ALIGN(4);
+
+       .data : { *(.data) }            /* initialized data */
+
+       . = ALIGN(4);
+
+       .bss : { *(.bss) }              /* uninitialized data */
+}
+