]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/scripttempl/h8500.sc
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / ld / scripttempl / h8500.sc
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
4
5 MEMORY {
6 rom : o = 0x0000, l = 0x7fe0
7 duart : o = 0x7fe0, l = 16
8 ram : o = 0x8000, l = 28k
9 topram : o = 0x8000+28k, l = 1k
10 hmsram : o = 0xfb80, l = 512
11 }
12
13 SECTIONS
14 {
15 .text :
16 {
17 *(.text)
18 *(.strings)
19 ${RELOCATING+ _etext = . ; }
20 } ${RELOCATING+ > ram}
21 .data :
22 {
23 *(.data)
24 ${RELOCATING+ _edata = . ; }
25 } ${RELOCATING+ > ram}
26 .bss :
27 {
28 ${RELOCATING+ _bss_start = . ;}
29 *(.bss)
30 *(COMMON)
31 ${RELOCATING+ _end = . ; }
32 } ${RELOCATING+ >ram}
33 .stack :
34 {
35 ${RELOCATING+ _stack = . ; }
36 *(.stack)
37 } ${RELOCATING+ > topram}
38 }
39 EOF
40
41
42
43