Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6060829rwi; Tue, 18 Oct 2022 07:40:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zYWh7/DNbM073V3zHtgv2OsTwgGGVQLqxGXi3u+j3mqWSKLhAEHnlh2n1w/tbA+bRaHO5 X-Received: by 2002:a17:907:3d8f:b0:78d:b46e:eadd with SMTP id he15-20020a1709073d8f00b0078db46eeaddmr2756517ejc.277.1666104002626; Tue, 18 Oct 2022 07:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666104002; cv=none; d=google.com; s=arc-20160816; b=Gj5hm9EgKZKaNCypMc5s1qseambyWgOvPvpgsXYIUjqgoG5o8KM57fHZf/T1Fa2GfN AehaHeOH11SZM3aFQ9lwmDI909K6RJO9IWNOPiOAo5D/2fEqAPsLnaDmKE4hH6YoAxK0 76yR+1t/hB4x/pFYmsY/yHWQD1nkxKk642g7WWnE+8gozfNS0GaQstB+yDD5ZnlvJpH2 u2CDF/G+XZaK5vbpKHFG6vaTtnlb3dR5SKYlzXTqMvKj3MiBgMOFtEN1VkAuynbgIMdA Zqk6eszBwCvfn3WbHqB+HF49yMtV2eld01Z7saF0sFdED04KHOi1i5GfB71qyZkBVv90 lIAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2JDzDk8BkxB0lJIwvaGQjt4Ws32ZJjd66rjXBWawMkU=; b=W7k/FSdo28E5Kme4g/LdzbtjsK4wBqvYMZHdglGRjEDbXtP3j+uXPk5iEMfnaFo35f 6+d3vMZrzRGawbPk+hg//Cppdb/Al+wBANpWdesRq8KYTYxruvOw6EaD+ws8bIREXkc9 vp+sESyJrHwHWr8ad2BTglQZlJUsN/+VkW8Fy70nx2auSusCq75E3keXULjZuURdkKIa j92v93/Wm5nMr2K4FSHESvJJizXx5qQMyn9vnMLW/zOMRDycWcxS3lral82ToxvXbOf/ 4noyX3gEurgk1ayroqn1G3A/8E7D16afIfn3LK9yJ/7ZU7m5Q9IOCCihyal/uCs7DtDk Z3pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aoTEAMpy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb30-20020a170907161e00b0077077ded253si13350703ejc.924.2022.10.18.07.39.36; Tue, 18 Oct 2022 07:40:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aoTEAMpy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbiJROWY (ORCPT + 99 others); Tue, 18 Oct 2022 10:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231201AbiJROVy (ORCPT ); Tue, 18 Oct 2022 10:21:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DCED38DD for ; Tue, 18 Oct 2022 07:21:37 -0700 (PDT) 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 158E4615B0 for ; Tue, 18 Oct 2022 14:21:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCE6DC433D6; Tue, 18 Oct 2022 14:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666102896; bh=OjvCILdRZ1jTgOB8uJxjbPuWbLlr+2SnsWohtENFRCg=; h=From:To:Cc:Subject:Date:From; b=aoTEAMpyNjdPXWRKOCnpVaEpUWLCCaiO0uiq0Goxv7apJDZwk4afsALeKT1ZIpzpo RP+kSCt8txv1PTUDy3g1Sd0LWiP2pulpuJ/Ww6uYnNmlGvOaFJSWwMdKGRQlVfiaNx UtPTsNSa9PCM+eJk7d5u9egQ7QCMoOcUjsQ39tZ00shvIVbyxXsSpsLNP5mdT5j7Us ZJVyLoZWEnThm8YSgnQE1X/AE98ATEHUFRZrj3yCX7WesGjHznRj5Fl2FRlj4EJ8rj Q7GMxgRV/ZPobO9+xBaWq9kIDlYzysIIRUMzHBuG5kfNLMkK8fizxNAV61rgEom+o0 B4aXi5ZIhfMxw== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Masahiro Yamada , Nicolas Schier Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] riscv: remove special treatment for the link order of head.o Date: Tue, 18 Oct 2022 22:12:00 +0800 Message-Id: <20221018141200.1040-1-jszhang@kernel.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/riscv/kernel/head.o does not need any special treatment - the only requirement is the ".head.text" section must be placed before the normal ".text" section. The linker script does the right thing to do. The build system does not need to manipulate the link order of head.o. Signed-off-by: Jisheng Zhang --- 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..105ea7ac4751 100644 --- a/scripts/head-object-list.txt +++ b/scripts/head-object-list.txt @@ -39,7 +39,6 @@ arch/powerpc/kernel/entry_64.o arch/powerpc/kernel/fpu.o arch/powerpc/kernel/vector.o arch/powerpc/kernel/prom_init.o -arch/riscv/kernel/head.o arch/s390/kernel/head64.o arch/sh/kernel/head_32.o arch/sparc/kernel/head_32.o -- 2.37.2