From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by sourceware.org (Postfix) with ESMTPS id 266A83858D28 for ; Wed, 21 Jun 2023 10:59:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 266A83858D28 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1687345165; bh=vXRHilBkp7PwXrJAXQL7Kz0tspBPrQvzYvTz6Tg+lmM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=MoXVlpwlAvrNg/Xxe8X7C+4uTxjwIjN6WRbGdbLI+GQ6gGkf+95MGIkGRx1lW/c+a g4156NS+8XcIjx+e3ML9N6nK3F6ASkvgQ7UrQ+b8DEJ+StvPj+jtSm6SQrGieoSWST 444OcnHk2k0H6zjNh1vZLiOsg1u5kk8utZiLzsWE= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id DCC2A66339; Wed, 21 Jun 2023 06:59:23 -0400 (EDT) Message-ID: Subject: Re: [PATCH v4 5/7] MIPS: Fix some ld testcases with compiler From: Xi Ruoyao To: YunQiang Su , Alan Modra Cc: YunQiang Su , binutils@sourceware.org, macro@orcam.me.uk, paul.hua.gm@gmail.com, jbeulich@suse.com Date: Wed, 21 Jun 2023 18:59:22 +0800 In-Reply-To: References: <20230616063412.1715024-1-yunqiang.su@cipunited.com> <20230616063412.1715024-6-yunqiang.su@cipunited.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 MIME-Version: 1.0 X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 2023-06-21 at 18:53 +0800, YunQiang Su via Binutils wrote: > YunQiang Su =E4=BA=8E2023=E5=B9=B46=E6=9C=8821=E6=97= =A5=E5=91=A8=E4=B8=89 13:05=E5=86=99=E9=81=93=EF=BC=9A > >=20 > > Alan Modra =E4=BA=8E2023=E5=B9=B46=E6=9C=8820=E6=97= =A5=E5=91=A8=E4=BA=8C 11:57=E5=86=99=E9=81=93=EF=BC=9A > > >=20 > > > On Tue, Jun 20, 2023 at 11:17:00AM +0800, YunQiang Su wrote: > > > > Alan Modra =E4=BA=8E2023=E5=B9=B46=E6=9C=8820=E6= =97=A5=E5=91=A8=E4=BA=8C 10:34=E5=86=99=E9=81=93=EF=BC=9A > > > > >=20 > > > > > On Tue, Jun 20, 2023 at 09:40:19AM +0800, YunQiang Su wrote: > > > > > > How do you build your cross toolchain? > > > > >=20 > > > > > mips64-linux-gnuabi64-gcc (GCC) 13.0.0 20220910 (experimental) wa= s > > > > > built using this configuration: > > > > > ~/src/gcc/configure \ > > > > > --with-sysroot=3D/home/gnu/mips64-linux-gnuabi64 \ > > > > > --prefix=3D/usr/local \ > > > > > --target=3Dmips64-linux-gnuabi64 \ > > > > > --enable-targets=3Dmips-linux-gnu \ > > > > > --with-mips-plt \ > > > > > --disable-nls \ > > > > > --enable-__cxa_atexit \ > > > > > --enable-initfini-array \ > > > > > --disable-libsanitizer \ > > > > > --disable-bootstrap \ > > > > > --enable-languages=3Dc,c++ > > > > >=20 > > > >=20 > > > > You have no `--enable-plugin` option here, so > > >=20 > > > That shouldn't be necessary. > > >=20 > > > > > > 9. ld-plugin/plugin.exp: xfail > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin claimfile lost symb= ol, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin claimfile replace s= ymbol, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin claimfile replace s= ymbol, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin claimfile lost symb= ol with source, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin claimfile replace s= ymbol with source, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin claimfile resolve s= ymbol with source, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin 2 with source lib, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 load plugin 2 with source, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 plugin 3 with source lib, > > > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 load plugin 3 with source. > > > >=20 > > > > won't run. > > >=20 > > > It's true they don't run for mips64-linux-gnuabi64 for reasons I have > > > not investigated, but they do for --target=3Dmips64-linux using the s= ame > > > mips64-linux-gnuabi16 compiler. > > >=20 > >=20 > > You are right. In=C2=A0 fact the real problem is that my compiler is to= o > > old (GCC 12). > >=20 >=20 > 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? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University