1*3d8817e4Smiodcat <<EOF
2*3d8817e4SmiodOUTPUT_FORMAT("${OUTPUT_FORMAT}")
3*3d8817e4SmiodOUTPUT_ARCH(${ARCH})
4*3d8817e4SmiodENTRY("_start")
5*3d8817e4SmiodMEMORY
6*3d8817e4Smiod{
7*3d8817e4Smiod	vectarea : o =0xc00000, l = 0x0300
8*3d8817e4Smiod
9*3d8817e4Smiod	introm    : o = 0xc00300, l = 0x16000
10*3d8817e4Smiod	/* The stack starts at the top of main ram.  */
11*3d8817e4Smiod
12*3d8817e4Smiod	dram   : o = 0x8000 , l = 0xffff
13*3d8817e4Smiod	/* At the very top of the address space is the 8-bit area.  */
14*3d8817e4Smiod
15*3d8817e4Smiod         ldata  : o =0x4000 ,l = 0x0200
16*3d8817e4Smiod}
17*3d8817e4SmiodSECTIONS
18*3d8817e4Smiod{
19*3d8817e4Smiod/*.vects :
20*3d8817e4Smiod        {
21*3d8817e4Smiod        *(.vects)
22*3d8817e4Smiod       } ${RELOCATING+ > vectarea} */
23*3d8817e4Smiod.init :
24*3d8817e4Smiod        {
25*3d8817e4Smiod          *(.init)
26*3d8817e4Smiod        } ${RELOCATING+ >introm}
27*3d8817e4Smiod
28*3d8817e4Smiod.text :
29*3d8817e4Smiod	{
30*3d8817e4Smiod	  *(.rodata)
31*3d8817e4Smiod	  *(.text.*)
32*3d8817e4Smiod	  *(.text)
33*3d8817e4Smiod	  	  ${RELOCATING+ _etext = . ; }
34*3d8817e4Smiod	} ${RELOCATING+ > introm}
35*3d8817e4Smiod.data :
36*3d8817e4Smiod	{
37*3d8817e4Smiod	  *(.data)
38*3d8817e4Smiod	  *(.data.*)
39*3d8817e4Smiod
40*3d8817e4Smiod	  ${RELOCATING+ _edata = . ; }
41*3d8817e4Smiod	} ${RELOCATING+ > dram}
42*3d8817e4Smiod
43*3d8817e4Smiod.bss :
44*3d8817e4Smiod	{
45*3d8817e4Smiod	  ${RELOCATING+ _bss_start = . ;}
46*3d8817e4Smiod	  *(.bss)
47*3d8817e4Smiod	  *(COMMON)
48*3d8817e4Smiod	  ${RELOCATING+ _end = . ;  }
49*3d8817e4Smiod	} ${RELOCATING+ > dram}
50*3d8817e4Smiod
51*3d8817e4Smiod .ldata :
52*3d8817e4Smiod         {
53*3d8817e4Smiod          *(.ldata)
54*3d8817e4Smiod         } ${RELOCATING+ > ldata}
55*3d8817e4Smiod
56*3d8817e4Smiod
57*3d8817e4Smiod  .vects :
58*3d8817e4Smiod          {
59*3d8817e4Smiod          *(.vects)
60*3d8817e4Smiod       } ${RELOCATING+ > vectarea}
61*3d8817e4Smiod
62*3d8817e4Smiod
63*3d8817e4Smiod}
64*3d8817e4SmiodEOF
65