Initial revision
[binutils.git] / ld / scripttempl / h8500c.sc
blob03880e3f06880deec6dd6e48b9e75dcd819098cd
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
5 /* Compact model - code < 64k, data > 64k */
7 SECTIONS                                
8 {                                       
9 .text 0x10000 :
10         {                                       
11           *(.text)                              
12           *(.strings)
13          ${RELOCATING+ _etext = . ; }
14         } ${RELOCATING+ > ram}
17 .data 0x20000 :
18         {
19         *(.data)
20         ${RELOCATING+ _edata = . ; }
21         } ${RELOCATING+ > ram}
23 .rdata 0x30000  : {
24         *(.rdata); 
25         ___ctors = . ;
26         *(.ctors)
27         ___ctors_end = . ;
28         ___dtors = . ;
29         *(.dtors)
30         ___dtors_end = . ;
31 }  ${RELOCATING+ > ram}
33 .bss  0x40000 :
34         {
35         ${RELOCATING+ __start_bss = . ; }
36         *(.bss)
37         *(COMMON)
38         ${RELOCATING+ _end = . ;  }
39         } ${RELOCATING+ >ram}
40 .stack 0x5fff0 :
41         {
42         ${RELOCATING+ _stack = . ; }
43         *(.stack)
44         } ${RELOCATING+ > topram}
46   .stab  0 ${RELOCATING+(NOLOAD)} : 
47   {
48     [ .stab ]
49   }
50   .stabstr  0 ${RELOCATING+(NOLOAD)} :
51   {
52     [ .stabstr ]
53   }
55 EOF