grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/5] loongarch: Disable relaxation for grub


From: Xiaotian Wu
Subject: [PATCH v3 0/5] loongarch: Disable relaxation for grub
Date: Tue, 13 Jun 2023 17:06:30 +0800

Because the binutils of the loongarch architecture adds relaxation support [1],
the next version of binutils will not be able to build grub.

So we use the -mno-relax cflags to disable gcc to generate relaxation
relocations to enhance the compatibility of grub.

[1]: 
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=56576f4a722b7398d35802ecf7d4185c27d6d69b

v2->v3:
- Use the -mno-relax cflags for gcc

v1->v2:
- split patch
- drop cast code

Xiaotian Wu (5):
  Use the correct format specifier for formatted output
  loongarch: Optimize code using pc variable
  loongarch: Rename function names
  loongarch: Add ELF relocation types documentation and comments
  loongarch: Use the -mno-relax cflags for gcc

 configure.ac                           | 12 ++++++++++
 grub-core/kern/arm64/dl_helper.c       |  4 ++--
 grub-core/kern/loongarch64/dl.c        |  4 ++--
 grub-core/kern/loongarch64/dl_helper.c | 33 ++++++++++++++++++++++----
 include/grub/loongarch64/reloc.h       |  4 ++--
 util/grub-mkimagexx.c                  |  6 ++---
 6 files changed, 50 insertions(+), 13 deletions(-)

-- 
2.40.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]