1# SPDX-License-Identifier: GPL-2.0 2GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin) 3 4HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 -fno-rtti 5HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb 6HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable -Wno-c++11-compat 7 8$(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h 9quiet_cmd_create_randomize_layout_seed = GENSEED $@ 10cmd_create_randomize_layout_seed = \ 11 $(CONFIG_SHELL) $(srctree)/$(src)/gen-random-seed.sh $@ $(objtree)/include/generated/randomize_layout_hash.h 12$(objtree)/$(obj)/randomize_layout_seed.h: FORCE 13 $(call if_changed,create_randomize_layout_seed) 14targets = randomize_layout_seed.h randomize_layout_hash.h 15 16hostcxxlibs-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p))) 17always-y := $(hostcxxlibs-y) 18 19$(foreach p,$(hostcxxlibs-y:%.so=%),$(eval $(p)-objs := $(p).o)) 20 21clean-files += *.so 22