Rename elf32.em to elf.em
[deliverable/binutils-gdb.git] / ld / emulparams / nds32elf_linux.sh
1 DEFAULT_TEXT_START_ADDR=0
2 DEFAULT_STACK_START_ADDR=0
3 MACHINE=
4 SCRIPT_NAME=nds32elf
5 TEMPLATE_NAME=elf
6 EXTRA_EM_FILE=nds32elf
7 BIG_OUTPUT_FORMAT="elf32-nds32be-linux"
8 LITTLE_OUTPUT_FORMAT="elf32-nds32le-linux"
9 OUTPUT_FORMAT="$LITTLE_OUTPUT_FORMAT"
10 LIB_PATH="=/usr/local/lib:=/lib:=/usr/lib/"
11
12 if [ "${DEFAULT_TEXT_START_ADDR}" = "0" ]; then
13 TEXT_START_ADDR=0x8000
14 else
15 TEXT_START_ADDR=${DEFAULT_TEXT_START_ADDR}
16 fi
17
18 ARCH=nds32
19 MACHINE=
20 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
21 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
22
23 # Hmmm, there's got to be a better way. This sets the stack to the
24 # top of simulator memory (32MB).
25 if [ "${DEFAULT_STACK_START_ADDR}" = "0" ]; then
26 OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = 0x2000000);'
27 else
28 OTHER_RELOCATING_SECTIONS="PROVIDE (_stack = ${DEFAULT_STACK_START_ADDR});"
29 fi
30
31 GENERATE_SHLIB_SCRIPT=yes
32 GENERATE_PIE_SCRIPT=yes
33
34 # Use external linker script files.
35 COMPILE_IN=no
This page took 0.030851 seconds and 4 git commands to generate.