aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/vdso/Makefile
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-05-03 13:55:01 -0700
committerKees Cook <keescook@chromium.org>2022-05-08 01:33:06 -0700
commit613f4b3ed7902d1dbbc6ade6401e452a63dfbc21 (patch)
treef8a8d15ab7e7ae882472e52960c7cc6f2ad3d235 /arch/arm/vdso/Makefile
parentrandstruct: Reorganize Kconfigs and attribute macros (diff)
downloadlinux-dev-613f4b3ed7902d1dbbc6ade6401e452a63dfbc21.tar.xz
linux-dev-613f4b3ed7902d1dbbc6ade6401e452a63dfbc21.zip
randstruct: Split randstruct Makefile and CFLAGS
To enable the new Clang randstruct implementation[1], move randstruct into its own Makefile and split the CFLAGS from GCC_PLUGINS_CFLAGS into RANDSTRUCT_CFLAGS. [1] https://reviews.llvm.org/D121556 Cc: linux-hardening@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20220503205503.3054173-5-keescook@chromium.org
Diffstat (limited to 'arch/arm/vdso/Makefile')
-rw-r--r--arch/arm/vdso/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile
index ec52b776f926..8ca1c9f262a2 100644
--- a/arch/arm/vdso/Makefile
+++ b/arch/arm/vdso/Makefile
@@ -28,7 +28,7 @@ CPPFLAGS_vdso.lds += -P -C -U$(ARCH)
CFLAGS_REMOVE_vdso.o = -pg
# Force -O2 to avoid libgcc dependencies
-CFLAGS_REMOVE_vgettimeofday.o = -pg -Os $(GCC_PLUGINS_CFLAGS)
+CFLAGS_REMOVE_vgettimeofday.o = -pg -Os $(RANDSTRUCT_CFLAGS) $(GCC_PLUGINS_CFLAGS)
ifeq ($(c-gettimeofday-y),)
CFLAGS_vgettimeofday.o = -O2
else