1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 4# 5 6lib-y := strchr-700.o strcpy-700.o strlen.o memcmp.o 7 8lib-$(CONFIG_ISA_ARCOMPACT) += memcpy-700.o memset.o strcmp.o 9lib-$(CONFIG_ISA_ARCV2) += memset-archs.o strcmp-archs.o 10 11ifdef CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS 12lib-$(CONFIG_ISA_ARCV2) +=memcpy-archs-unaligned.o 13else 14lib-$(CONFIG_ISA_ARCV2) +=memcpy-archs.o 15endif 16 17# libgcc can contain complex floating-point debug types unsupported by BTF. 18# Strip only the debug information from a local copy of the selected archive. 19always-$(CONFIG_DEBUG_INFO_BTF) += libgcc.a 20OBJCOPYFLAGS_libgcc.a := --strip-debug 21 22$(obj)/libgcc.a: $(LIBGCC) FORCE 23 $(call if_changed,objcopy) 24