Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/emulparams/nios2elf.sh
2023-03-06 14:48:14 +01:00

19 lines
414 B
Bash

SCRIPT_NAME=elf
TEMPLATE_NAME=elf
EXTRA_EM_FILE=nios2elf
OUTPUT_FORMAT="elf32-littlenios2"
LITTLE_OUTPUT_FORMAT="elf32-littlenios2"
BIG_OUTPUT_FORMAT="elf32-bignios2"
TEXT_START_ADDR=0x1000
OTHER_GOT_SYMBOLS='
_gp = ALIGN(16) + 0x7ff0;
PROVIDE(gp = _gp);
'
ARCH=nios2
MACHINE=
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ENTRY=_start
NOP=0x0001883a
GENERATE_PIE_SCRIPT=yes