[PATCH 1/1] LoongArch: Add pointer mangling support.

Xi Ruoyao xry111@xry111.site
Tue Aug 16 01:59:47 GMT 2022


On Tue, 2022-08-16 at 09:30 +0800, Xi Ruoyao via Libc-alpha wrote:
> On Mon, 2022-08-15 at 20:52 +0000, Joseph Myers wrote:
> > On Thu, 11 Aug 2022, caiyinyu wrote:
> > 
> > > Tested on LoongArch machine: gcc 13.0.0, Linux kernel 5.19.0 rc2,
> > > binutils branch master 2eb132bdfb9.
> > 
> > This appears to have broken the build-many-glibcs.py build ("Fatal
> > error: 
> > unknown reloc hint: pc_hi20").  Is that something that would be
> > fixed by 
> > using binutils 2.39 branch instead of 2.38 branch in build-many-
> > glibcs.py?
> 
> No, we must use Binutils-2.40 for new relocation types like %pc_hi20. 
> Maybe we can add a configure check to fallback to "la.pcrel"/"la.got"
> macros for Binutils <= 2.39.

Hmm... AFAIK our ld.so is already broken with Binutils <= 2.39, so
perhaps we should just claim Binutils <= 2.39 are not supported.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Libc-alpha mailing list