OSDN Git Service

linker script rename -> .lds
[hos/hos-v4a.git] / sample / arm / lpc2000 / gcc / link.lds
diff --git a/sample/arm/lpc2000/gcc/link.lds b/sample/arm/lpc2000/gcc/link.lds
new file mode 100755 (executable)
index 0000000..24f4b63
--- /dev/null
@@ -0,0 +1,54 @@
+OUTPUT_ARCH(arm)
+ENTRY(_reset_handler)
+
+MEMORY
+{
+       vector : o = 0x00000000, l = 0x00000040
+       rom    : o = 0x00000040, l = 0x0000ffc0
+       ram    : o = 0x40000000, l = 0x00004000
+}
+
+SECTIONS
+{
+       .vector :
+       {
+               ___vector = . ; 
+               */vectors.o(.text)
+               FILL(0xff)
+               ___vector_end = . ; 
+       } > vector
+       .text :
+       {
+                ___text = . ; 
+               *(.text)
+               *(.strings)
+               *(.rodata*)
+               *(.glue*)
+                ___text_end = . ; 
+       }  > rom
+       .tors :
+       {
+               . = ALIGN(4);
+               ___ctors = . ;
+               *(.ctors)
+               ___ctors_end = . ;
+               ___dtors = . ;
+               *(.dtors)
+               ___dtors_end = . ;
+       } > rom
+       data : AT (ADDR(.tors) + SIZEOF(.tors))
+       {
+           ___data_rom = ADDR(.tors) + SIZEOF(.tors);
+               ___data = . ;
+               *(.data)
+               ___data_end = . ;
+       } > ram
+       .bss :
+       {
+               ___bss = . ;
+               *(.bss)
+               *(COMMON)
+               ___bss_end = . ;  
+       }  >ram
+}
+