nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined...
authorGreentime Hu <greentime@andestech.com>
Thu, 19 Apr 2018 03:06:31 +0000 (11:06 +0800)
committerGreentime Hu <greentime@andestech.com>
Wed, 23 May 2018 05:26:20 +0000 (13:26 +0800)
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 <greentime@andestech.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/nds32/Kconfig
arch/nds32/Makefile

index 249f38d3388f2007a077bc1c0f52c2f5a9bc3e71..98e05f997f91b5048070984e4cb63bf08e0344e5 100644 (file)
@@ -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
index 91f933d5a962aee31c3e4fcad3a7bd9396806785..20edf34e70ce7fb4cab2823c63ed2e25317846f2 100644 (file)
@@ -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