]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/scripttempl/h8500m.sc
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / ld / scripttempl / h8500m.sc
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
4
5 /* Code and data, both larger than 64k */
6
7 SECTIONS
8 {
9 .text ${RELOCATING+ 0x10000} :
10 {
11 *(.text)
12 ${RELOCATING+ _etext = . ; }
13 }
14
15
16 .data ${RELOCATING+ 0x20000} :
17 {
18 *(.data)
19 ${RELOCATING+ _edata = . ; }
20 }
21
22 .rdata ${RELOCATING+ . } :
23 {
24 *(.rdata);
25 *(.strings)
26 ___ctors = . ;
27 *(.ctors)
28 ___ctors_end = . ;
29 ___dtors = . ;
30 *(.dtors)
31 ___dtors_end = . ;
32 }
33
34 .bss ${RELOCATING+ . } :
35 {
36 ${RELOCATING+ __start_bss = . ; }
37 *(.bss)
38 *(COMMON)
39 ${RELOCATING+ _end = . ; }
40 }
41
42 .stack ${RELOCATING+ 0x2fff0} :
43 {
44 ${RELOCATING+ _stack = . ; }
45 *(.stack)
46 }
47
48 .stab . (NOLOAD) :
49 {
50 [ .stab ]
51 }
52 .stabstr . (NOLOAD) :
53 {
54 [ .stabstr ]
55 }
56 }
57 EOF
58
59
60
61