Re: [PATCH v3 5/5] loongarch: Use the -mno-relax cflags for gcc

2023-06-15 Thread Daniel Kiper
On Thu, Jun 15, 2023 at 10:04:23AM +0800, Xiaotian Wu wrote: > 在 2023-06-13星期二的 20:09 +0800,Xi Ruoyao via Grub-devel写道: > > On Tue, 2023-06-13 at 13:39 +0200, Daniel Kiper wrote: > > > On Tue, Jun 13, 2023 at 05:06:35PM +0800, Xiaotian Wu wrote: > > > > Because the binutils of the loongarch archite

Re: [PATCH v3 5/5] loongarch: Use the -mno-relax cflags for gcc

2023-06-14 Thread Xiaotian Wu
在 2023-06-13星期二的 20:09 +0800,Xi Ruoyao via Grub-devel写道: > On Tue, 2023-06-13 at 13:39 +0200, Daniel Kiper wrote: > > On Tue, Jun 13, 2023 at 05:06:35PM +0800, Xiaotian Wu wrote: > > > Because the binutils of the loongarch architecture adds > > > relaxation > > > support [1], > > > the next version

Re: [PATCH v3 5/5] loongarch: Use the -mno-relax cflags for gcc

2023-06-13 Thread Xi Ruoyao via Grub-devel
On Tue, 2023-06-13 at 13:39 +0200, Daniel Kiper wrote: > On Tue, Jun 13, 2023 at 05:06:35PM +0800, Xiaotian Wu wrote: > > 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-

Re: [PATCH v3 5/5] loongarch: Use the -mno-relax cflags for gcc

2023-06-13 Thread Daniel Kiper
On Tue, Jun 13, 2023 at 05:06:35PM +0800, Xiaotian Wu wrote: > 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

Re: [PATCH v3 5/5] loongarch: Use the -mno-relax cflags for gcc

2023-06-13 Thread WANG Xuerui
On 2023/6/13 17:06, Xiaotian Wu wrote: Because the binutils of the loongarch architecture adds relaxation support [1], the next version of binutils will not be able to build grub. We can simplify the sentence a bit, like "A working grub cannot be built with upcoming binutils and gcc, because

[PATCH v3 5/5] loongarch: Use the -mno-relax cflags for gcc

2023-06-13 Thread Xiaotian Wu
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=