커널 모듈용 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

나는 이것이 나를 놀라게 했다. 누구든지 나에게 말해 줄 수 있는 지식이 있습니까?

관련 정보