aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKrister Walfridsson <krister.walfridsson@gmail.com>2017-05-14 22:49:03 +0000
committerKrister Walfridsson <kristerw@gcc.gnu.org>2017-05-14 22:49:03 +0000
commiteac8c9f2d3263e9f412f90044b1cfda2f979b723 (patch)
treed669de804819be975a52bce83c2b28615f3d9f9e /gcc
parent9430f7b8e71286b54153227e5fdaf42ab8e955dc (diff)
downloadgcc-eac8c9f2d3263e9f412f90044b1cfda2f979b723.zip
gcc-eac8c9f2d3263e9f412f90044b1cfda2f979b723.tar.gz
gcc-eac8c9f2d3263e9f412f90044b1cfda2f979b723.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/netbsd.h5
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a21042..cecd6d8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
+
+ PR target/80600
+ * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
+
2017-05-14 Uros Bizjak <ubizjak@gmail.com>
* config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
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