]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/scripttempl/z8000.sc
* config/tc-i386.c (i386_target_format): Avoid duplicate case label.
[thirdparty/binutils-gdb.git] / ld / scripttempl / z8000.sc
CommitLineData
252b5132
RH
1cat <<EOF
2OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3OUTPUT_ARCH("${OUTPUT_ARCH}")
4ENTRY(_start)
5
6SECTIONS
7{
40a633d5
NC
8.text ${BIG+ ${RELOCATING+ 0x0000000}} :
9 {
252b5132
RH
10 *(.text)
11 *(.strings)
12 *(.rdata)
13 }
14
15.ctors ${BIG+ ${RELOCATING+ 0x2000000}} :
16 {
40a633d5 17 ${CONSTRUCTING+ ___ctors = . ; }
252b5132 18 *(.ctors);
40a633d5 19 ${CONSTRUCTING+ ___ctors_end = . ; }
252b5132
RH
20 ___dtors = . ;
21 *(.dtors);
40a633d5 22 ${CONSTRUCTING+ ___dtors_end = . ; }
252b5132
RH
23 }
24
40a633d5
NC
25.data ${BIG+ ${RELOCATING+ 0x3000000}} :
26 {
27 *(.data)
252b5132
RH
28 }
29
30.bss ${BIG+ ${RELOCATING+ 0x4000000}} :
40a633d5
NC
31 {
32 ${RELOCATING+ __start_bss = . ; }
33 *(.bss);
34 *(COMMON);
35 ${RELOCATING+ __end_bss = . ; }
36 }
37
38.heap ${BIG+ ${RELOCATING+ 0x5000000}} :
39 {
40 ${RELOCATING+ __start_heap = . ; }
41 ${RELOCATING+ . = . + 20k ; }
42 ${RELOCATING+ __end_heap = . ; }
252b5132
RH
43 }
44
45.stack ${RELOCATING+ 0xf000 } :
46 {
40a633d5
NC
47 ${RELOCATING+ _stack = . ; }
48 *(.stack)
49 ${RELOCATING+ __stack_top = . ; }
50 }
252b5132
RH
51
52}
53EOF
54
55
56
57