Retro68/binutils/ld/emulparams/arcelf.sh

23 lines
581 B
Bash
Raw Normal View History

2017-04-10 11:32:00 +00:00
. ${srcdir}/emulparams/arc-endianness.sh
SCRIPT_NAME=elfarc
TEMPLATE_NAME=elf32
if [ "x${ARC_ENDIAN}" = "xbig" ]; then
OUTPUT_FORMAT="elf32-bigarc"
else
OUTPUT_FORMAT="elf32-littlearc"
fi
2012-03-26 19:18:29 +00:00
LITTLE_OUTPUT_FORMAT="elf32-littlearc"
BIG_OUTPUT_FORMAT="elf32-bigarc"
2017-04-10 11:32:00 +00:00
# leave room for vector table, 32 vectors * 8 bytes
TEXT_START_ADDR=0x100
2012-03-26 19:18:29 +00:00
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
2017-04-10 11:32:00 +00:00
#NONPAGED_TEXT_START_ADDR=0x0
2012-03-26 19:18:29 +00:00
ARCH=arc
MACHINE=
2017-04-10 11:32:00 +00:00
ENTRY=__start
SDATA_START_SYMBOLS='__SDATA_BEGIN__ = . + 0x100;'
OTHER_SECTIONS="/DISCARD/ : { *(.__arc_profile_*) }"
EMBEDDED=yes
GENERATE_SHLIB_SCRIPT=yes