diff mbox

[committed] TILEPro: link against libgcc.a when creating shared libraries

Message ID e62ca871-2b7b-e116-a81a-9a72300d272c@mellanox.com
State New
Headers show

Commit Message

Walter Lee Nov. 19, 2016, 3:20 a.m. UTC
This patch forces gcc to link against libgcc.a when creating shared
libraries, needed for 64-bit multiplies.

Bootstrapped and tested on tilepro hardware, also backported to GCC 6.

2016-11-18  Walter Lee  <walt@tilera.com>

        * config.host (tilepro*-*-linux*): Add t-slibgcc-libgcc.

         ;;
 v850*-*-*)
diff mbox

Patch

diff --git a/libgcc/config.host b/libgcc/config.host
index 64beb21..e7e5413 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -1267,7 +1267,7 @@  tilegx*-*-linux*)
 	md_unwind_header=tilepro/linux-unwind.h
         ;;
 tilepro*-*-linux*)
-	tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp
tilepro/t-tilepro"
+	tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp
tilepro/t-tilepro t-slibgcc-libgcc"
 	md_unwind_header=tilepro/linux-unwind.h