]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/scripttempl/sh.sc
This commit was generated by cvs2svn to track changes on a CVS vendor
[thirdparty/binutils-gdb.git] / ld / scripttempl / sh.sc
1 TORS=".tors :
2 {
3 ___ctors = . ;
4 *(.ctors)
5 ___ctors_end = . ;
6 ___dtors = . ;
7 *(.dtors)
8 ___dtors_end = . ;
9 } > ram"
10
11 cat <<EOF
12 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
13 OUTPUT_ARCH(${ARCH})
14
15 MEMORY
16 {
17 ram : o = 0x1000, l = 512k
18 }
19
20 SECTIONS
21 {
22 .text :
23 {
24 *(.text)
25 *(.strings)
26 ${RELOCATING+ _etext = . ; }
27 } ${RELOCATING+ > ram}
28 ${CONSTRUCTING+${TORS}}
29 .data :
30 {
31 *(.data)
32 ${RELOCATING+ _edata = . ; }
33 } ${RELOCATING+ > ram}
34 .bss :
35 {
36 ${RELOCATING+ _bss_start = . ; }
37 *(.bss)
38 *(COMMON)
39 ${RELOCATING+ _end = . ; }
40 } ${RELOCATING+ > ram}
41 .stack ${RELOCATING+ 0x30000 } :
42 {
43 ${RELOCATING+ _stack = . ; }
44 *(.stack)
45 } ${RELOCATING+ > ram}
46 .stab 0 ${RELOCATING+(NOLOAD)} :
47 {
48 *(.stab)
49 }
50 .stabstr 0 ${RELOCATING+(NOLOAD)} :
51 {
52 *(.stabstr)
53 }
54 }
55 EOF
56
57
58
59