1*3d8817e4Smiodcat <<EOF
2*3d8817e4SmiodOUTPUT_FORMAT(${OUTPUT_FORMAT})
3*3d8817e4SmiodOUTPUT_ARCH(${ARCH})
4*3d8817e4Smiod${RELOCATING+${LIB_SEARCH_DIRS}}
5*3d8817e4Smiod
6*3d8817e4SmiodSECTIONS
7*3d8817e4Smiod{
8*3d8817e4Smiod  .text ${RELOCATING:-0} ${RELOCATING+${TEXT_START_ADDR}} : {
9*3d8817e4Smiod    ${RELOCATING+ start = DEFINED(_START) ? _START : DEFINED(_start) ? _start : .;}
10*3d8817e4Smiod    ${RELOCATING+ PROVIDE(__text = .);}
11*3d8817e4Smiod    *(.text);
12*3d8817e4Smiod    *(code);
13*3d8817e4Smiod    *(const);
14*3d8817e4Smiod    *(strings);
15*3d8817e4Smiod    *(pSOS);
16*3d8817e4Smiod    *(pROBE);
17*3d8817e4Smiod    *(pNA);
18*3d8817e4Smiod    *(pHILE);
19*3d8817e4Smiod    *(pREPC);
20*3d8817e4Smiod    *(pRPC);
21*3d8817e4Smiod    ${CONSTRUCTING+ ___CTOR_LIST__ = .;}
22*3d8817e4Smiod    ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)}
23*3d8817e4Smiod    ${CONSTRUCTING+ *(.ctors)}
24*3d8817e4Smiod    ${CONSTRUCTING+ LONG(0);}
25*3d8817e4Smiod    ${CONSTRUCTING+ ___CTOR_END__ = .;}
26*3d8817e4Smiod    ${CONSTRUCTING+ ___DTOR_LIST__ = .;}
27*3d8817e4Smiod    ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2);}
28*3d8817e4Smiod    ${CONSTRUCTING+ *(.dtors);}
29*3d8817e4Smiod    ${CONSTRUCTING+ LONG(0);}
30*3d8817e4Smiod    ${CONSTRUCTING+ ___DTOR_END__ = .;}
31*3d8817e4Smiod    ${RELOCATING+ PROVIDE(__etext = .);}
32*3d8817e4Smiod    ${RELOCATING+ PROVIDE(_etext = .);}
33*3d8817e4Smiod  }
34*3d8817e4Smiod  .data ${RELOCATING:-0} : ${RELOCATING+ AT(ADDR(.text) + SIZEOF(.text))} {
35*3d8817e4Smiod    ${RELOCATING+ PROVIDE(__data = .);}
36*3d8817e4Smiod    *(.data);
37*3d8817e4Smiod    *(vars);
38*3d8817e4Smiod    ${RELOCATING+ PROVIDE(__edata = .);}
39*3d8817e4Smiod    ${RELOCATING+ PROVIDE(_edata = .);}
40*3d8817e4Smiod  }
41*3d8817e4Smiod  .bss ${RELOCATING:-0} :
42*3d8817e4Smiod  {
43*3d8817e4Smiod    ${RELOCATING+ PROVIDE(__bss = .);}
44*3d8817e4Smiod    *(.bss);
45*3d8817e4Smiod    *(zerovars);
46*3d8817e4Smiod    *(COMMON);
47*3d8817e4Smiod    ${RELOCATING+ PROVIDE(__ebss = .);}
48*3d8817e4Smiod    ${RELOCATING+ PROVIDE(__end = .);}
49*3d8817e4Smiod    ${RELOCATING+ PROVIDE(_end = .);}
50*3d8817e4Smiod    ${RELOCATING+ PROVIDE(_FreeMemStart = .);}
51*3d8817e4Smiod  }
52*3d8817e4Smiod  .stab 0 ${RELOCATING+(NOLOAD)} :
53*3d8817e4Smiod  {
54*3d8817e4Smiod    *(.stab);
55*3d8817e4Smiod  }
56*3d8817e4Smiod  .stabstr 0 ${RELOCATING+(NOLOAD)} :
57*3d8817e4Smiod  {
58*3d8817e4Smiod    *(.stabstr);
59*3d8817e4Smiod  }
60*3d8817e4Smiod}
61*3d8817e4SmiodEOF
62