]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Added ram linker script for mirosot board.
authorPetr Kovacik <kovacp1@feld.cvut.cz>
Mon, 10 Oct 2005 10:02:00 +0000 (10:02 +0000)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 16 Nov 2010 15:54:49 +0000 (16:54 +0100)
darcs-hash:20051010100222-cb64f-17ef1f0d60ac1632ddbea4076f50a9fd7b50834c.gz

board/h8300/h8mirosot/libs/h8canusb.ld-ram [new file with mode: 0644]

diff --git a/board/h8300/h8mirosot/libs/h8canusb.ld-ram b/board/h8300/h8mirosot/libs/h8canusb.ld-ram
new file mode 100644 (file)
index 0000000..28e65bc
--- /dev/null
@@ -0,0 +1,88 @@
+/* linker script for applications running from RAM */
+
+INCLUDE "h8canusb.ld-cfg"
+
+/* SEARCH_DIR(/HDA8/root/h8300/id_cpu1/test1/../lib); */
+
+/* PROVIDE ( sym = val ); */
+
+PROVIDE( ___stack_top = ( __iram0_end & ~ 3 ) - 4 );
+PROVIDE( ___heap_end = __ram_end );
+
+STARTUP(crt0.o)
+
+SECTIONS
+{
+       .text :
+       {
+         . = ALIGN( 4 ) ;
+         text_start = . ;
+         LONG( ABSOLUTE( _start ) + 0x5a000000 ) /* JMP _start */
+/*       KEEP (crt0.o(.text)) */
+         . = ALIGN( 4 ) ;
+         ___boot_fn_start = ALIGN( 0x4 ) ;
+          KEEP (*boot_fn.o(.text))
+         KEEP (*boot_fn.o(.rodata))
+         . = ALIGN( 4 ) ;
+         ___boot_fn_end = ALIGN( 0x4 ) ;
+         *(.text)
+         *(.rodata)    
+         . = ALIGN( 4 ) ;
+         ___nls_str_start = ALIGN( 0x4 ) ;
+         *(.nls_str)                           
+         ___nls_str_end = ALIGN( 0x4 ) ;
+         *(.strings)
+         . = ALIGN( 0x4 ) ;
+         _etext = ALIGN( 0x4 ) ;
+       } > ram
+
+       .tors : 
+       {
+         ___ctors = . ;
+         *(.ctors)
+         ___ctors_end = . ;
+         ___dtors = . ;
+         *(.dtors)
+         ___dtors_end = . ;
+         . = ALIGN( 0x4 ) ;
+       }  > ram
+
+       .data :
+       {
+         ___data_lma = . ;
+         _data_start = . ;
+         *(.data)
+         . = ALIGN( 0x4 ) ;
+         _edata = ALIGN( 0x4 ) ;
+       } > ram
+
+       .bss :
+       {
+         . =  ALIGN( 0x10 ) ;
+         _bss_start = ALIGN( 0x10 ) ;
+         *(.bss)
+         *(COMMON)
+         . = ALIGN( 0x4 ) ;
+         _end = ALIGN( 0x4 ) ;
+       } > ram
+
+       .tiny : 
+       {
+         *(.tiny)
+       }  > iram0
+       
+       .eight : 
+       {
+         *(.eight)
+       }  > eight
+
+       .stab  0 (NOLOAD) : 
+       {
+         [ .stab ]
+       }
+
+       .stabstr  0 (NOLOAD) :
+       {
+         [ .stabstr ]
+       }
+}