Shared library support is incomplete for the RISC-V embedded elf targets, and was disabled some time ago [1]. However, it appears that it is functional enough to support basic usage, and is required to successfully build u-boot for RISC-V. This toolchain doesn't have widespread usage, so any risk of re-enabling this support is outweighed by the benefit of being able to build important ports like u-boot. Override this default. [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=be1dce26256aa9f6c7742e81c8c3db9eacff079d Reviewed by: philip Approved by: philip Differential Revision: https://reviews.freebsd.org/D25735
20 lines
511 B
Bash
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)"
|