2016-03-29 16:57:40 +02:00
|
|
|
. ${srcdir}/emulparams/arc-endianness.sh
|
2016-05-19 14:44:01 +02:00
|
|
|
ARCH=arc
|
2015-10-07 15:20:19 +02:00
|
|
|
SCRIPT_NAME=arclinux
|
|
|
|
if [ "x${ARC_ENDIAN}" = "xbig" ]; then
|
|
|
|
OUTPUT_FORMAT="elf32-bigarc"
|
|
|
|
else
|
|
|
|
OUTPUT_FORMAT="elf32-littlearc"
|
|
|
|
fi
|
|
|
|
LITTLE_OUTPUT_FORMAT="elf32-littlearc"
|
|
|
|
BIG_OUTPUT_FORMAT="elf32-bigarc"
|
|
|
|
TEXT_START_ADDR=0x10000
|
2016-05-19 14:44:01 +02:00
|
|
|
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
|
|
|
|
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
|
2015-10-07 15:20:19 +02:00
|
|
|
ENTRY=__start
|
|
|
|
TEMPLATE_NAME=elf32
|
|
|
|
EXTRA_EM_FILE=arclinux
|
|
|
|
GENERATE_SHLIB_SCRIPT=yes
|
2016-05-19 14:44:01 +02:00
|
|
|
GENERATE_PIE_SCRIPT=yes
|
|
|
|
|
2015-10-07 15:20:19 +02:00
|
|
|
OTHER_SECTIONS="/DISCARD/ : { *(.__arc_profile_*) }"
|
2016-05-19 14:44:01 +02:00
|
|
|
|
|
|
|
# To support RELRO security feature.
|
|
|
|
NO_SMALL_DATA=yes
|
|
|
|
SEPARATE_GOTPLT=4
|
|
|
|
GENERATE_COMBRELOC_SCRIPT=yes
|