Commit eac8c9f2 by Krister Walfridsson Committed by Krister Walfridsson

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
parent 9430f7b8
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> 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
* config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
......
...@@ -120,8 +120,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -120,8 +120,7 @@ along with GCC; see the file COPYING3. If not see
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC NETBSD_LIB_SPEC #define LIB_SPEC NETBSD_LIB_SPEC
/* Provide a LIBGCC_SPEC appropriate for NetBSD. We also want to exclude /* Provide a LIBGCC_SPEC appropriate for NetBSD. */
libgcc with -symbolic. */
#ifdef NETBSD_NATIVE #ifdef NETBSD_NATIVE
#define NETBSD_LIBGCC_SPEC \ #define NETBSD_LIBGCC_SPEC \
...@@ -133,7 +132,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -133,7 +132,7 @@ along with GCC; see the file COPYING3. If not see
%{p: -lgcc_p} \ %{p: -lgcc_p} \
%{pg: -lgcc_p}}" %{pg: -lgcc_p}}"
#else #else
#define NETBSD_LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}" #define NETBSD_LIBGCC_SPEC "-lgcc"
#endif #endif
#undef LIBGCC_SPEC #undef LIBGCC_SPEC
......
2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
PR target/80600
* config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file.
2017-05-14 Daniel Santos <daniel.santos@pobox.com> 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
* config.host: Add i386/t-msabi to i386/t-linux file list. * config.host: Add i386/t-msabi to i386/t-linux file list.
......
...@@ -249,6 +249,7 @@ case ${host} in ...@@ -249,6 +249,7 @@ case ${host} in
*-*-netbsd*) *-*-netbsd*)
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" 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 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 # NetBSD 1.7 and later are set up to use GCC's crtstuff for
# ELF configurations. We will clear extra_parts in the # ELF configurations. We will clear extra_parts in the
# a.out configurations. # a.out configurations.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment