loongarch: kernel: Disable relaxation for building a module

Link: https://git.kernel.org/torvalds/c/03c53eb90c0c
This commit is contained in:
Xi Ruoyao 2023-08-10 11:45:11 +08:00
parent 2485dc3a99
commit c4b61b12df
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -291,6 +291,14 @@
configuration menus and create the kernel configuration from configuration menus and create the kernel configuration from
scratch.</para> 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> <para>Compile the kernel image and modules:</para>
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>