Initial revision
[binutils.git] / ld / scripttempl / h8500s.sc
blob11615d8afe918de05e2353abc8ad9c06a6af66b3
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
5 /* Code and data, both 64k */
7 SECTIONS                                
8 {                                       
9 .text ${RELOCATING+ 0x10000 } :
10         {                                       
11         *(.text)                                
12         ${RELOCATING+ _etext = . ; }
13         }
15 .rdata  ${RELOCATING+ 0x20000 } :
16         {
17         *(.rdata); 
18         *(.strings)
19         ___ctors = . ;
20         *(.ctors)
21         ___ctors_end = . ;
22         ___dtors = . ;
23         *(.dtors)
24         ___dtors_end = . ;
25         }
27 .data  ${RELOCATING+ . } :
28         {
29         *(.data)
30         ${RELOCATING+ _edata = . ; }
31         } 
33 .bss  ${RELOCATING+ .} :
34         {
35         ${RELOCATING+ __start_bss = . ; }
36         *(.bss)
37         *(COMMON)
38         ${RELOCATING+ _end = . ;  }
39         }
41 .stack  ${RELOCATING+ 0x2fff0} :
42         {
43         ${RELOCATING+ _stack = . ; }
44         *(.stack)
45         } 
47   .stab  0 ${RELOCATING+(NOLOAD)} : 
48   {
49     [ .stab ]
50   }
51   .stabstr  0 ${RELOCATING+(NOLOAD)} :
52   {
53     [ .stabstr ]
54   }
56 EOF