# SPDX-License-Identifier: GPL-2.0 GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin) ifeq ($(PLUGINCC),$(HOSTCC)) HOSTLIBS := hostlibs HOST_EXTRACFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu99 -ggdb export HOST_EXTRACFLAGS else HOSTLIBS := hostcxxlibs HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 -fno-rtti HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable HOST_EXTRACXXFLAGS += -Wno-format-diag export HOST_EXTRACXXFLAGS endif ifneq ($(CFLAGS_KCOV), $(SANCOV_PLUGIN)) GCC_PLUGIN := $(filter-out $(SANCOV_PLUGIN), $(GCC_PLUGIN)) endif export HOSTLIBS $(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h quiet_cmd_create_randomize_layout_seed = GENSEED $@ cmd_create_randomize_layout_seed = \ $(CONFIG_SHELL) $(srctree)/$(src)/gen-random-seed.sh $@ $(objtree)/include/generated/randomize_layout_hash.h $(objtree)/$(obj)/randomize_layout_seed.h: FORCE $(call if_changed,create_randomize_layout_seed) targets = randomize_layout_seed.h randomize_layout_hash.h $(HOSTLIBS)-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p))) always := $($(HOSTLIBS)-y) $(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o)) subdir-y := $(GCC_PLUGIN_SUBDIR) subdir- += $(GCC_PLUGIN_SUBDIR) clean-files += *.so
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.gitignore | File | 24 B | 0644 |
|
Makefile | File | 1.36 KB | 0644 |
|
cyc_complexity_plugin.c | File | 1.73 KB | 0644 |
|
gcc-common.h | File | 23.73 KB | 0644 |
|
gcc-generate-gimple-pass.h | File | 4.08 KB | 0644 |
|
gcc-generate-ipa-pass.h | File | 7.39 KB | 0644 |
|
gcc-generate-rtl-pass.h | File | 4.06 KB | 0644 |
|
gcc-generate-simple_ipa-pass.h | File | 4.1 KB | 0644 |
|
gen-random-seed.sh | File | 305 B | 0644 |
|
latent_entropy_plugin.c | File | 16.96 KB | 0644 |
|
randomize_layout_plugin.c | File | 26.38 KB | 0644 |
|
sancov_plugin.c | File | 3.85 KB | 0644 |
|
structleak_plugin.c | File | 6.99 KB | 0644 |
|