Message ID | 20230102124936.1363533-1-conor@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4146756wrt; Mon, 2 Jan 2023 04:59:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXtoiyTAF39p/0lUjmQCgx5dVXBXpqP/dZUjJCKv6jA9WMHSKfE6RQfQqePFKaSzq1X9/EoJ X-Received: by 2002:a50:85c6:0:b0:46f:e329:8dac with SMTP id q6-20020a5085c6000000b0046fe3298dacmr8220055edh.0.1672664374872; Mon, 02 Jan 2023 04:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672664374; cv=none; d=google.com; s=arc-20160816; b=nXG5qcOEKN9bzVtN7fR0MVYbbtjdTmCitdprzIfrtC6Ode8qUhS/bZGgmjmdDJAb+7 1zElUb3ihBkSEbO/aCIpys51M8Ob6VyM5aPxVaycrEgVQpy9C5Wj63Exsw9o+ljjvhNm KinzlX2Sx49f4lphIbl3NQm7BTlU42plDN05p7x08gBmEPMM5ywIhYLDFGSKZwOUE+Ck /DfrWnblz69zuqjP14b2OMBTBK8QV5EQAdUvuQ8Y2OODWSQshuHKn+ifQ6N4y6ytwF6S JYC7MKRqMHpynn8w7VMrN6AU79mP4Kbji8EqKe2ySNk9CU2EzQ/RyUZOmgRlp1Dz3Tjw GNDg== 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=59tbMy6plZtw4nF8NAxCjr2qeR2c5rZph2onxRsQEys=; b=AuzIIXaPTY24ZYgcYvBGhhsaDWD5gH/HxSuaYPfbszvBbwAkwKpaBTB+m/pehQsSgM dBcb+B0U1PhQYZlNFaeBKH6faAhN0/HGhWcrgNHuJAS/20G/m2U3Yytq0S9N5o7E7NWp oI1M/G6d++1JgCZVqKIOcKWlCYTizq8B2h5zxCRL7s2pddltcQXAqs5ZMlqZdp6v0H4s c5cFrnS8qaXyLhsk5oPRXwb2LL3Ui1exsQMZBgonraQpwsioWC04nSAYl+Yj65aDcuyp ukHqHd0VMBsDwTNODwt8d24Ihm+e4MwXpXdMOWVXYJTi25lnnZaluVD9v3aPiZLhcW2u 1iYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PPDBfr5Q; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj4-20020a1709069c8400b0084cd9dba32esi625832ejc.974.2023.01.02.04.59.11; Mon, 02 Jan 2023 04:59:34 -0800 (PST) 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=PPDBfr5Q; 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 S232856AbjABMub (ORCPT <rfc822;yugsuo@gmail.com> + 99 others); Mon, 2 Jan 2023 07:50:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233029AbjABMuP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Jan 2023 07:50:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA0F15FE5 for <linux-kernel@vger.kernel.org>; Mon, 2 Jan 2023 04:50:14 -0800 (PST) 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 2FE4160EBD for <linux-kernel@vger.kernel.org>; Mon, 2 Jan 2023 12:50:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23D89C433EF; Mon, 2 Jan 2023 12:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672663813; bh=J83fkE2BSX1IZ8EPpp2Ze1Betbt1ngFYzvqYU3Slg3I=; h=From:To:Cc:Subject:Date:From; b=PPDBfr5Q0Btm6wpX2S6XhgndtWGV2Os9tV79H12FEylL9hFMqxL/zQdrOq1trGWLm gRAVcY+mq9vRNuQaNrvCwpsKhvii6iyB4/kanb9voWAZ/1luK0OPaXkduDz5w0vOL8 Iyz5rKy4DnfgPaP+N8tmZS/bXFNOk0uku9LY9/I/QZ0WKAatCKwzSXOwn+jQgWs9eP sYPvVIeTIyUL6tlBfN06U7dZC7FLK59eCIdbuV0Wq+YFpEEQreYutZqohZqkaArG0b xoXau46gBd+zEKGd9QsTuNP9V2nrrcnJ+gcw97PEGEWH7QBzG+j2BaZAMlUQTp4nH5 Cvx01y0dOvB0Q== From: Conor Dooley <conor@kernel.org> To: palmer@dabbelt.com Cc: conor@kernel.org, Conor Dooley <conor.dooley@microchip.com>, masahiroy@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] RISC-V: define RUNTIME_DISCARD_EXIT Date: Mon, 2 Jan 2023 12:49:37 +0000 Message-Id: <20230102124936.1363533-1-conor@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1063; i=conor.dooley@microchip.com; h=from:subject; bh=J5y6smCcDKVWS6LKYLyNRzrIDBkYbbewNOPjlfn0gJc=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDMmbLt0LWGd/VLlihUrL4xtTzjL+7Jc0k9//YUHQ145tCy9P uvnLpaOUhUGMg0FWTJEl8XZfi9T6Py47nHvewsxhZQIZwsDFKQATWf+dkeFnypYXJ+QmBx5POfhfMT JEdPad6Ksn/s1V4p1ux+z62nojI8O01LyQm9krn5g+7WHW0VcNeCJ746XGuSP/MwXm9r37fZwZAA== X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753915719794241817?= X-GMAIL-MSGID: =?utf-8?q?1753915719794241817?= |
Series |
[v1] RISC-V: define RUNTIME_DISCARD_EXIT
|
|
Commit Message
Conor Dooley
Jan. 2, 2023, 12:49 p.m. UTC
From: Conor Dooley <conor.dooley@microchip.com> Masahiro noted: > arch/riscv/kernel/vmlinux.lds.S clearly says: > /* we have to discard exit text and such at runtime, not link time */ > [...] > so riscv should define RUNTIME_DISCARD_EXIT like x86, arm64. As things stand, no ill comes of this - but if "DISCARDS" was to be re-ordered in the linker script, linking would fail. Do as suggested by Masahiro and define RUNTIME_DISCARD_EXIT. Link: https://lore.kernel.org/all/CAK7LNAT39aZEw=0209ovYZ2kxtOaA2a51=XD9=LqYHjkTOEK4g@mail.gmail.com/ Suggested-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> --- arch/riscv/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/riscv/kernel/vmlinux.lds.S b/arch/riscv/kernel/vmlinux.lds.S index 4e6c88aa4d87..07c19f2a288c 100644 --- a/arch/riscv/kernel/vmlinux.lds.S +++ b/arch/riscv/kernel/vmlinux.lds.S @@ -5,6 +5,7 @@ */ #define RO_EXCEPTION_TABLE_ALIGN 4 +#define RUNTIME_DISCARD_EXIT #ifdef CONFIG_XIP_KERNEL #include "vmlinux-xip.lds.S"