From: Krister Walfridsson Date: Sun, 14 May 2017 22:49:03 +0000 (+0000) Subject: PR target/80600 - hidden symbol '__cpu_model' is referenced by DSO X-Git-Tag: basepoints/gcc-9~7304 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eac8c9f2d3263e9f412f90044b1cfda2f979b723;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9a2104282069..cecd6d86ff9f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-14 Krister Walfridsson + + PR target/80600 + * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc. + 2017-05-14 Uros Bizjak * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h index 18bda9c3dd4b..4001f240d58b 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 diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 13bdd94641c0..c070a3d2a96e 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-14 Krister Walfridsson + + PR target/80600 + * config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file. + 2017-05-14 Daniel Santos * config.host: Add i386/t-msabi to i386/t-linux file list. diff --git a/libgcc/config.host b/libgcc/config.host index 466b855c39b7..7711abf27047 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -249,6 +249,7 @@ case ${host} in *-*-netbsd*) tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" + tmake_file="$tmake_file t-slibgcc-libgcc" # NetBSD 1.7 and later are set up to use GCC's crtstuff for # ELF configurations. We will clear extra_parts in the # a.out configurations.