Retro68/binutils/ld/emulparams/elf32rl78.sh

21 lines
480 B
Bash
Raw Normal View History

MACHINE=
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-rl78"
# See also `include/elf/rl78.h'
TEXT_START_ADDR=0x00000
ARCH=rl78
ENTRY=_start
EMBEDDED=yes
TEMPLATE_NAME=elf32
ELFSIZE=32
2017-04-10 11:32:00 +00:00
# EXTRA_EM_FILE=needrelax
MAXPAGESIZE=256
STACK_ADDR="(DEFINED(__stack) ? __stack : 0xffedc)"
STACK_SENTINEL="LONG(0xdead)"
# We do not need .stack for shared library.
test -n "$CREATE_SHLIB" && unset STACK_ADDR
OTHER_SYMBOLS="PROVIDE (__rl78_abs__ = 0);"
test -n "$CREATE_SHLIB" && unset OTHER_SYMBOLS