1. ${srcdir}/emulparams/arc-endianness.sh
2SCRIPT_NAME=elfarc
3TEMPLATE_NAME=elf32
4if [ "x${ARC_ENDIAN}" = "xbig" ]; then
5  OUTPUT_FORMAT="elf32-bigarc"
6else
7  OUTPUT_FORMAT="elf32-littlearc"
8fi
9LITTLE_OUTPUT_FORMAT="elf32-littlearc"
10BIG_OUTPUT_FORMAT="elf32-bigarc"
11# leave room for vector table, 32 vectors * 8 bytes
12TEXT_START_ADDR=0x100
13MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
14#NONPAGED_TEXT_START_ADDR=0x0
15ARCH=arc
16MACHINE=
17ENTRY=__start
18SDATA_START_SYMBOLS='__SDATA_BEGIN__ = .;'
19OTHER_READONLY_SECTIONS="
20  .__arc_profile_desc ${RELOCATING-0} : { *(.__arc_profile_desc) }
21  .__arc_profile_forward ${RELOCATING-0} : { *(.__arc_profile_forward) }
22"
23OTHER_BSS_SECTIONS="
24  .__arc_profile_counters ${RELOCATING-0} : { *(.__arc_profile_counters) }
25"
26EMBEDDED=yes
27