testsuites: how to match something or no_this_line

YunQiang Su wzssyqa@gmail.com
Tue May 9 08:01:11 GMT 2023


Andreas Schwab <schwab@suse.de> 于2023年5月9日周二 15:48写道:
>
> 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.
>

In fact it is a "feature" of MIPS's ELF64.
It is called chained relocations or relocation chain.

> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."



-- 
YunQiang Su


More information about the Binutils mailing list