From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33558C0502C for ; Sun, 28 Aug 2022 09:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Cc:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ry0pMy8EGlgLBuzTdk3fHGx2p0W1GrhNSodeHARpE9E=; b=SOFsDd2H9WIaCz VCPtBYXuYAotSB/swNKmVZtyR3C0ZC0j9pZ8cflkcvG0/n5vNl6wYqWvoxD2cp5O4k7G+YDMzsE1U 8zSBf1LCiQbShpaE6dQjDFeN3JhsybPuJEDcVfX6m8kZrAMUEkNsk/CXtM5vImHaVMZgnjQ/TnCTW yNuJgYlsbZ9VDhzZ11ZAwAkFIsFxsy/gYhby90uc/HKptT2b5/KRIi2LgA4t2fiy41uYDDTA3PjHa nXZlnDlLc5FXJS9fqxS8xknjcirvIGinIpr7dSzYvPzzMBIN9O3uVpuJKrSqxNqBJNNfa9X6JzDGP 2Qr9oaHUOEojLbEwO6sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSEqK-00FucH-GD; Sun, 28 Aug 2022 09:44:36 +0000 Received: from xry111.site ([89.208.246.23]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSEqH-00Fuau-Sk for linux-arm-kernel@lists.infradead.org; Sun, 28 Aug 2022 09:44:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1661679869; bh=XMIgWTZajiVi1DuydJMDFKkU+arFT2Ctire9oFavhDA=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=GkB5sVfg4uq6Hs+qV+9NdXqrVuepUczTsBW7T2RduW9KzKmqvhViKgGv4yf+338Fl nEQg6AnoNP9CK/ThP2oviiQ4gA7Jo4a/hx+0cvnpwsZAXIAEn5knZdt3A3pXth8nd9 G4qgIQj9GHb97+x41K43URzpKaw0QbgIXApQUkG0= 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) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 0A6F065926; Sun, 28 Aug 2022 05:44:25 -0400 (EDT) Message-ID: <00a60dc58fe182782fdc8ef834323414232104fb.camel@xry111.site> Subject: Re: [PATCH v4 8/9] loongarch: avoid orphan input sections From: Xi Ruoyao To: Ard Biesheuvel Cc: =?gb2312?Q?=B3=C2=BB=AA=B2=C5?= , linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "James E.J. Bottomley" , Matthew Garrett , Peter Jones , Ilias Apalodimas , Heinrich Schuchardt , AKASHI Takahiro , Palmer Dabbelt , Atish Patra , Arnd Bergmann , Lennart Poettering , Jeremy Linton Date: Sun, 28 Aug 2022 17:44:24 +0800 In-Reply-To: References: <20220827083850.2702465-1-ardb@kernel.org> <20220827083850.2702465-9-ardb@kernel.org> <7aa14d72.3a4f.182deccc341.Coremail.chenhuacai@loongson.cn> User-Agent: Evolution 3.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220828_024433_963172_14AE4688 X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, 2022-08-28 at 11:36 +0200, Ard Biesheuvel wrote: > But does the ELF psABI for LoongArch describe L_ARCH_NONE as a dynamic > relocation? .rela.dyn typically only contains relocations that are > specified as being suitable for runtime relocation. In Binutils 2.39 the BFD linker often over-estimate the size of .rela.*. For example if there is only 42 relocations, it may allocate the space for 47 relocations and fill the unused space in the section with zero. Then 5 R_LARCH_NONE will appear. This has already caused trouble when we reviewed LoongArch glibc port, but at last the reviewers considered using NONE relocations as a "padding" acceptable. So in glibc ld.so will treat R_LARCH_NONE as a "dynamic" relocation with no real effect. The issue (or "bug", if we want a more serious term) seems fixed in Binutils trunk, but I've not rebuilt the entire system with it so I'm not sure if it's completely fixed. -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel