mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
c0913ebfaf
2016-05-19 Cupertino Miranda <cmiranda@synopsys.com> * emulparams/arcelf.sh: Changed. * emulparams/arclinux.sh: Likewise. * scripttempl/arclinux.sc: Moved to a more standard implementation similar to elf.sc.
26 lines
624 B
Bash
26 lines
624 B
Bash
. ${srcdir}/emulparams/arc-endianness.sh
|
|
ARCH=arc
|
|
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
|
|
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
|
|
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
|
|
ENTRY=__start
|
|
TEMPLATE_NAME=elf32
|
|
EXTRA_EM_FILE=arclinux
|
|
GENERATE_SHLIB_SCRIPT=yes
|
|
GENERATE_PIE_SCRIPT=yes
|
|
|
|
OTHER_SECTIONS="/DISCARD/ : { *(.__arc_profile_*) }"
|
|
|
|
# To support RELRO security feature.
|
|
NO_SMALL_DATA=yes
|
|
SEPARATE_GOTPLT=4
|
|
GENERATE_COMBRELOC_SCRIPT=yes
|