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

Joseph Myers joseph@codesourcery.com
Tue Aug 16 15:23:32 GMT 2022


On Tue, 16 Aug 2022, Xi Ruoyao via Libc-alpha wrote:

> 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.

Requiring unreleased versions is bad for users and distributors; it would 
be better to backport whatever binutils patches are required to 2.39 
branch (assuming they are LoongArch-specific patches, rather than changes 
to architecture-independent parts of binutils that are risky for other 
architectures) and add configure tests to work around any that don't get 
backported.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list