1# If you change this file, please also look at files which source this one:
2# shlelf.sh, shelf_nbsd.sh
3
4SCRIPT_NAME=elf
5OUTPUT_FORMAT="elf32-sh"
6NO_REL_RELOCS=yes
7TEXT_START_ADDR=0x1000
8MAXPAGESIZE=128
9ARCH=sh
10MACHINE=
11TEMPLATE_NAME=elf
12GENERATE_SHLIB_SCRIPT=yes
13EMBEDDED=yes
14# These are for compatibility with the COFF toolchain.
15ENTRY=start
16CTOR_START='___ctors = .;'
17CTOR_END='___ctors_end = .;'
18DTOR_START='___dtors = .;'
19DTOR_END='___dtors_end = .;'
20STACK_ADDR="(DEFINED(_stack) ? _stack : 0x3FFFFF00)"
21STACK_SENTINEL="LONG(0xdeaddead)"
22# We do not need .stack for shared library.
23test -n "$CREATE_SHLIB" && unset STACK_ADDR
24