* scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
[external/binutils.git] / ld / scripttempl / h8300.sc
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH(${ARCH})
4
5 MEMORY
6 {
7         /* 0xc4 is a magic entry.  We should have the linker just
8            skip over it one day... */
9         vectors : o = 0x0000, l = 196
10         magicvectors : o = 0xc4, l = 60
11         ram    : o = 0x0100, l = 65536 - 256 - 4
12         topram : o = 0xfffc, l = 4
13 }
14
15 SECTIONS                                
16 {                                       
17 .vectors : {
18 /* Use something like this to place a specific function's address
19    into the vector table. 
20
21         SHORT(ABSOLUTE(_foobar))
22 */
23
24         *(.vectors)
25         } ${RELOCATING+ > vectors}
26
27 .text : {                                       
28         *(.text)                                
29         *(.strings)
30         ${RELOCATING+ _etext = . ; }
31         } ${RELOCATING+ > ram}
32 .tors : {
33         ___ctors = . ;
34         *(.ctors)
35         ___ctors_end = . ;
36         ___dtors = . ;
37         *(.dtors)
38         ___dtors_end = . ;
39         } ${RELOCATING+ > ram}
40 .data : {
41         *(.data)
42         ${RELOCATING+ _edata = . ; }
43         } ${RELOCATING+ > ram}
44 .bss : {
45         ${RELOCATING+ _bss_start = . ;}
46         *(.bss)
47         *(COMMON)
48         ${RELOCATING+ _end = . ;  }
49         } ${RELOCATING+ >ram}
50 .stack : {
51         ${RELOCATING+ _stack = . ; }
52         *(.stack)
53         } ${RELOCATING+ > topram}
54 .stab 0 ${RELOCATING+(NOLOAD)} : {
55         [ .stab ]
56         }
57 .stabstr 0 ${RELOCATING+(NOLOAD)} : {
58         [ .stabstr ]
59         }
60 }
61 EOF