Add -z noextern-protected-data to ld for ELF/x86
[external/binutils.git] / ld / emulparams / elf_l1om.sh
1 . ${srcdir}/emulparams/plt_unwind.sh
2 . ${srcdir}/emulparams/extern_protected_data.sh
3 SCRIPT_NAME=elf
4 ELFSIZE=64
5 OUTPUT_FORMAT="elf64-l1om"
6 NO_REL_RELOCS=yes
7 TEXT_START_ADDR=0x400000
8 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
9 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
10 ARCH="l1om"
11 MACHINE=
12 COMPILE_IN=yes
13 TEMPLATE_NAME=elf32
14 GENERATE_SHLIB_SCRIPT=yes
15 GENERATE_PIE_SCRIPT=yes
16 NO_SMALL_DATA=yes
17 LARGE_SECTIONS=yes
18 LARGE_BSS_AFTER_BSS=
19 SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
20 IREL_IN_PLT=
21
22 if [ "x${host}" = "x${target}" ]; then
23   case " $EMULATION_LIBPATH " in
24     *" ${EMULATION_NAME} "*)
25       NATIVE=yes
26   esac
27 fi
28
29 # Linux modifies the default library search path to first include
30 # a 64-bit specific directory.
31 case "$target" in
32   *l1om*-linux*)
33     case "$EMULATION_NAME" in
34       *l1om*) LIBPATH_SUFFIX=64 ;;
35     esac
36     ;;
37 esac