OSDN Git Service

add microblaze sample
[hos/hos-v4a.git] / aplfw / sample / mb / mb_v8_axi / gcc / link.lds
diff --git a/aplfw/sample/mb/mb_v8_axi/gcc/link.lds b/aplfw/sample/mb/mb_v8_axi/gcc/link.lds
new file mode 100644 (file)
index 0000000..1351bc3
--- /dev/null
@@ -0,0 +1,53 @@
+ENTRY(_reset_handler)
+
+MEMORY
+{
+       vector : o = 0x00000000, l = 0x00000050
+       ro     : o = 0x00000100, l = 0x000fff00
+       rw     : o = 0x00100000, l = 0x00100000
+}
+
+SECTIONS
+{
+       .vector :
+       {
+               ___vector = . ; 
+               */vectors.o(.text)
+               FILL(0xff)
+               ___vector_end = . ; 
+       } > vector
+       .text :
+       {
+                ___text = . ; 
+               *(.text)
+               *(.strings)
+               *(.rodata*)
+               *(.glue*)
+                ___text_end = . ; 
+       } > ro
+       .tors :
+       {
+               . = ALIGN(4);
+               ___ctors = . ;
+               *(.ctors)
+               ___ctors_end = . ;
+               ___dtors = . ;
+               *(.dtors)
+               ___dtors_end = . ;
+       } > ro
+       data : AT (ADDR(.tors) + SIZEOF(.tors))
+       {
+           ___data_ro = ADDR(.tors) + SIZEOF(.tors);
+               ___data = . ;
+               *(.data)
+               ___data_end = . ;
+       } > rw
+       .bss :
+       {
+               ___bss = . ;
+               *(.bss)
+               *(COMMON)
+               ___bss_end = . ;  
+       }  >rw
+}
+