[PATCH v4 5/7] MIPS: Fix some ld testcases with compiler
YunQiang Su
wzssyqa@gmail.com
Wed Jun 21 11:03:00 GMT 2023
Xi Ruoyao <xry111@xry111.site> 于2023年6月21日周三 18:59写道:
>
> On Wed, 2023-06-21 at 18:53 +0800, YunQiang Su via Binutils wrote:
> > YunQiang Su <wzssyqa@gmail.com> 于2023年6月21日周三 13:05写道:
> > >
> > > Alan Modra <amodra@gmail.com> 于2023年6月20日周二 11:57写道:
> > > >
> > > > On Tue, Jun 20, 2023 at 11:17:00AM +0800, YunQiang Su wrote:
> > > > > Alan Modra <amodra@gmail.com> 于2023年6月20日周二 10:34写道:
> > > > > >
> > > > > > On Tue, Jun 20, 2023 at 09:40:19AM +0800, YunQiang Su wrote:
> > > > > > > How do you build your cross toolchain?
> > > > > >
> > > > > > mips64-linux-gnuabi64-gcc (GCC) 13.0.0 20220910 (experimental) was
> > > > > > built using this configuration:
> > > > > > ~/src/gcc/configure \
> > > > > > --with-sysroot=/home/gnu/mips64-linux-gnuabi64 \
> > > > > > --prefix=/usr/local \
> > > > > > --target=mips64-linux-gnuabi64 \
> > > > > > --enable-targets=mips-linux-gnu \
> > > > > > --with-mips-plt \
> > > > > > --disable-nls \
> > > > > > --enable-__cxa_atexit \
> > > > > > --enable-initfini-array \
> > > > > > --disable-libsanitizer \
> > > > > > --disable-bootstrap \
> > > > > > --enable-languages=c,c++
> > > > > >
> > > > >
> > > > > You have no `--enable-plugin` option here, so
> > > >
> > > > That shouldn't be necessary.
> > > >
> > > > > > > 9. ld-plugin/plugin.exp: xfail
> > > > > > > plugin claimfile lost symbol,
> > > > > > > plugin claimfile replace symbol,
> > > > > > > plugin claimfile replace symbol,
> > > > > > > plugin claimfile lost symbol with source,
> > > > > > > plugin claimfile replace symbol with source,
> > > > > > > plugin claimfile resolve symbol with source,
> > > > > > > plugin 2 with source lib,
> > > > > > > load plugin 2 with source,
> > > > > > > plugin 3 with source lib,
> > > > > > > load plugin 3 with source.
> > > > >
> > > > > won't run.
> > > >
> > > > It's true they don't run for mips64-linux-gnuabi64 for reasons I have
> > > > not investigated, but they do for --target=mips64-linux using the same
> > > > mips64-linux-gnuabi16 compiler.
> > > >
> > >
> > > You are right. In fact the real problem is that my compiler is too
> > > old (GCC 12).
> > >
> >
> > ohhh, no.
> > It's due to there is no --with-mips-plt build option for my gcc.
>
> Then should we just add -mplt to override the default for those test
> cases?
>
In fact I have no idea. I don't understand why it's support binary
with PLT only (yet).
> --
> Xi Ruoyao <xry111@xry111.site>
> School of Aerospace Science and Technology, Xidian University
--
YunQiang Su
More information about the Binutils
mailing list