From 5f54f8e4dd1552d40433d326b7a2ceab2e52a37c Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 27 Aug 2024 12:50:24 +0800 Subject: [PATCH] loongarch: Revert "Binutils: Apply an upstream fix for LTO" This reverts commit 8b8b87bcb25d09789b223cd348a0aa1c642a2ffc. The change is upstreamed in 2.43. --- chapter08/binutils.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/chapter08/binutils.xml b/chapter08/binutils.xml index e617c114c..8f0178b3e 100644 --- a/chapter08/binutils.xml +++ b/chapter08/binutils.xml @@ -41,17 +41,6 @@ Installation of Binutils - - First, fix an issue causing some packages fail to build with - Link Time Optimization (LTO). Note that some BLFS packages will be - built with LTO enabled by default even if you don't enable it - explicitly: - -for i in LO12 HI20 ADD; do - sed -e '/DESC64_HI12/a\ case BFD_RELOC_LARCH_TLS_LE_'${i}'_R:' \ - -i gas/config/tc-loongarch.c -done - The Binutils documentation recommends building Binutils in a dedicated build directory: