Kernel: build: CONFIG_X86_X32 enabled but no binutils support

错误

arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
sed: can’t read modules.order: no such file or directory
make: *** Makefile: 1490: __modinst_pre error 2

config X86_X32

bool “x32 ABI for 64-bit mode”
depends on X86_64
—help—
Include code to run binaries for the x32 native 32-bit ABI for 64-bit processors. An x32 process gets access to the
full 64-bit register file and wide data path while leaving pointers at 32 bits for smaller memory footprint.
需要binutils版本在2.22或者更新,同时要带有elf32_x86_64的支持,来编译内核。

makefile里的校验

执行ld的命令看看是否支持。主要看这个选项是否支持 -m elf32_x86_64、

ifde

猜你喜欢

转载自blog.csdn.net/qq_36428903/article/details/125945279