Changeset 2a71a83 for chapter10


Ignore:
Timestamp:
02/06/2024 09:16:58 PM (8 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/loongarch, xry111/loongarch-12.1, xry111/loongarch-12.2
Children:
4ac095c7
Parents:
8b8b87b
Message:

loongarch: kernel: Apply an upstream fix for Binutils 2.42

Though the commit message mentions "recent Binutils and GCC trunk", I'm
99.99% sure this is only related to Binutils since the troubling
R_LARCH_RELAX/R_LARCH_ALIGN is appearing in some object files assembled
from .S files.

IMO this commit should be backported to even 6.1, but Huacai always
believe people using the latest Binutils should use the latest kernel.
And it seems Linux 6.8 won't catch LFS 12.1 package freeze, leaving me
no choice but backporting this downstream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel.xml

    r8b8b87b r2a71a83  
    295295    scratch.</para>
    296296
     297    <!-- https://git.kernel.org/torvalds/c/2772ae4d66d1 (simplified) -->
     298    <para>Now fix an issue causing the kernel fail to build with Binutils
     299    2.42 on LoongArch:</para>
     300
     301<screen><userinput remap="pre">sed -e '/case EM_LOONG/aif (r_type == 100 || r_type == 102) continue;' \
     302    -i scripts/mod/modpost.c</userinput></screen>
     303
    297304    <para>Compile the kernel image and modules:</para>
    298305
Note: See TracChangeset for help on using the changeset viewer.