Initial revision
[binutils.git] / ld / scripttempl / h8500.sc
blobd6a39eec38ce34a997ae440968fa1b51bfaa5fc0
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
5 /* Code and data 64k total */
7 SECTIONS                                
8 {                                       
9 .text ${RELOCATING+ 0x0000 } :
10         {                                       
11           *(.text)                              
13          ${RELOCATING+ _etext = . ; }
14         }
17 .data  ${RELOCATING+ . } :
18         {
19         *(.data)
20         ${RELOCATING+ _edata = . ; }
21         } 
23 .rdata  ${RELOCATING+ . } :
24         {
25         *(.rdata); 
26           *(.strings)
27         ___ctors = . ;
28         *(.ctors)
29         ___ctors_end = . ;
30         ___dtors = . ;
31         *(.dtors)
32         ___dtors_end = . ;
33
35 .bss  ${RELOCATING+ . } :
36         {
37         ${RELOCATING+ __start_bss = . ; }
38         *(.bss)
39         *(COMMON)
40         ${RELOCATING+ _end = . ;  }
41         }
43 .stack  ${RELOCATING+ 0xfff0} :
44         {
45         ${RELOCATING+ _stack = . ; }
46         *(.stack)
47         } 
49   .stab  0 ${RELOCATING+(NOLOAD)} : 
50   {
51     [ .stab ]
52   }
53   .stabstr  0 ${RELOCATING+(NOLOAD)} :
54   {
55     [ .stabstr ]
56   }
58 EOF