source: trunk/binutils/ld/scripttempl/pj.sc@ 3003

Last change on this file since 3003 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: 841 bytes
Line 
1TORS=".tors :
2 {
3 ___ctors = . ;
4 *(.ctors)
5 ___ctors_end = . ;
6 ___dtors = . ;
7 *(.dtors)
8 ___dtors_end = . ;
9 } > ram"
10
11cat <<EOF
12OUTPUT_FORMAT("${OUTPUT_FORMAT}")
13OUTPUT_ARCH(${ARCH})
14
15MEMORY
16{
17 ram : o = 0x1000, l = 512M
18}
19
20SECTIONS
21{
22 .text :
23 {
24 *(.text)
25 *(.strings)
26 ${RELOCATING+ _etext = . ; }
27 } ${RELOCATING+ > ram}
28 ${CONSTRUCTING+${TORS}}
29 .data :
30 {
31 *(.data)
32 ${RELOCATING+ _edata = . ; }
33 } ${RELOCATING+ > ram}
34 .bss :
35 {
36 ${RELOCATING+ _bss_start = . ; }
37 *(.bss)
38 *(COMMON)
39 ${RELOCATING+ _end = . ; }
40 } ${RELOCATING+ > ram}
41 .stack ${RELOCATING+ 0x30000 } :
42 {
43 ${RELOCATING+ _stack = . ; }
44 *(.stack)
45 } ${RELOCATING+ > ram}
46 .stab 0 ${RELOCATING+(NOLOAD)} :
47 {
48 *(.stab)
49 }
50 .stabstr 0 ${RELOCATING+(NOLOAD)} :
51 {
52 *(.stabstr)
53 }
54}
55EOF
Note: See TracBrowser for help on using the repository browser.