From eac8c9f2d3263e9f412f90044b1cfda2f979b723 Mon Sep 17 00:00:00 2001 From: Krister Walfridsson Date: Sun, 14 May 2017 22:49:03 +0000 Subject: PR target/80600 - hidden symbol '__cpu_model' is referenced by DSO gcc/ChangeLog: PR target/80600 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc. libgcc/ChangeLog: PR target/80600 * config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file. From-SVN: r248037 --- gcc/config/netbsd.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/config/netbsd.h') diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h index 18bda9c..4001f24 100644 --- a/gcc/config/netbsd.h +++ b/gcc/config/netbsd.h @@ -120,8 +120,7 @@ along with GCC; see the file COPYING3. If not see #undef LIB_SPEC #define LIB_SPEC NETBSD_LIB_SPEC -/* Provide a LIBGCC_SPEC appropriate for NetBSD. We also want to exclude - libgcc with -symbolic. */ +/* Provide a LIBGCC_SPEC appropriate for NetBSD. */ #ifdef NETBSD_NATIVE #define NETBSD_LIBGCC_SPEC \ @@ -133,7 +132,7 @@ along with GCC; see the file COPYING3. If not see %{p: -lgcc_p} \ %{pg: -lgcc_p}}" #else -#define NETBSD_LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}" +#define NETBSD_LIBGCC_SPEC "-lgcc" #endif #undef LIBGCC_SPEC -- cgit v1.1