Automate make rule generation for gcc plugin objects
Subsystems (2)
PATCH 1/1 Automate make rule generation for gcc plugin objects
Reported-by PaX Team <[email protected]>
Signed-off-by Emese Revfy <[email protected]>
--- scripts/gcc-plugins/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
scripts/gcc-plugins/Makefile +1 -4
@@ -20,9 +20,6 @@ endif $(HOSTLIBS)-y := $(GCC_PLUGIN) always := $($(HOSTLIBS)-y) - -cyc_complexity_plugin-objs := cyc_complexity_plugin.o -sancov_plugin-objs := sancov_plugin.o -latent_entropy_plugin-objs := latent_entropy_plugin.o +$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o)) clean-files += *.so
Signature · 1 line
2.8.1
Quoted 3 lines · Emese Revfy
Reported-by PaX Team <[email protected]>Signed-off-by Emese Revfy <[email protected]>
I've added a commit message body and applied this to my tree.
-Kees
Quoted 21 lines
--- scripts/gcc-plugins/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)scripts/gcc-plugins/Makefile +1
-5@@ -20,9 +20,6 @@ endif $(HOSTLIBS)-y := $(GCC_PLUGIN) always := $($(HOSTLIBS)-y) - -cyc_complexity_plugin-objs := cyc_complexity_plugin.o -sancov_plugin-objs := sancov_plugin.o -latent_entropy_plugin-objs := latent_entropy_plugin.o +$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o)) clean-files += *.so --2.8.1
Signature · 2 lines
Kees Cook Chrome OS & Brillo Security