Automatic date update in version.in
[external/binutils.git] / ld / emulparams / elf_i386.sh
1 source_sh ${srcdir}/emulparams/plt_unwind.sh
2 source_sh ${srcdir}/emulparams/extern_protected_data.sh
3 source_sh ${srcdir}/emulparams/dynamic_undefined_weak.sh
4 source_sh ${srcdir}/emulparams/call_nop.sh
5 source_sh ${srcdir}/emulparams/cet.sh
6 SCRIPT_NAME=elf
7 OUTPUT_FORMAT="elf32-i386"
8 NO_RELA_RELOCS=yes
9 TEXT_START_ADDR=0x08048000
10 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
11 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
12 ARCH=i386
13 MACHINE=
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 .plt.sec      ${RELOCATING-0} : { *(.plt.sec) }
25 "
26
27 # Linux modify the default library search path to first include
28 # a 32-bit specific directory.
29 case "$target" in
30   x86_64*-linux* | i[3-7]86*-linux*)
31     case "$EMULATION_NAME" in
32       *i386*)
33         LIBPATH_SUFFIX=32
34         LIBPATH_SUFFIX_SKIP=64
35         ;;
36     esac
37     ;;
38 esac