Module Name:    src
Committed By:   maya
Date:           Sat Apr 13 15:53:32 UTC 2019

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/riscv: netbsd.h

Log Message:
use NETBSD_LINK_SPEC_ELF rather than netbsd_link_spec.

My current guess as to why it makes a difference is that riscv, unlike other
targets, doesn't use the macro SUBTARGET_EXTRA_SPECS for anything meaningful

Fixes linking libgcc_s.so, which is now emitted as a dynamic library, not
a static object (which fails, as it has undefined references)

XXX there might be a better way of doing this


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h:1.6 src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h:1.7
--- src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h:1.6	Sun Feb 10 07:56:21 2019
+++ src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h	Sat Apr 13 15:53:32 2019
@@ -57,8 +57,8 @@ Boston, MA 02111-1307, USA.  */
 #undef LINK_SPEC
 #define LINK_SPEC \
   "%{m64:-m elf64lriscv} \
-   %{m32:-m elf32lriscv} \
-   %(netbsd_link_spec)"
+   %{m32:-m elf32lriscv}" \
+   NETBSD_LINK_SPEC_ELF
 
 #undef NETBSD_ENTRY_POINT
 #define NETBSD_ENTRY_POINT	"_start"

Reply via email to