Configury changes: update src repository (binutils, gdb, and rda) to use
[deliverable/binutils-gdb.git] / ld / scripttempl / h8500c.sc
CommitLineData
40a633d5
NC
1TORS="
2 ___ctors = . ;
3 *(.ctors)
4 ___ctors_end = . ;
5 ___dtors = . ;
6 *(.dtors)
7 ___dtors_end = . ;"
8
252b5132
RH
9cat <<EOF
10OUTPUT_FORMAT("${OUTPUT_FORMAT}")
11OUTPUT_ARCH(${ARCH})
12
13/* Compact model - code < 64k, data > 64k */
14
69f06969
KH
15SECTIONS
16{
252b5132 17.text 0x10000 :
69f06969
KH
18 {
19 *(.text)
252b5132 20 *(.strings)
69f06969 21 ${RELOCATING+ _etext = . ; }
252b5132
RH
22 } ${RELOCATING+ > ram}
23
252b5132
RH
24.data 0x20000 :
25 {
69f06969
KH
26 *(.data)
27 ${RELOCATING+ _edata = . ; }
252b5132
RH
28 } ${RELOCATING+ > ram}
29
40a633d5 30.rdata 0x30000 :
69f06969
KH
31 {
32 *(.rdata);
33
34 ${CONSTRUCTING+${TORS}}
40a633d5 35 } ${RELOCATING+ > ram}
252b5132
RH
36
37.bss 0x40000 :
38 {
69f06969
KH
39 ${RELOCATING+ __start_bss = . ; }
40 *(.bss)
41 *(COMMON)
42 ${RELOCATING+ _end = . ; }
252b5132 43 } ${RELOCATING+ >ram}
69f06969 44
252b5132
RH
45.stack 0x5fff0 :
46 {
69f06969
KH
47 ${RELOCATING+ _stack = . ; }
48 *(.stack)
252b5132
RH
49 } ${RELOCATING+ > topram}
50
69f06969
KH
51.stab 0 ${RELOCATING+(NOLOAD)} :
52 {
53 [ .stab ]
54 }
55
56.stabstr 0 ${RELOCATING+(NOLOAD)} :
57 {
58 [ .stabstr ]
59 }
252b5132
RH
60}
61EOF
This page took 0.275016 seconds and 4 git commands to generate.