aboutsummaryrefslogtreecommitdiffstats
path: root/chapter10
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-08-10 11:45:11 +0800
committerXi Ruoyao <xry111@xry111.site>2023-08-10 13:49:10 +0800
commitc4b61b12dfb9305234a27a3401a9a4f461bcf200 (patch)
treeec3499677c5106b0e567305c3cc8eb62b197825e /chapter10
parent2485dc3a99be2cd7c638f5fcdf3bff596f63536e (diff)
loongarch: kernel: Disable relaxation for building a module
Link: https://git.kernel.org/torvalds/c/03c53eb90c0c
Diffstat (limited to 'chapter10')
-rw-r--r--chapter10/kernel.xml8
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 &gt;&gt; arch/loongarch/Makefile &lt;&lt; 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>