Add support for DragonFlyBSD target.
[binutils.git] / ld / scripttempl / h8500b.sc
blobfb6c0e86b6a3573450d88834ad84de4378dbb67d
1 TORS="
2     ___ctors = . ;
3     *(.ctors)
4     ___ctors_end = . ;
5     ___dtors = . ;
6     *(.dtors)
7     ___dtors_end = . ;"
9 cat <<EOF
10 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
11 OUTPUT_ARCH(${ARCH})
13 /* Code and data, both larger than 64k */
15 SECTIONS
17 .text ${RELOCATING+ 0x10000} :
18         {
19           *(.text)
20           ${RELOCATING+ _etext = . ; }
21         }
23 .data  ${RELOCATING+ 0x20000} :
24         {
25           *(.data)
26           ${RELOCATING+ _edata = . ; }
27         }
29 .rdata  ${RELOCATING+ 0x30000} :
30         {
31           *(.rdata);
32           *(.strings)
34           ${CONSTRUCTING+${TORS}}
35         }
37 .bss  ${RELOCATING+ 0x40000} :
38         {
39           ${RELOCATING+ __start_bss = . ; }
40           *(.bss)
41           *(COMMON)
42           ${RELOCATING+ _end = . ;  }
43         }
45 .stack  ${RELOCATING+ 0x50000} :
46         {
47           ${RELOCATING+ _stack = . ; }
48           *(.stack)
49         }
51 .stab  0 ${RELOCATING+(NOLOAD)} :
52         {
53           [ .stab ]
54         }
56 .stabstr  0 ${RELOCATING+(NOLOAD)} :
57         {
58           [ .stabstr ]
59         }
61 EOF