]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Don't try to use libgcc-unwind.map with --disable-shared (PR bootstrap/65725)
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2018 09:49:02 +0000 (09:49 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2018 09:49:02 +0000 (09:49 +0000)
2018-12-10  Fredrik Nyström  <fredrik@lysator.liu.se>

PR bootstrap/65725
* config/sol2.h: Only use libgcc-unwind.map if
ENABLE_SHARED_LIBGCC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266946 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sol2.h

index bffa8e295919d83cc7b68d2a90620bd79f0a48e3..69f7da68f612068a573c47a5981f3bdaf67dc017 100644 (file)
@@ -1,3 +1,9 @@
+2018-12-10  Fredrik Nyström  <fredrik@lysator.liu.se>
+
+       PR bootstrap/65725
+       * config/sol2.h: Only use libgcc-unwind.map if
+       ENABLE_SHARED_LIBGCC.
+
 2018-12-10  Bin Cheng  <bin.cheng@linux.alibaba.com>
 
        * auto-profile.c (afdo_calculate_branch_prob): Convert profile_count
index 197acfbd0fe43448cb89fcc7ff1ba1003cf6a70f..a6746c4b7fbc195eb5cabea9ff3dc9d43d7005f0 100644 (file)
@@ -397,7 +397,7 @@ along with GCC; see the file COPYING3.  If not see
 #define SYSROOT_SPEC "-z sysroot=%R"
 #endif
 
-#ifndef USE_GLD
+#if !defined(USE_GLD) && defined(ENABLE_SHARED_LIBGCC)
 /* With Sun ld, use mapfile to enforce direct binding to libgcc_s unwinder.  */
 #define LINK_LIBGCC_MAPFILE_SPEC \
   "%{shared|shared-libgcc:-M %slibgcc-unwind.map}"