source: trunk/binutils/ld/scripttempl/h8500s.sc@ 2593

Last change on this file since 2593 was 10, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 814 bytes
Line 
1TORS="
2 ___ctors = . ;
3 *(.ctors)
4 ___ctors_end = . ;
5 ___dtors = . ;
6 *(.dtors)
7 ___dtors_end = . ;"
8
9cat <<EOF
10OUTPUT_FORMAT("${OUTPUT_FORMAT}")
11OUTPUT_ARCH(${ARCH})
12
13/* Code and data, both 64k */
14
15SECTIONS
16{
17.text ${RELOCATING+ 0x10000} :
18 {
19 *(.text)
20 ${RELOCATING+ _etext = . ; }
21 }
22
23.rdata ${RELOCATING+ 0x20000} :
24 {
25 *(.rdata);
26 *(.strings)
27
28 ${CONSTRUCTING+${TORS}}
29 }
30
31.data ${RELOCATING+ . } :
32 {
33 *(.data)
34 ${RELOCATING+ _edata = . ; }
35 }
36
37.bss ${RELOCATING+ .} :
38 {
39 ${RELOCATING+ __start_bss = . ; }
40 *(.bss)
41 *(COMMON)
42 ${RELOCATING+ _end = . ; }
43 }
44
45.stack ${RELOCATING+ 0x2fff0} :
46 {
47 ${RELOCATING+ _stack = . ; }
48 *(.stack)
49 }
50
51.stab 0 ${RELOCATING+(NOLOAD)} :
52 {
53 [ .stab ]
54 }
55
56.stabstr 0 ${RELOCATING+(NOLOAD)} :
57 {
58 [ .stabstr ]
59 }
60}
61EOF
Note: See TracBrowser for help on using the repository browser.