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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F155C6FD20 for ; Tue, 21 Mar 2023 22:41:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbjCUWld (ORCPT ); Tue, 21 Mar 2023 18:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjCUWlc (ORCPT ); Tue, 21 Mar 2023 18:41:32 -0400 X-Greylist: delayed 891 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 21 Mar 2023 15:41:31 PDT Received: from hall.aurel32.net (hall.aurel32.net [195.154.113.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B39058C02 for ; Tue, 21 Mar 2023 15:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=mIwynQgjzMEjx1NFjlz0a05nnkbCrn+qgmoGl+S5aZE=; b=TlnQnwPD0bY4H/Ev84SzuT+cQs kH/adSoMXHBN3TbSyBaJpmaGqEfGeMUpHm2/E1f3fmTfwUSDrx9UKMsHARF7GooQSiSQnH0qpN0Sa SgcwBO8BwqxybVTCU+lkQZDI7BegMamueI6mdy7fKvNfeBh2EYkfXACpWBXi8qfWFR2sgceV+yo6h TMRLHnpi9NUMhxJu7Au9B5yNbBZycP8nLfmcTdSN5IxPFF46dHfv+mOP/y4Kbx4EyGBMI2gKXqqod cLXbMyJjtqdrRfjQ1733EBV6B91k4RlL0bhoPRIifcKtouzv6Cs2MJwVv3Boe8BLfwFHnr/TTSjlP LcKD2Cdw==; Received: from aurel32 by hall.aurel32.net with local (Exim 4.94.2) (envelope-from ) id 1pekQs-001zcp-Oi; Tue, 21 Mar 2023 23:26:18 +0100 Date: Tue, 21 Mar 2023 23:26:18 +0100 From: Aurelien Jarno To: Masahiro Yamada Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Ard Biesheuvel , Nicolas Schier , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: remove special treatment for the link order of head.o Message-ID: Mail-Followup-To: Masahiro Yamada , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Ard Biesheuvel , Nicolas Schier , linux-kernel@vger.kernel.org References: <20221012233500.156764-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221012233500.156764-1-masahiroy@kernel.org> User-Agent: Mutt/2.0.5 (2021-01-21) Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org Hi, On 2022-10-13 08:35, Masahiro Yamada wrote: > In the previous discussion (see the Link tag), Ard pointed out that > arm/arm64/kernel/head.o does not need any special treatment - the only > piece that must appear right at the start of the binary image is the > image header which is emitted into .head.text. > > The linker script does the right thing to do. The build system does > not need to manipulate the link order of head.o. > > Link: https://lore.kernel.org/lkml/CAMj1kXH77Ja8bSsq2Qj8Ck9iSZKw=1F8Uy-uAWGVDm4-CG=EuA@mail.gmail.com/ > Suggested-by: Ard Biesheuvel > Signed-off-by: Masahiro Yamada > --- > > scripts/head-object-list.txt | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/scripts/head-object-list.txt b/scripts/head-object-list.txt > index b16326a92c45..f226e45e3b7b 100644 > --- a/scripts/head-object-list.txt > +++ b/scripts/head-object-list.txt > @@ -15,7 +15,6 @@ arch/alpha/kernel/head.o > arch/arc/kernel/head.o > arch/arm/kernel/head-nommu.o > arch/arm/kernel/head.o > -arch/arm64/kernel/head.o > arch/csky/kernel/head.o > arch/hexagon/kernel/head.o > arch/ia64/kernel/head.o This patch causes a significant increase of the arch/arm64/boot/Image size. For instance the generic arm64 Debian kernel went from 31 to 39 MB after this patch has been applied to the 6.1 stable tree. In turn this causes issues with some bootloaders, for instance U-Boot on a Raspberry Pi limits the kernel size to 36 MB. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net 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 16C14C6FD1D for ; Tue, 21 Mar 2023 22:28:27 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZcUB4nKuWtaGgy73feSaAsPA8n7Fb+hCO4yquWK+wE0=; b=b1YFFyjpKYrFfY f9/Ep96CihLKERV3GW6zVLB0wjJ/uYpAWyqWOpSDkzkZQSbMuRih9xfTQtJAhx/jt/Qso9Ezm+ejP ZY1tFvGP2+rNJV+RjxBd+SYXzSOam6Hi9cTTUieRXXnT0dtVecVGrpgUaa12BI0BD8JsFdn28yZJ0 n+0GFLhAIHfCb8jzFZhyzWwdLnOocXWho7BZOhPxHChadDxB/GhSj4IonaKXtmymX46eKtl1yiLoj vRolxySe2qdOkZ+qOEBOPw3bSc5EApQxxnmbcTMfuBm96ZYpf6eyBAfZXA3pmIKHf36gp3CeVeMis rQawr7bxqVxkHRNm4KKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pekRD-00DxyG-2L; Tue, 21 Mar 2023 22:26:39 +0000 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pekR6-00DxwX-1T for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2023 22:26:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=mIwynQgjzMEjx1NFjlz0a05nnkbCrn+qgmoGl+S5aZE=; b=TlnQnwPD0bY4H/Ev84SzuT+cQs kH/adSoMXHBN3TbSyBaJpmaGqEfGeMUpHm2/E1f3fmTfwUSDrx9UKMsHARF7GooQSiSQnH0qpN0Sa SgcwBO8BwqxybVTCU+lkQZDI7BegMamueI6mdy7fKvNfeBh2EYkfXACpWBXi8qfWFR2sgceV+yo6h TMRLHnpi9NUMhxJu7Au9B5yNbBZycP8nLfmcTdSN5IxPFF46dHfv+mOP/y4Kbx4EyGBMI2gKXqqod cLXbMyJjtqdrRfjQ1733EBV6B91k4RlL0bhoPRIifcKtouzv6Cs2MJwVv3Boe8BLfwFHnr/TTSjlP LcKD2Cdw==; Received: from aurel32 by hall.aurel32.net with local (Exim 4.94.2) (envelope-from ) id 1pekQs-001zcp-Oi; Tue, 21 Mar 2023 23:26:18 +0100 Date: Tue, 21 Mar 2023 23:26:18 +0100 From: Aurelien Jarno To: Masahiro Yamada Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Ard Biesheuvel , Nicolas Schier , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: remove special treatment for the link order of head.o Message-ID: Mail-Followup-To: Masahiro Yamada , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Ard Biesheuvel , Nicolas Schier , linux-kernel@vger.kernel.org References: <20221012233500.156764-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221012233500.156764-1-masahiroy@kernel.org> User-Agent: Mutt/2.0.5 (2021-01-21) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230321_152633_534627_8696E731 X-CRM114-Status: GOOD ( 20.52 ) 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 Hi, On 2022-10-13 08:35, Masahiro Yamada wrote: > In the previous discussion (see the Link tag), Ard pointed out that > arm/arm64/kernel/head.o does not need any special treatment - the only > piece that must appear right at the start of the binary image is the > image header which is emitted into .head.text. > > The linker script does the right thing to do. The build system does > not need to manipulate the link order of head.o. > > Link: https://lore.kernel.org/lkml/CAMj1kXH77Ja8bSsq2Qj8Ck9iSZKw=1F8Uy-uAWGVDm4-CG=EuA@mail.gmail.com/ > Suggested-by: Ard Biesheuvel > Signed-off-by: Masahiro Yamada > --- > > scripts/head-object-list.txt | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/scripts/head-object-list.txt b/scripts/head-object-list.txt > index b16326a92c45..f226e45e3b7b 100644 > --- a/scripts/head-object-list.txt > +++ b/scripts/head-object-list.txt > @@ -15,7 +15,6 @@ arch/alpha/kernel/head.o > arch/arc/kernel/head.o > arch/arm/kernel/head-nommu.o > arch/arm/kernel/head.o > -arch/arm64/kernel/head.o > arch/csky/kernel/head.o > arch/hexagon/kernel/head.o > arch/ia64/kernel/head.o This patch causes a significant increase of the arch/arm64/boot/Image size. For instance the generic arm64 Debian kernel went from 31 to 39 MB after this patch has been applied to the 6.1 stable tree. In turn this causes issues with some bootloaders, for instance U-Boot on a Raspberry Pi limits the kernel size to 36 MB. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel