X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=a7bc91cbac8fcb1f306185fb08362693508ef44d;hb=ba3823ca6a052d1aea2c7f7bf8ed6377f5f180e3;hp=b668725a2a62a175f471b68bc035840f60dae5de;hpb=2227e5b21aec6c5f7f6491352f0c19fd02d19418;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/Makefile b/Makefile index b668725..a7bc91c 100644 --- a/Makefile +++ b/Makefile @@ -862,6 +862,12 @@ ifdef CONFIG_LIVEPATCH KBUILD_CFLAGS += $(call cc-option, -flive-patching=inline-clone) endif +ifdef CONFIG_SHADOW_CALL_STACK +CC_FLAGS_SCS := -fsanitize=shadow-call-stack +KBUILD_CFLAGS += $(CC_FLAGS_SCS) +export CC_FLAGS_SCS +endif + # arch Makefile may override CC so keep this after arch Makefile is included NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)