* symbols.c (resolve_symbol_value): Don't permit subtraction of
[binutils.git] / ld / scripttempl / z8000.sc
blob2b87930100e5fa5ce530cf1300b834e28005981e
1 cat <<EOF
2 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
3 OUTPUT_ARCH("${OUTPUT_ARCH}")
4 ENTRY(_start)
6 SECTIONS                                
7 {                                       
8 .text ${BIG+ ${RELOCATING+ 0x0000000}} : {                                      
9           *(.text)                              
10           *(.strings)
11           *(.rdata)
12         }
14 .ctors ${BIG+ ${RELOCATING+ 0x2000000}}  : 
15         {
16           ${RELOCATING+ ___ctors = . ;  }
17           *(.ctors);
18           ${RELOCATING+ ___ctors_end = . ; }
19           ___dtors = . ;
20           *(.dtors);
21           ${RELOCATING+ ___dtors_end = . ; }
22         } 
24 .data ${BIG+ ${RELOCATING+ 0x3000000}} : {
25         *(.data)
26         }
28 .bss ${BIG+ ${RELOCATING+ 0x4000000}} : 
29   {
30     ${RELOCATING+ __start_bss = . ; }
31     *(.bss);
32     *(COMMON);
33     ${RELOCATING+ __end_bss = . ; }
34   }
36 .heap ${BIG+ ${RELOCATING+ 0x5000000}} : {
37         ${RELOCATING+ __start_heap = . ; }
38         ${RELOCATING+ . = . + 20k  ; }
39         ${RELOCATING+ __end_heap = . ; }
40         } 
42 .stack ${RELOCATING+ 0xf000 }  : 
43         {
44         ${RELOCATING+ _stack = . ; }
45         *(.stack)
46         ${RELOCATING+ __stack_top = . ; }
47         } 
50 EOF