* scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
[deliverable/binutils-gdb.git] / ld / scripttempl / h8300h.sc
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(h8300h)
4
5 /* The memory size is 256KB to coincide with the simulator.
6 Don't change either without considering the other. */
7
8 MEMORY
9 {
10 /* 0xc4 is a magic entry. We should have the linker just
11 skip over it one day... */
12 vectors : o = 0x0000, l = 0xc4
13 magicvectors : o = 0xc4, l = 0x3c
14 /* We still only use 256k as the main ram size. */
15 ram : o = 0x0100, l = 0x3fefc
16 /* The stack starts at the top of main ram. */
17 topram : o = 0x3fffc, l = 0x4
18 /* At the very top of the address space is the 8-bit area. */
19 eight : o = 0xffff00, l = 0x100
20 }
21
22 SECTIONS
23 {
24 .vectors : {
25 /* Use something like this to place a specific function's address
26 into the vector table.
27
28 LONG(ABSOLUTE(_foobar)) */
29
30 *(.vectors)
31 } ${RELOCATING+ > vectors}
32 .text : {
33 *(.text)
34 *(.strings)
35 ${RELOCATING+ _etext = . ; }
36 } ${RELOCATING+ > ram}
37 .tors : {
38 ___ctors = . ;
39 *(.ctors)
40 ___ctors_end = . ;
41 ___dtors = . ;
42 *(.dtors)
43 ___dtors_end = . ;
44 } ${RELOCATING+ > ram}
45 .data : {
46 *(.data)
47 ${RELOCATING+ _edata = . ; }
48 } ${RELOCATING+ > ram}
49 .bss : {
50 ${RELOCATING+ _bss_start = . ;}
51 *(.bss)
52 *(COMMON)
53 ${RELOCATING+ _end = . ; }
54 } ${RELOCATING+ >ram}
55 .stack : {
56 ${RELOCATING+ _stack = . ; }
57 *(.stack)
58 } ${RELOCATING+ > topram}
59 .eight : {
60 *(.eight)
61 } ${RELOCATING+ > eight}
62 .stab 0 ${RELOCATING+(NOLOAD)} : {
63 [ .stab ]
64 }
65 .stabstr 0 ${RELOCATING+(NOLOAD)} : {
66 [ .stabstr ]
67 }
68 }
69 EOF
This page took 0.032758 seconds and 5 git commands to generate.