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 13FC7C433F5 for ; Tue, 11 Oct 2022 11:51:05 +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-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=q+SCZhb6k99zdSPnuKwWH9XWNj7YQWBMZXQ59SaOMfA=; b=3T/BX6ijulutxC554boyeHbtEE op/D0u9rypg3w/2rZb15d5TyDfjMKFupt9EeyloBi1odsg54dJwI1a78Nsq2hUq1myB8TzUVRJtCC 1dZkQ2ov4ygXhe0JaPVyhh892TXHiCzkwTmYGRHJ5oh/Pxe6pULlBftDsJnFcfzVKcNIo2AM9bykY 7cx/2WFV8wNtyIfXX6IH0n5zzFwX7zj7SBDj0VRPX07YTpf/BOWT06cFG6OCzt7o2FWDjUn2uA9N/ RtRKKgFR5QolQpAkrk9hqic8aUEaQEBbUnhdl+EiFqAObjve4uLKNGAduh7LRUUp5G4mWezI0kwy/ XQ/Ri2ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiDlY-004946-N2; Tue, 11 Oct 2022 11:49:44 +0000 Received: from jabberwock.ucw.cz ([46.255.230.98]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiDlT-00490j-RT for linux-arm-kernel@lists.infradead.org; Tue, 11 Oct 2022 11:49:41 +0000 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 5F6AF1C0025; Tue, 11 Oct 2022 13:49:32 +0200 (CEST) Date: Tue, 11 Oct 2022 13:49:31 +0200 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Kees Cook , kernel test robot , Russell King , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH AUTOSEL 5.10 07/10] ARM: decompressor: Include .data.rel.ro.local Message-ID: <20221011114931.GB12851@duo.ucw.cz> References: <20221009205350.1203176-1-sashal@kernel.org> <20221009205350.1203176-7-sashal@kernel.org> MIME-Version: 1.0 In-Reply-To: <20221009205350.1203176-7-sashal@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221011_044940_075898_B8F655CA X-CRM114-Status: GOOD ( 15.55 ) 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: multipart/mixed; boundary="===============6663052805213648531==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6663052805213648531== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Kees Cook >=20 > [ Upstream commit 1b64daf413acd86c2c13f5443f6b4ef3690c8061 ] >=20 > The .data.rel.ro.local section has the same semantics as .data.rel.ro > here, so include it in the .rodata section of the decompressor. > Additionally since the .printk_index section isn't usable outside of > the core kernel, discard it in the decompressor. Avoids these warnings: >=20 > arm-linux-gnueabi-ld: warning: orphan section `.data.rel.ro.local' from `= arch/arm/boot/compressed/fdt_rw.o' being placed in section `.data.rel.ro.lo= cal' > arm-linux-gnueabi-ld: warning: orphan section `.printk_index' from `arch/= arm/boot/compressed/fdt_rw.o' being placed in section `.printk_index' > There's no printk_index in 5.10. Perhaps this does not need to be backported? Best regards, Pavel > +++ b/arch/arm/boot/compressed/vmlinux.lds.S > @@ -23,6 +23,7 @@ SECTIONS > *(.ARM.extab*) > *(.note.*) > *(.rel.*) > + *(.printk_index) > /* > * Discard any r/w data - this produces a link error if we have any, > * which is required for PIC decompression. Local data generates > @@ -57,6 +58,7 @@ SECTIONS > *(.rodata) > *(.rodata.*) > *(.data.rel.ro) > + *(.data.rel.ro.*) > } > .piggydata : { > *(.piggydata) > --=20 > 2.35.1 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCY0VYSwAKCRAw5/Bqldv6 8uFAAJsFBphUKE9odWnrQVbCd7RKpnLTxQCeO8kRkJIJEMSEVmW3OQp4mFFDXeE= =CNMf -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI-- --===============6663052805213648531== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6663052805213648531==--