From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 9546E3858D32 for ; Sun, 2 Oct 2022 14:25:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9546E3858D32 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=1664720727; bh=rbX0Bgy07FsywYnhr1zGfvjT54hDGFow6op9v3TTlms=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=LGWUrY0m1GjC4kx3wI7IZXDfRxFkZ9/IObReBeFZ7nXJ8Gf5j3IYJAvYZLp59Z4+l GJtZhFnxgJxonq6h+t5rc3xEIGmyPHcMJRHAu9w2isM5HeNeiffLU1TtLKDh9yQcRX EBAa5z0Fj/aiMNTuhBDpqw/bW21O1VsK0JO8o2s0= Received: from [IPv6:240e:358:1125:6e00:dc73:854d:832e:2] (unknown [IPv6:240e:358:1125:6e00:dc73:854d:832e:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id D4DFE66872; Sun, 2 Oct 2022 10:25:20 -0400 (EDT) Message-ID: <607053080bd7db8d32a3696167efc6f52bcbc484.camel@xry111.site> Subject: Re: [PATCH v3 1/1] LoongArch: Add static PIE support From: Xi Ruoyao To: Joseph Myers , Adhemerval Zanella Netto Cc: caiyinyu , libc-alpha@sourceware.org, Chenghua Xu , Lulu Cheng , Wang Xuerui , liuzhensong Date: Sun, 02 Oct 2022 22:25:11 +0800 In-Reply-To: <04dfd5e79a0fa36458dc720d08095fec4ba737dc.camel@xry111.site> References: <20220924074534.1566173-1-xry111@xry111.site> <20220924074534.1566173-2-xry111@xry111.site> <3848ed3c5915a2363ffa8bdd43f74152da125885.camel@xry111.site> <4538abfd-ec05-bab5-1759-e3b12c6f1eed@linaro.org> <04dfd5e79a0fa36458dc720d08095fec4ba737dc.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_PDS_OTHER_BAD_TLD 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 Sat, 2022-10-01 at 21:07 +0800, Xi Ruoyao wrote: > On Fri, 2022-09-30 at 20:10 +0000, Joseph Myers wrote: > > It appears this has broken the build with binutils 2.39 branch, the=20 > > default used by build-many-glibcs.py.=C2=A0 Either the configure test > > should be=20 > > made stricter so it doesn't pass for binutils 2.39, or some relevant > > bug=20 > > fix should be backported to binutils 2.39 branch. > >=20 > > Building the glibc testsuite, the error is: > >=20 > > collect2: fatal error: ld terminated with signal 11 [Segmentation > > fault], core dumped > > compilation terminated. > > ../Rules:301: recipe for target '/scratch/jmyers/glibc- > > bot/build/glibcs/loongarch64-linux-gnu- > > lp64d/glibc/elf/ifuncmain1static' failed > >=20 > > But it also causes the second GCC build in the build-many-glibcs.py=20 > > "compilers" build to fail, if such a build is run with glibc > > including > > this change. >=20 > On my system I get a better error message: >=20 > /home/xry111/git-repos/glibc-t/install/compilers/loongarch64-linux- > gnu-lp64d/sysroot/usr/lib64/crt1.o(.text+0x30): error: > R_LARCH_SOP_PUSH_PCREL against `__libc_start_main@@GLIBC_2.36': > PLT shouldn't be with r_addend. > collect2: error: ld returned 1 exit status >=20 > Looks like crt1.o contains a PCREL relocation to __libc_start_main, > despite it's not supported by binutils-2.39 and I expected that such a > relocation should be only generated in rcrt1.o...=C2=A0 Will investigate. Proposed fix at https://sourceware.org/pipermail/libc-alpha/2022-October/142417.html. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University