1. ${srcdir}/emulparams/plt_unwind.sh
2. ${srcdir}/emulparams/extern_protected_data.sh
3. ${srcdir}/emulparams/dynamic_undefined_weak.sh
4. ${srcdir}/emulparams/call_nop.sh
5SCRIPT_NAME=elf
6OUTPUT_FORMAT="elf32-iamcu"
7CHECK_RELOCS_AFTER_OPEN_INPUT=yes
8NO_RELA_RELOCS=yes
9TEXT_START_ADDR=0x08048000
10MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
11COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
12ARCH=iamcu
13MACHINE=
14COMPILE_IN=yes
15TEMPLATE_NAME=elf32
16GENERATE_SHLIB_SCRIPT=yes
17GENERATE_PIE_SCRIPT=yes
18NO_SMALL_DATA=yes
19SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 12 ? 12 : 0"
20IREL_IN_PLT=
21# Reuse TINY_READONLY_SECTION which is placed right after .plt section.
22TINY_READONLY_SECTION="
23.plt.got      ${RELOCATING-0} : { *(.plt.got) }
24"
25
26# Linux modify the default library search path to first include
27# a 32-bit specific directory.
28case "$target" in
29  x86_64*-linux* | i[3-7]86*-linux*)
30    case "$EMULATION_NAME" in
31      *i386*)
32	LIBPATH_SUFFIX=32
33	LIBPATH_SUFFIX_SKIP=64
34	;;
35    esac
36    ;;
37esac
38