Received: by 10.192.165.156 with SMTP id m28csp711624imm; Thu, 19 Apr 2018 06:23:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/mXBkw7cAk8Kp5WMqpx3URgw+L74of2XceUwJQVWaASoF0Iyegs9G8hhCClnzTPHwiT79x X-Received: by 2002:a17:902:8a82:: with SMTP id p2-v6mr6176192plo.91.1524144231958; Thu, 19 Apr 2018 06:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524144231; cv=none; d=google.com; s=arc-20160816; b=akaTWyOC2FIoCEPbmXCU5n1bW6qvgHuToyqvNhxCJ1rRZHZF5sZK6VLHnQnPQbQaJA m3YENJ85BRK0gGu6ITc+XLsfv9WP1ILZpQMGz/WT5C6FrA7J+xYML1Z/GtJkp/HO51Tv 1PIffWbZGjxIn+3RAOMSgl9H/dttkQWGbScPRrmF4fGf2A5Kr/4Z/ocj+2/mP+8FGd1h z7Pz06Opsi4AvTCv50vuyyvOk9eCpkGBgJKSrKeUZzU0k6LYAYAEnsupzrdnU1dc7Ivp Q69pRmPuuW3s7YZO/Q86nnJzerSmrvc4Coi7sh5+bZ/hV9OHu52ZXdiMTQwR+xkaudXO qQkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=/CNHFzbaWehySJh7ac0QM3nqlTDGV9te+V/3+mQBU2I=; b=1CVVU6eQp4OJsBb3+jgtSnx2MzRXN7+B6+9CiSZTORnBsB+u41Tm8uBhPwJYbnu808 HF8Glt4oomuBookGOX767PFrjge942cHQRIMWMfJNphLUQ0y5HLWUPnXM5PGmtnsjCBV UmEIJI8z/IVUPI59/RWIyQmOKLhmzkYNrxKXtg/JPy7bHJqB4/bNRN8JJ9JdUnoePaCP GBTzyu4Yfa1aEiGJqHgfDZAdq62I6q4cgT1K9jOXQbXxmz/xDe1GBoP15TRrq7ZOdKRO gPkJtYGug18b90AtNuJRDGm3K0+IFqE9F6xDvmAvK+M+qzjuqP1/aWNqjoWUjIps9Zbv 3zdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eBHZX4rp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si2999470pgc.366.2018.04.19.06.23.38; Thu, 19 Apr 2018 06:23:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eBHZX4rp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752530AbeDSNUE (ORCPT + 99 others); Thu, 19 Apr 2018 09:20:04 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:42814 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169AbeDSNUC (ORCPT ); Thu, 19 Apr 2018 09:20:02 -0400 Received: by mail-pf0-f193.google.com with SMTP id o16so2626169pfk.9 for ; Thu, 19 Apr 2018 06:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=/CNHFzbaWehySJh7ac0QM3nqlTDGV9te+V/3+mQBU2I=; b=eBHZX4rpQES1+hdYW+bRzj1RJReiS9gMNGORcgdyydoRpIL8kPvG9yWLIkL08Q4wy3 bipyzKWqZY4lGCW3T7F0LVj6lVXZ9bewWJ12mjuuEEr+n4uqsU+MceNZyRRdHf1tJkcj n+Aqbpmt4YR7gaL0GinsKXWzvWmZ5kiCE8HhWi0mWCPY70B37M2CUsumeh2DnyRB9h4t YJtcRTop6E6mNqRxnwtSQL3FmWvo8dVyHvr82ee57TYuiEhB1Hoh3ypkEnGw/HirhMXK ftwM3Al0/nl2xxJNdEMeJR1dJlvbgt0PqRdWMNG8UgEBdB5O3GyDkCRNnhyhjGAnc3Sc m6lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=/CNHFzbaWehySJh7ac0QM3nqlTDGV9te+V/3+mQBU2I=; b=h1AN7U30uGTrl2gQhrxNOx8ls7V3gHUePqBOjUJKF33yKs0rRU9k2TXHJC9hGV25mr fy0XzeiSGAj1+N/RgofIZq92jriqinCH7swSxSbDQaSarzlh9/U426RARKFgjVie3KdJ zhOqfqp54fVH6HwFA52LOkuXfVhuHPzct2NkZnWMgiHAaGzENEx1k6ufJ8u8Fpvw80Sp pgSVvM/De5JrA8RKGlx3Lp/VHfN1YjKZKXax4JdD/EjXAOqNz3/OzEylYvRHIjDiWkh3 SN+0m7HEhtPPtfEcRT1eyc8roum4jnLxcF4fxUOD1/ePaWlyeWfqlDptNz1+FBaLODss JcOg== X-Gm-Message-State: ALQs6tC9UFKdafhM+mtw1J6OVoc2P9i5b1vVHp4+Vn3Q5gJ+T8NGaQ3P q32kH2nnS1X1b221jTeNvcgAfA== X-Received: by 10.98.198.195 with SMTP id x64mr5789038pfk.11.1524144001926; Thu, 19 Apr 2018 06:20:01 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id e87sm7863891pfd.136.2018.04.19.06.20.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:20:01 -0700 (PDT) From: Greentime Hu X-Google-Original-From: Greentime Hu To: linux-kernel@vger.kernel.org, arnd@arndb.de, greentime@andestech.com, green.hu@gmail.com, private@roeck-us.net Subject: [PATCH 1/9] nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined issue. Date: Thu, 19 Apr 2018 21:18:07 +0800 Message-Id: <347705ade75b5901537034561fd67311b1260358.1524143428.git.greentime@andestech.com> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We can use the generic lib to fix these error because the symbol of libgcc in toolchain is not exported. ERROR: "__ucmpdi2" [fs/xfs/xfs.ko] undefined! ERROR: "__ashrdi3" [fs/xfs/xfs.ko] undefined! ERROR: "__lshrdi3" [fs/xfs/xfs.ko] undefined! ERROR: "__ashldi3" [fs/ntfs/ntfs.ko] undefined! ... Signed-off-by: Greentime Hu --- arch/nds32/Kconfig | 6 ++++++ arch/nds32/Makefile | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/nds32/Kconfig b/arch/nds32/Kconfig index 249f38d3388f..98e05f997f91 100644 --- a/arch/nds32/Kconfig +++ b/arch/nds32/Kconfig @@ -9,6 +9,12 @@ config NDS32 select CLKSRC_MMIO select CLONE_BACKWARDS select COMMON_CLK + select GENERIC_ASHLDI3 + select GENERIC_ASHRDI3 + select GENERIC_LSHRDI3 + select GENERIC_CMPDI2 + select GENERIC_MULDI3 + select GENERIC_UCMPDI2 select GENERIC_ATOMIC64 select GENERIC_CPU_DEVICES select GENERIC_CLOCKEVENTS diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile index 91f933d5a962..20edf34e70ce 100644 --- a/arch/nds32/Makefile +++ b/arch/nds32/Makefile @@ -23,9 +23,6 @@ export TEXTADDR # If we have a machine-specific directory, then include it in the build. core-y += arch/nds32/kernel/ arch/nds32/mm/ libs-y += arch/nds32/lib/ -LIBGCC_PATH := \ - $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name) -libs-y += $(LIBGCC_PATH) ifneq '$(CONFIG_NDS32_BUILTIN_DTB)' '""' BUILTIN_DTB := y -- 1.9.5