1. ${srcdir}/emulparams/arc-endianness.sh
2ARCH=arc
3SCRIPT_NAME=arclinux
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"
11TEXT_START_ADDR=0x10000
12MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
13COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
14ENTRY=__start
15TEMPLATE_NAME=elf32
16EXTRA_EM_FILE=arclinux
17GENERATE_SHLIB_SCRIPT=yes
18GENERATE_PIE_SCRIPT=yes
19
20OTHER_SECTIONS="/DISCARD/ : { *(.__arc_profile_*) }"
21
22# To support RELRO security feature.
23NO_SMALL_DATA=yes
24SEPARATE_GOTPLT=4
25GENERATE_COMBRELOC_SCRIPT=yes
26