i have a problem with GCC PLUGINS on my news kernel. I prepared a custom linux kernel to harden my future compilation, but i cannot activate the following options :
CONFIG_GCC_PLUGINS
CONFIG_GCC_PLUGIN_RANDSTRUCT
CONFIG_GCC_PLUGIN_LATENT_ENTROPY
CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE
CONFIG_GCC_PLUGIN_STACKLEAK
CONFIG_STACKLEAK_METRICS
CONFIG_STACKLEAK_RUNTIME_DISABLE
My kernel version is 5.5.0 && my gcc version is 8.3.0.
After a little research into the kernel sources, GCC should be in the following section:
│ Symbol: GCC_PLUGINS [=n] │
│ Type : bool │
│ Prompt: GCC plugins │
│ Location: │
│ (1) -> General architecture-dependent options │
│ Defined at scripts/gcc-plugins/Kconfig:17 │
│ Depends on: HAVE_GCC_PLUGINS [=y] && PLUGIN_HOSTCC [=]!=
When I go to the indicated section : "General architecture-dependent options" , I can't find GCC
[*] Optimize very unlikely/likely branches │ │
[ ] Static key selftest │ │
[*] Stack Protector buffer overflow detection │ │
[*] Strong Stack Protector │ │
(32) Number of bits to use for ASLR of mmap base address │ │
[ ] Provide system calls for 32-bit time_t │ │
[*] Use a virtually-mapped stack │ │
GCOV-based kernel profiling ----
Is it possible to have an opinion on the subject please?