X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arch%2Friscv%2Flib%2FMakefile;h=023d78f20960d7e1c9f34b41a4b4f2917781ede4;hb=0f8a750f8d23d408cd26d32a7e874617e780f59a;hp=25d5c9664e57e4f20e7c0c36ef47c1e1d096ac1c;hpb=c19798af2e66d9d3eb1060873bb435ea8bf4ad2e;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile index 25d5c96..023d78f 100644 --- a/arch/riscv/lib/Makefile +++ b/arch/riscv/lib/Makefile @@ -1,9 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-only lib-y += delay.o -lib-y += memcpy.o lib-y += memset.o lib-y += memmove.o lib-$(CONFIG_MMU) += uaccess.o lib-$(CONFIG_64BIT) += tishift.o +lib-y += string.o + +# string.o implements standard library functions like memset/memcpy etc. +# Use -ffreestanding to ensure that the compiler does not try to "optimize" +# them into calls to themselves. +CFLAGS_string.o := -ffreestanding obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o