xref: /kernel/linux/linux-6.6/scripts/Makefile.randstruct
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/scripts/
162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_cirandstruct-cflags-y += -DRANDSTRUCT
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciifdef CONFIG_GCC_PLUGIN_RANDSTRUCT
662306a36Sopenharmony_cirandstruct-cflags-y	\
762306a36Sopenharmony_ci	+= -fplugin=$(objtree)/scripts/gcc-plugins/randomize_layout_plugin.so
862306a36Sopenharmony_cirandstruct-cflags-$(CONFIG_RANDSTRUCT_PERFORMANCE)		\
962306a36Sopenharmony_ci	+= -fplugin-arg-randomize_layout_plugin-performance-mode
1062306a36Sopenharmony_cielse
1162306a36Sopenharmony_cirandstruct-cflags-y	\
1262306a36Sopenharmony_ci	+= -frandomize-layout-seed-file=$(objtree)/scripts/basic/randstruct.seed
1362306a36Sopenharmony_ciendif
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciexport RANDSTRUCT_CFLAGS := $(randstruct-cflags-y)
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciKBUILD_CFLAGS	+= $(RANDSTRUCT_CFLAGS)
18

Indexes created Thu Nov 07 10:32:03 CST 2024