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