Changeset 8b8b87b for chapter08


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

loongarch: Binutils: Apply an upstream fix for LTO

This issue is known to cause Mozilla packages fail to build. So fix it
just like what we did for Binutils-2.38 on x86_64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/binutils.xml

    ree8c846 r8b8b87b  
    4141  <sect2 role="installation">
    4242    <title>Installation of Binutils</title>
     43
     44    <!-- https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=029e52bac7f3a6dd8b39f7f3d298b73174da806b -->
     45    <para>First, fix an issue causing some packages fail to build with
     46    Link Time Optimization (LTO).  Note that some BLFS packages will be
     47    built with LTO enabled by default even if you don't enable it
     48    explicitly:</para>
     49
     50<screen><userinput remap="pre">for i in LO12 HI20 ADD; do
     51  sed -e '/DESC64_HI12/a\    case BFD_RELOC_LARCH_TLS_LE_'${i}'_R:' \
     52      -i gas/config/tc-loongarch.c
     53done</userinput></screen>
    4354
    4455    <para>The Binutils documentation recommends building Binutils
Note: See TracChangeset for help on using the changeset viewer.