カーネルモジュール用のgccプラグインを再構築する方法

カーネルモジュール用のgccプラグインを再構築する方法

カーネルヘッダファイルに含まれているgccプラグインを調べてきました。 Manjaro Linuxディストリビューションがあり、システムでgccプラグインを再構築しようとしています。残念ながら私はこれができないようです:

[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'.

Plugin.soを完全に削除しても、この現象が発生します。

[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'.

カーネル構成でプラグインが有効になっていることを確認しました。

[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

私はこれが私を驚かせた。誰でも私に教えることができる知識がありますか?

ベストアンサー1

おすすめ記事