From patchwork Wed Oct 12 23:35:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13005520 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 745B7C433FE for ; Wed, 12 Oct 2022 23:36:38 +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:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Oum+e7sNHP+eIiK2a7t9nwelHC2qk/YwtuFr0hSavGc=; b=fAaphMppJbzpL6 y5WwC8VIQBpANCjXwg5DyxpilSLGIivxiPRZB3X3K8DunaojxtZ8yvxkxuMyoRfmKA1Q2Xf7bDbyA am3SXynGJl5wu4lORSBPkEGyo41ubSNXkKrjQPixHIqFdC3vfuBKo2Hd5AYniVpm7pnzbJWEcv5+c koSbvf7EyuOOP619TNGSGuMkq33WJMgfL/066uSXMlEkF2RYOanXy5vdzApLiMN1zGjMxswNuyG4I zthxPBrN4eSTVo7BvqTgQlHY1gQVJ7+vZkwQggPaUi+H8od5ELgGYo8St99sSlH9LN/+TOh4f9Se2 CJjKRqMyNXrDFVes5Meg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oilFx-009hcq-RW; Wed, 12 Oct 2022 23:35:21 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oilFu-009hbr-DO for linux-arm-kernel@lists.infradead.org; Wed, 12 Oct 2022 23:35:19 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D6EAA6168D; Wed, 12 Oct 2022 23:35:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 799E1C433D6; Wed, 12 Oct 2022 23:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665617716; bh=z+puzTE7jxUB6aSp/LwcBK6+VqRF8OLBHC3UUJqCOj0=; h=From:To:Cc:Subject:Date:From; b=Mu0+fQlDDhK2NXj36y+0zU6A9Ki247MdvpqQ3eRGIDsIk2+IYxOnT9K385AKyx0Ou L7qhT/k4CIhXFP9JYDbfDUuatjgMZ4SyZXc5Cu2uoNZ6Zbep3yiTMrZJ/30U5rgap/ OKUG1gvSpacXzJ7HlxVLqdxGcWG/hGjwXP3wZPzzMLH2FX+df+zZm6CoSkRBuDlGLT +hUhIY+Zc+SWDwQgOdty8t9tdzb0lnX59m3mHP4ZstM7RF9aJrY0NcNUPBwUNhZfMO ywcj4wtPuMZ9KTUxqCj9bgR7RyCTG4W2LOIBUJxR7E/RwYqV1Co2Fcw4YNtupXvQgd u0R11g1m5qVtg== From: Masahiro Yamada To: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Cc: linux-arch@vger.kernel.org, Ard Biesheuvel , Masahiro Yamada , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH] arm64: remove special treatment for the link order of head.o Date: Thu, 13 Oct 2022 08:35:00 +0900 Message-Id: <20221012233500.156764-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221012_163518_530990_5CABD6CA X-CRM114-Status: GOOD ( 12.73 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Nicolas Schier --- 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