testsuites: how to match something or no_this_line

Alan Modra amodra@gmail.com
Tue May 9 08:32:56 GMT 2023


On Tue, May 09, 2023 at 09:48:26AM +0200, Andreas Schwab via Binutils wrote:
> On Mai 09 2023, YunQiang Su via Binutils wrote:
> 
> > An example is like this: <gas/testsuite/gas/all/fwdexp.d>
> > The MIPS n64 has different relocation type like:
> >
> > RELOCATION RECORDS FOR [.text]:
> > OFFSET           TYPE              VALUE
> > 0000000000000000 R_MIPS_64         .data-0x0000000000000008
> > 0000000000000000 R_MIPS_NONE       *ABS*-0x0000000000000008
> > 0000000000000000 R_MIPS_NONE       *ABS*-0x0000000000000008
> >
> > While normally, for other ports, it like
> >
> > RELOCATION RECORDS FOR [.text]:
> > OFFSET   TYPE              VALUE
> > 00000000 R_MIPS_32         .data
> >
> > Maybe I can sed out R_MIPS_NONE, but I don't know how to do so either.
> 
> It's really a bug in the mips backend, nothing should ever emit R_*_NONE
> relocations.

No, see include/elf/mips.h Elf64_Mips_External_Rel.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list