x86: Move x86-specific linker options to elf_linker_x86_params
[external/binutils.git] / ld / emulparams / elf_iamcu.sh
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
5 SCRIPT_NAME=elf
6 OUTPUT_FORMAT="elf32-iamcu"
7 NO_RELA_RELOCS=yes
8 TEXT_START_ADDR=0x08048000
9 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
10 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
11 ARCH=iamcu
12 MACHINE=
13 COMPILE_IN=yes
14 TEMPLATE_NAME=elf32
15 EXTRA_EM_FILE="elf-x86"
16 GENERATE_SHLIB_SCRIPT=yes
17 GENERATE_PIE_SCRIPT=yes
18 NO_SMALL_DATA=yes
19 SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 12 ? 12 : 0"
20 IREL_IN_PLT=
21 # These sections are placed right after .plt section.
22 OTHER_PLT_SECTIONS="
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.
28 case "$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     ;;
37 esac