Date: Fri, 31 Jul 2020 16:43:37 +0000 (UTC) From: Mitchell Horne <mhorne@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r543868 - in head/devel/binutils: . files Message-ID: <202007311643.06VGhbKa030214@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mhorne (src committer) Date: Fri Jul 31 16:43:37 2020 New Revision: 543868 URL: https://svnweb.freebsd.org/changeset/ports/543868 Log: Enable -shared support for embedded RISC-V targets 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 Added: head/devel/binutils/files/patch-ld_emulparams_elf32lriscv-defs.sh (contents, props changed) Modified: head/devel/binutils/Makefile Modified: head/devel/binutils/Makefile ============================================================================== --- head/devel/binutils/Makefile Fri Jul 31 14:14:19 2020 (r543867) +++ head/devel/binutils/Makefile Fri Jul 31 16:43:37 2020 (r543868) @@ -3,8 +3,8 @@ PORTNAME= binutils PORTVERSION= 2.33.1 +PORTREVISION= 3 PORTEPOCH?= 1 -PORTREVISION= 2 CATEGORIES?= devel MASTER_SITES= SOURCEWARE/binutils/releases Added: head/devel/binutils/files/patch-ld_emulparams_elf32lriscv-defs.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/binutils/files/patch-ld_emulparams_elf32lriscv-defs.sh Fri Jul 31 16:43:37 2020 (r543868) @@ -0,0 +1,20 @@ +--- 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)"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007311643.06VGhbKa030214>