Riscv shared libraries should not export __global_pointer$.
[external/binutils.git] / ld / emulparams / elf32mt.sh
1 MACHINE=
2 SCRIPT_NAME=elf
3 TEMPLATE_NAME=generic
4 EXTRA_EM_FILE=genelf
5 OUTPUT_FORMAT="elf32-mt"
6 # See also `include/elf/mt.h'
7 TEXT_START_ADDR=0x2000
8 ARCH=mt
9 ENTRY=_start
10 EMBEDDED=yes
11 ELFSIZE=32
12 MAXPAGESIZE=256
13
14 STACK_ADDR="(DEFINED(__stack) ? __stack : 0x007FFFF0)"
15 STACK_SENTINEL="LONG(0xdeaddead)"
16 # We do not need .stack for shared library.
17 test -n "$CREATE_SHLIB" && unset STACK_ADDR