Quantcast
Channel: Active questions tagged kernel-modules - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 1186

How to rebuild gcc plugins for kernel module

$
0
0

I've been working on the gcc plugins included in the kernel headers. I have a Manjaro Linux distribution, and I'm trying to get the system to rebuild the gcc plugins. Unfortunately, I can't seem to make that happen:

[nathan@nathanb-manjario scripts]$ sudo touch gcc-plugins/structleak_plugin.c
[nathan@nathanb-manjario scripts]$ sudo make gcc-plugins
make: Nothing to be done for 'gcc-plugins'.

This happens even if I remove the plugin .so entirely.

[nathan@nathanb-manjario scripts]$ sudo rm gcc-plugins/structleak_plugin.so
[nathan@nathanb-manjario scripts]$ sudo make gcc-plugins
make: Nothing to be done for 'gcc-plugins'.

I've verified in the kernel config that this plugin is enabled:

[nathan@nathanb-manjario build]$ grep "GCC_PLUGIN" .config
CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_GCC_PLUGINS=y
# CONFIG_GCC_PLUGIN_CYC_COMPLEXITY is not set
# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set
# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set
CONFIG_GCC_PLUGIN_STRUCTLEAK=y
# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set
# CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set
CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL=y
# CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE is not set
# CONFIG_GCC_PLUGIN_STACKLEAK is not set

This is blowing my mind. Anyone have any knowledge to drop my way?


Viewing all articles
Browse latest Browse all 1186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>