Re: [PATCH v6] LoongArch: add addr_global attribute

2022-08-17 Thread Xi Ruoyao via Gcc-patches
On Thu, 2022-08-18 at 11:54 +0800, Lulu Cheng wrote: > Sorry, I have already added the code of cmodel=extreme, and I am sorting out > the code and test cases. > I still insist on using __attribute__(model(extreme)) to describe the > variables of precpu. > I will send my patch today. Ok, I can li

Re: [PATCH v6] LoongArch: add addr_global attribute

2022-08-17 Thread Lulu Cheng
在 2022/8/18 上午10:56, Hans-Peter Nilsson 写道: On Mon, 15 Aug 2022, Xi Ruoyao via Gcc-patches wrote: Can we make a final solution to this soon? Now the merge window of Linux 6.0 is closed and we have two Linux kernel releases not possible to be built with Binutils or GCC with new relocation typ

Re: [PATCH v6] LoongArch: add addr_global attribute

2022-08-17 Thread Hans-Peter Nilsson
On Mon, 15 Aug 2022, Xi Ruoyao via Gcc-patches wrote: > Can we make a final solution to this soon? Now the merge window of > Linux 6.0 is closed and we have two Linux kernel releases not possible > to be built with Binutils or GCC with new relocation types. This is > just ugly... > > On Fri, 202

Re: [PATCH v6] LoongArch: add addr_global attribute

2022-08-15 Thread Xi Ruoyao via Gcc-patches
Can we make a final solution to this soon? Now the merge window of Linux 6.0 is closed and we have two Linux kernel releases not possible to be built with Binutils or GCC with new relocation types. This is just ugly... On Fri, 2022-08-12 at 17:17 +0800, Xi Ruoyao via Gcc-patches wrote: > v5 -> v

[PATCH v6] LoongArch: add addr_global attribute

2022-08-12 Thread Xi Ruoyao via Gcc-patches
v5 -> v6: * still use "addr_global" as we don't have a better name. * add a test case with -mno-explicit-relocs. -- >8 -- A linker script and/or a section attribute may locate a local object in some way unexpected by the code model, leading to a link failure. This happens when the Linux kernel