]> Git Repo - binutils.git/blob - ld/scripttempl/rce.sc
Enable ld to build for RCE. This is not tested yet!
[binutils.git] / ld / scripttempl / rce.sc
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
4
5 MEMORY {
6         ram   : o = 0x1000, l = 512k
7         }
8
9 SECTIONS                                
10 {                                       
11 .text :
12         {                                       
13           *(.text)                              
14           *(.strings)
15          ${RELOCATING+ _etext = . ; }
16         } ${RELOCATING+ > ram}
17
18
19 .tors   : {
20         ___ctors = . ;
21         *(.ctors)
22         ___ctors_end = . ;
23         ___dtors = . ;
24         *(.dtors)
25         ___dtors_end = . ;
26 }  ${RELOCATING+ > ram}
27
28 .data  :
29         {
30         *(.data)
31         ${RELOCATING+ _edata = . ; }
32         } ${RELOCATING+ > ram}
33 .bss  :
34         {
35         ${RELOCATING+ _bss_start = . ; }
36         *(.bss)
37         *(COMMON)
38         ${RELOCATING+ _end = . ;  }
39         } ${RELOCATING+ >ram}
40 .stack ${RELOCATING+ 0x30000 }  : 
41         {
42         ${RELOCATING+ _stack = . ; }
43         *(.stack)
44         } ${RELOCATING+ > ram}
45   .stab  0 ${RELOCATING+(NOLOAD)} : 
46   {
47     [ .stab ]
48   }
49   .stabstr  0 ${RELOCATING+(NOLOAD)} :
50   {
51     [ .stabstr ]
52   }
53 }
54 EOF
This page took 0.028 seconds and 4 git commands to generate.