diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml index a633f7c46..51c1d2cce 100644 --- a/chapter10/kernel.xml +++ b/chapter10/kernel.xml @@ -291,6 +291,14 @@ configuration menus and create the kernel configuration from scratch. + Fix an issue causing all kernel modules built with Binutils-2.41 + or later not loadable: + +cat >> arch/loongarch/Makefile << EOF +KBUILD_AFLAGS_MODULE += -Wa,-mno-relax +KBUILD_CFLAGS_MODULE += -Wa,-mno-relax +EOF + Compile the kernel image and modules: make