1SCRIPT_NAME=elfxtensa
2TEMPLATE_NAME=elf32
3EXTRA_EM_FILE=xtensaelf
4OUTPUT_FORMAT=undefined
5BIG_OUTPUT_FORMAT="elf32-xtensa-be"
6LITTLE_OUTPUT_FORMAT="elf32-xtensa-le"
7NO_REL_RELOCS=yes
8TEXT_START_ADDR=0x400000
9MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
10ARCH=xtensa
11MACHINE=
12GENERATE_SHLIB_SCRIPT=yes
13GENERATE_PIE_SCRIPT=yes
14GENERATE_COMBRELOC_SCRIPT=yes
15NO_SMALL_DATA=yes
16TEXT_PLT=yes
17PLT="/* .plt* sections are embedded in .text */"
18GOT=".got          ${RELOCATING-0} : { *(.got) }"
19OTHER_READONLY_SECTIONS="
20  .got.loc      ${RELOCATING-0} : { *(.got.loc) }
21  .xt_except_table ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.xt_except_table${RELOCATING+ .xt_except_table.* .gnu.linkonce.e.*})) }
22"
23OTHER_RELRO_SECTIONS="
24  .xt_except_table ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.xt_except_table${RELOCATING+ .xt_except_table.* .gnu.linkonce.e.*})) }
25"
26OTHER_READWRITE_SECTIONS="
27  .xt_except_desc ${RELOCATING-0} :
28  {
29    *(.xt_except_desc${RELOCATING+ .xt_except_desc.* .gnu.linkonce.h.*})
30    ${RELOCATING+*(.xt_except_desc_end)}
31  }
32"
33OTHER_SDATA_SECTIONS="
34  .lit4         ${RELOCATING-0} :
35  {
36    ${RELOCATING+PROVIDE (_lit4_start = .);}
37    *(.lit4${RELOCATING+ .lit4.* .gnu.linkonce.lit4.*})
38    ${RELOCATING+PROVIDE (_lit4_end = .);}
39  }
40"
41OTHER_SECTIONS="
42  .xt.lit       0 : { KEEP (*(.xt.lit${RELOCATING+ .xt.lit.* .gnu.linkonce.p.*})) }
43  .xt.insn      0 : { KEEP (*(.xt.insn${RELOCATING+ .gnu.linkonce.x.*})) }
44  .xt.prop      0 : { KEEP (*(.xt.prop${RELOCATING+ .xt.prop.* .gnu.linkonce.prop.*})) }
45"
46