2003-04-01 15:50:31 +00:00
|
|
|
# First set some configuration-specific variables
|
|
|
|
. ${srcdir}/emulparams/xtensa-config.sh
|
|
|
|
|
|
|
|
# See genscripts.sh and ../scripttempl/elfxtensa.sc for the meaning of these.
|
|
|
|
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"
|
|
|
|
TEXT_START_ADDR=0x400000
|
|
|
|
NONPAGED_TEXT_START_ADDR=0x400000
|
|
|
|
ARCH=xtensa
|
|
|
|
MACHINE=
|
|
|
|
GENERATE_SHLIB_SCRIPT=yes
|
|
|
|
GENERATE_COMBRELOC_SCRIPT=yes
|
|
|
|
NO_SMALL_DATA=yes
|
|
|
|
OTHER_READONLY_SECTIONS='
|
2003-07-10 19:01:48 +00:00
|
|
|
.got.loc : { *(.got.loc) }
|
2003-04-01 15:50:31 +00:00
|
|
|
.xt_except_table : { KEEP (*(.xt_except_table)) }
|
|
|
|
'
|
2003-07-10 19:01:48 +00:00
|
|
|
OTHER_READWRITE_SECTIONS="
|
2003-04-01 15:50:31 +00:00
|
|
|
.xt_except_desc :
|
|
|
|
{
|
2003-07-10 19:01:48 +00:00
|
|
|
*(.xt_except_desc${RELOCATING+ .gnu.linkonce.h.*})
|
|
|
|
${RELOCATING+*(.xt_except_desc_end)}
|
2003-04-01 15:50:31 +00:00
|
|
|
}
|
2003-07-10 19:01:48 +00:00
|
|
|
"
|
|
|
|
OTHER_SECTIONS="
|
|
|
|
.xt.lit : { *(.xt.lit${RELOCATING+ .xt.lit.* .gnu.linkonce.p.*}) }
|
|
|
|
.xt.insn : { *(.xt.insn${RELOCATING+ .gnu.linkonce.x.*}) }
|
|
|
|
"
|