Received: by 10.192.165.148 with SMTP id m20csp273340imm; Fri, 20 Apr 2018 06:37:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+0Sr22K8yT/rto9fZe8GotnZneQPyL0/TBJsmnwMnLpviCUMtWaxGxz54Hk5keByOiVt3W X-Received: by 10.98.202.10 with SMTP id n10mr9771700pfg.220.1524231426920; Fri, 20 Apr 2018 06:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524231426; cv=none; d=google.com; s=arc-20160816; b=t0JyyDuhS3qQOs6WH62i6j/x/a3CAgvLeVSIYtcYrTl0NP7BjI/mw+MkbDisPN7YVB TMagYX5H4ifx3q7zvyVnl+2R+QyUbw+/S9GUerwxOwIP8z60ERt0Gw7mSqD6fTnI7Cvw 8rGUE1Azlt+bhPJMffzXpaa8xeIhRhaa/Dz2ET+5WZvXMGKGkyNMHZS4lGyyVoJfkTmH L4PlML/8BJc9sbCR+LkQnT8Ufb+5jJFTyqPLd2iOK9cbXZbp3uubU4RA44h/GuPQfglB 6mlp6jRXu3kBiT/5HKMTK6HJo4wvyE8gdmdQytkyzEHfpM+cw+d5QFMqm6fAT2vs4rrG 3q7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=SrbW2e60uxTiQlNSdKkZv0ZcpBVXk2u8I90kCWrmyOw=; b=Q19ND2/XeU7yG0Bl2DdT3Ax1BKJ6efW1LZZ3xrJ324/haMFpGRZc/5Jq1VL1/LFyYx IKs+9UH3KtfiymUd7f6z0E1w3+qBMmL7Gh0tJYjC7KSz88POdi2elvrpmhvNqpn+PeHr 2saRSErNweKYVJ1F9KBIKoiyVx0YXQ99oMw4rWNA0p/7LqxqrhOSOVRZmNuY1EDd4CyZ CQt8RB5LAyZVc0h3Gostx7uzm/zfn/UZpkVvu+QFVpjngwjDXggLQKsAphlvjD6zqXMG G9lpiOCKG48JU9fNimVPLxsrq2vCN98r0Fg7dteeb6Sy4Mo12s1BwZk/RHS7YwO33YUe jUuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W7Ig1e08; 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 n65si4871126pga.90.2018.04.20.06.36.52; Fri, 20 Apr 2018 06:37:06 -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=W7Ig1e08; 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 S1755102AbeDTNdF (ORCPT + 99 others); Fri, 20 Apr 2018 09:33:05 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:45121 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754762AbeDTNdC (ORCPT ); Fri, 20 Apr 2018 09:33:02 -0400 Received: by mail-pl0-f66.google.com with SMTP id w22-v6so708269pll.12 for ; Fri, 20 Apr 2018 06:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:in-reply-to :references; bh=SrbW2e60uxTiQlNSdKkZv0ZcpBVXk2u8I90kCWrmyOw=; b=W7Ig1e08SKsK2Wt0tJY3kYLEabTCFAwDw8xs1Td73dU0pSNsGXnvWX32Q+q4tZ+kfd ipjY9yfOw/j7IkqQ75/k8XJSBJYd1aHZKHLLytoJBPPo/An0wccBIfPGv3FIIZyVmHRa c0EyQ+f4CCK519cs6cpo7Tj3HnlkzKnE1BlN2ZCWPCAZuvX/QPynLMtzde6dGW2sizS0 5Hjx9GdHToycyPBlUECFsB5d7q3Hmi+ObDPTpxy05GAnbMRJe8AYs9w3nmWeXQuvEeN/ runFEcAaljwjchnq25dLMlFhq5Kq2Exc38mp7OdKQhdm8Kbd28M864AWhXj6lGpxswh8 5hGQ== 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:in-reply-to :references:in-reply-to:references; bh=SrbW2e60uxTiQlNSdKkZv0ZcpBVXk2u8I90kCWrmyOw=; b=V07/hk6Y+VF6smmBZM4wCf3Qrh0oQuoCREqWmLdBTMS2ajwQjSDTLvs7KxVsRihD1g d2g4M+lCF63ffyV0gdVC9mwu+I59fqBSzyyA6qCouEPKAf3dWjACJya5rlGJNkea5894 t3HvBdQ8CfOaBERT88FoKTZV8ru34tgQ+2LzOh/MgrU1vQ3qeO4oGQBeFCLWNIbQGAnU 8rC1d0YbuvYJwtmkTnVWwbuxkoTQVX/DXR0lPanzKV60Pcl5iQMXotfzYOd3K/iJs5mA Crl+PciiBAsCrJFz89JnRTTnxi5jb/FmTVcyt7mJv5XGbif/dm6TKF/tgjwSmQUctrZK ir2g== X-Gm-Message-State: ALQs6tD2O69xc4nKZxL2fPYuJE7kn9bFJvQz8Vlz9yPhO0EChVViQJuT jFWnHy7PItsJcSFaX4DmKl5Fyg== X-Received: by 2002:a17:902:4003:: with SMTP id b3-v6mr10055059pld.15.1524231180988; Fri, 20 Apr 2018 06:33:00 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id g11sm9621319pgu.56.2018.04.20.06.32.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 06:33:00 -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, hch@infradead.org, vincentc@andestech.com, nickhu@andestech.com Subject: [PATCH v2 1/9] nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined issue. Date: Fri, 20 Apr 2018 21:31:07 +0800 Message-Id: <2bfdc9653521e88140a366af3b6f91394c1adfef.1524229038.git.greentime@andestech.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: References: In-Reply-To: References: 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 Acked-by: Arnd Bergmann --- 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