OSDN Git Service

add I2C command
[hos/hos-v4a.git] / sample / h8 / h83069 / gcc / link_rom.lds
1 OUTPUT_ARCH(h8300h)
2 ENTRY("__reset_handler")
3
4 MEMORY
5 {
6         vector : o = 0x000000, l = 0x0100
7         rom    : o = 0x000100, l = 0x7f00
8         ram    : o = 0xffbf20, l = 0x4000
9 }
10
11 SECTIONS
12 {
13         .vector :
14         {
15                 ___vector = . ; 
16                 */vector.o(.text)
17                 FILL(0xff)
18                 ___vector_end = . ; 
19         } > vector
20         .text :
21         {
22                  ___text = . ; 
23                 *(.text)
24                 *(.strings)
25                 *(.rodata*)
26                  ___text_end = . ; 
27         }  > rom
28         .tors :
29         {
30                 . = ALIGN(2);
31                 ___ctors = . ;
32                 *(.ctors)
33                 ___ctors_end = . ;
34                 ___dtors = . ;
35                 *(.dtors)
36                 ___dtors_end = . ;
37         } > rom
38         data : AT (ADDR(.tors) + SIZEOF(.tors))
39         {
40             ___data_rom = ADDR(.tors) + SIZEOF(.tors);
41                 ___data = . ;
42                 *(.data)
43                 ___data_end = . ;
44         } > ram
45         .bss :
46         {
47                 ___bss = . ;
48                 *(.bss)
49                 *(COMMON)
50                 ___bss_end = . ; 
51         }  >ram
52 }
53