Rename elf32.em to elf.em
[deliverable/binutils-gdb.git] / ld / emulparams / nds32elf_linux.sh
CommitLineData
35c08157
KLC
1DEFAULT_TEXT_START_ADDR=0
2DEFAULT_STACK_START_ADDR=0
3MACHINE=
4SCRIPT_NAME=nds32elf
075a2b89 5TEMPLATE_NAME=elf
35c08157
KLC
6EXTRA_EM_FILE=nds32elf
7BIG_OUTPUT_FORMAT="elf32-nds32be-linux"
8LITTLE_OUTPUT_FORMAT="elf32-nds32le-linux"
9OUTPUT_FORMAT="$LITTLE_OUTPUT_FORMAT"
10LIB_PATH="=/usr/local/lib:=/lib:=/usr/lib/"
11
12if [ "${DEFAULT_TEXT_START_ADDR}" = "0" ]; then
13 TEXT_START_ADDR=0x8000
14else
15 TEXT_START_ADDR=${DEFAULT_TEXT_START_ADDR}
16fi
17
18ARCH=nds32
19MACHINE=
20MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
21COMMONPAGESIZE="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).
25if [ "${DEFAULT_STACK_START_ADDR}" = "0" ]; then
26 OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = 0x2000000);'
27else
28 OTHER_RELOCATING_SECTIONS="PROVIDE (_stack = ${DEFAULT_STACK_START_ADDR});"
29fi
30
31GENERATE_SHLIB_SCRIPT=yes
32GENERATE_PIE_SCRIPT=yes
33
7225345d
AM
34# Use external linker script files.
35COMPILE_IN=no
This page took 0.278576 seconds and 4 git commands to generate.