diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-08-10 11:45:11 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-08-10 13:49:10 +0800 |
commit | c4b61b12dfb9305234a27a3401a9a4f461bcf200 (patch) | |
tree | ec3499677c5106b0e567305c3cc8eb62b197825e | |
parent | 2485dc3a99be2cd7c638f5fcdf3bff596f63536e (diff) |
loongarch: kernel: Disable relaxation for building a module
Link: https://git.kernel.org/torvalds/c/03c53eb90c0c
-rw-r--r-- | chapter10/kernel.xml | 8 |
1 files changed, 8 insertions, 0 deletions
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.</para> + <para>Fix an issue causing all kernel modules built with Binutils-2.41 + or later not loadable:</para> + +<screen><userinput remap="pre">cat >> arch/loongarch/Makefile << EOF +<literal>KBUILD_AFLAGS_MODULE += -Wa,-mno-relax +KBUILD_CFLAGS_MODULE += -Wa,-mno-relax</literal> +EOF</userinput></screen> + <para>Compile the kernel image and modules:</para> <screen><userinput remap="make">make</userinput></screen> |