Messages in this thread | | | Subject | Re: [PATCH v2 0/4] LoongArch: Support new relocation types | From | Xi Ruoyao <> | Date | Thu, 28 Jul 2022 22:05:34 +0800 |
| |
On Thu, 2022-07-28 at 20:33 +0800, Huacai Chen wrote: > Hi, Arnd,
/* snip */
> Could you update the cross-compilers here [1] to make this series be > possible upstream in the 5.20 cycle? Or we can only do that until new > binutils/gcc be released?
Hi Huacai and Arnd,
The old toolchain will use
R_LARCH_PUSH_PCREL _GLOBAL_OFFSET_TABLE_ R_LARCH_PUSH_GPREL symbol R_LARCH_ADD
to perform a PC-relative addressing for a GOT entry, and the new toolchain will use R_LARCH_GOT_PC_{HI20,LO12}. Both way are supported by this series.
I've tested the V3 patch (V2 + suggestions from Youling, I'll sent it later after rewording the third patch) with both my system toolchain (no new reloc support) and a toolchain built from binutils & gcc master. Both of the build works fine.
So a toolchain update seems not immediately required. -- Xi Ruoyao <xry111@xry111.site> School of Aerospace Science and Technology, Xidian University
| |