Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/riscv use NETBSD_LINK_SPEC...



details:   https://anonhg.NetBSD.org/src/rev/293f1e5a0a4a
branches:  trunk
changeset: 450418:293f1e5a0a4a
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Apr 13 15:53:32 2019 +0000

description:
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

diffstat:

 external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 9cb23c64aaa5 -r 293f1e5a0a4a external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h  Sat Apr 13 15:08:49 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h  Sat Apr 13 15:53:32 2019 +0000
@@ -57,8 +57,8 @@
 #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"



Home | Main Index | Thread Index | Old Index