opnsense-ports/devel/binutils/files/patch-ld_emulparams_elf32lriscv-defs.sh
Franco Fichtner 948b9e9486 devel/binutils: sync with upstream
Taken from: HardenedBSD
2020-08-04 03:15:45 +02:00

20 lines
511 B
Bash

--- ld/emulparams/elf32lriscv-defs.sh.orig 2020-02-03 18:09:14 UTC
+++ ld/emulparams/elf32lriscv-defs.sh
@@ -16,15 +16,8 @@ if test `echo "$host" | sed -e s/64//` = `echo "$targe
esac
fi
-# Enable shared library support for everything except an embedded elf target.
-case "$target" in
- riscv*-elf)
- ;;
- *)
- GENERATE_SHLIB_SCRIPT=yes
- GENERATE_PIE_SCRIPT=yes
- ;;
-esac
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
TEXT_START_ADDR=0x10000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"