2003-04-01 17:50:31 +02:00
|
|
|
SCRIPT_NAME=elfxtensa
|
|
|
|
TEMPLATE_NAME=elf32
|
|
|
|
EXTRA_EM_FILE=xtensaelf
|
|
|
|
OUTPUT_FORMAT=undefined
|
|
|
|
BIG_OUTPUT_FORMAT="elf32-xtensa-be"
|
|
|
|
LITTLE_OUTPUT_FORMAT="elf32-xtensa-le"
|
2008-11-03 19:52:52 +01:00
|
|
|
NO_REL_RELOCS=yes
|
2003-04-01 17:50:31 +02:00
|
|
|
TEXT_START_ADDR=0x400000
|
2006-10-05 03:06:13 +02:00
|
|
|
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
|
2003-04-01 17:50:31 +02:00
|
|
|
ARCH=xtensa
|
|
|
|
MACHINE=
|
|
|
|
GENERATE_SHLIB_SCRIPT=yes
|
2006-10-10 22:57:37 +02:00
|
|
|
GENERATE_PIE_SCRIPT=yes
|
2003-04-01 17:50:31 +02:00
|
|
|
GENERATE_COMBRELOC_SCRIPT=yes
|
|
|
|
NO_SMALL_DATA=yes
|
2006-10-12 00:18:31 +02:00
|
|
|
TEXT_PLT=yes
|
2005-05-12 02:31:22 +02:00
|
|
|
PLT="/* .plt* sections are embedded in .text */"
|
|
|
|
GOT=".got ${RELOCATING-0} : { *(.got) }"
|
2003-10-08 01:30:20 +02:00
|
|
|
OTHER_READONLY_SECTIONS="
|
|
|
|
.got.loc ${RELOCATING-0} : { *(.got.loc) }
|
2007-06-12 01:46:32 +02:00
|
|
|
.xt_except_table ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.xt_except_table${RELOCATING+ .xt_except_table.* .gnu.linkonce.e.*})) }
|
|
|
|
"
|
|
|
|
OTHER_RELRO_SECTIONS="
|
|
|
|
.xt_except_table ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.xt_except_table${RELOCATING+ .xt_except_table.* .gnu.linkonce.e.*})) }
|
2003-10-08 01:30:20 +02:00
|
|
|
"
|
2003-07-10 21:01:48 +02:00
|
|
|
OTHER_READWRITE_SECTIONS="
|
2003-10-08 01:30:20 +02:00
|
|
|
.xt_except_desc ${RELOCATING-0} :
|
2003-04-01 17:50:31 +02:00
|
|
|
{
|
2006-10-12 00:18:31 +02:00
|
|
|
*(.xt_except_desc${RELOCATING+ .xt_except_desc.* .gnu.linkonce.h.*})
|
2003-07-10 21:01:48 +02:00
|
|
|
${RELOCATING+*(.xt_except_desc_end)}
|
2003-04-01 17:50:31 +02:00
|
|
|
}
|
2003-07-10 21:01:48 +02:00
|
|
|
"
|
2006-10-12 00:18:31 +02:00
|
|
|
OTHER_SDATA_SECTIONS="
|
|
|
|
.lit4 ${RELOCATING-0} :
|
|
|
|
{
|
|
|
|
${RELOCATING+PROVIDE (_lit4_start = .);}
|
|
|
|
*(.lit4${RELOCATING+ .lit4.* .gnu.linkonce.lit4.*})
|
|
|
|
${RELOCATING+PROVIDE (_lit4_end = .);}
|
|
|
|
}
|
|
|
|
"
|
2003-07-10 21:01:48 +02:00
|
|
|
OTHER_SECTIONS="
|
2007-04-12 17:52:02 +02:00
|
|
|
.xt.lit 0 : { KEEP (*(.xt.lit${RELOCATING+ .xt.lit.* .gnu.linkonce.p.*})) }
|
|
|
|
.xt.insn 0 : { KEEP (*(.xt.insn${RELOCATING+ .gnu.linkonce.x.*})) }
|
|
|
|
.xt.prop 0 : { KEEP (*(.xt.prop${RELOCATING+ .xt.prop.* .gnu.linkonce.prop.*})) }
|
2003-07-10 21:01:48 +02:00
|
|
|
"
|