2016-03-29 22:57:40 +08:00
|
|
|
. ${srcdir}/emulparams/arc-endianness.sh
|
2016-05-19 20:44:01 +08:00
|
|
|
ARCH=arc
|
2015-10-07 21:20:19 +08: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 20:44:01 +08:00
|
|
|
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
|
|
|
|
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
|
2015-10-07 21:20:19 +08:00
|
|
|
ENTRY=__start
|
|
|
|
TEMPLATE_NAME=elf32
|
|
|
|
EXTRA_EM_FILE=arclinux
|
|
|
|
GENERATE_SHLIB_SCRIPT=yes
|
2016-05-19 20:44:01 +08:00
|
|
|
GENERATE_PIE_SCRIPT=yes
|
|
|
|
|
2015-10-07 21:20:19 +08:00
|
|
|
OTHER_SECTIONS="/DISCARD/ : { *(.__arc_profile_*) }"
|
2016-05-19 20:44:01 +08:00
|
|
|
|
|
|
|
# To support RELRO security feature.
|
|
|
|
NO_SMALL_DATA=yes
|
|
|
|
SEPARATE_GOTPLT=4
|
|
|
|
GENERATE_COMBRELOC_SCRIPT=yes
|