]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/scripttempl/h8500c.sc
19990502 sourceware import
[thirdparty/binutils-gdb.git] / ld / scripttempl / h8500c.sc
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
4
5 /* Compact model - code < 64k, data > 64k */
6
7 SECTIONS
8 {
9 .text 0x10000 :
10 {
11 *(.text)
12 *(.strings)
13 ${RELOCATING+ _etext = . ; }
14 } ${RELOCATING+ > ram}
15
16
17 .data 0x20000 :
18 {
19 *(.data)
20 ${RELOCATING+ _edata = . ; }
21 } ${RELOCATING+ > ram}
22
23 .rdata 0x30000 : {
24 *(.rdata);
25 ___ctors = . ;
26 *(.ctors)
27 ___ctors_end = . ;
28 ___dtors = . ;
29 *(.dtors)
30 ___dtors_end = . ;
31 } ${RELOCATING+ > ram}
32
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}
45
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