From 9ef0338a7bcd110dd514c96c516b581969b8082c Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 6 Dec 2023 18:30:00 +0800 Subject: [PATCH] Revert "loongarch: kernel: Disable relaxation for building a module" This reverts commit c4b61b12dfb9305234a27a3401a9a4f461bcf200. These lines has been already added into the kernel since 6.6. --- chapter10/kernel.xml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml index 809d0931a..9b418f067 100644 --- a/chapter10/kernel.xml +++ b/chapter10/kernel.xml @@ -294,14 +294,6 @@ configuration menus and create the kernel configuration from scratch. - Fix an issue causing all kernel modules built with Binutils-2.41 - or later not loadable: - -cat >> arch/loongarch/Makefile << EOF -KBUILD_AFLAGS_MODULE += -Wa,-mno-relax -KBUILD_CFLAGS_MODULE += -Wa,-mno-relax -EOF - Compile the kernel image and modules: make