我是linux设备驱动程序开发的新手。我正在尝试编写一个simple hello world module,它将显示在我试图将hello_world模块插入到内核中的系统上运行的内核版本。我使用version.h中的LINUX_VERSION_CODE获取linux版本并构建模块。有没有人可以帮我找到要插入ko的本地机器的linux版本,而不是找到构建模块的内核版本
/x86_64-suse-linux/bin/ld: obj/Release/main.o: warning: relocation against `_Znwm@@GLIBCXX_3.4' in read-only/x86_64-suse-linux/bin/ld: obj/Release/main.o: relocation R_X86_64_PC32 against symbol `_Znwm@@GLIBCX
当我用-static-libstdc++编译时,编译的二进制文件使用UNIX - GNU ABI,但是我需要使用UNIX - System V ABI获取二进制文件。/gcc-7.1.0/configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=/usr/local/gcc-7.1 --enable-checking=<e