Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2167250rwb; Thu, 19 Jan 2023 22:19:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXvicrydoauKizbkRBx+uT3e1UpCDBOE0pQsd5BrDCtdEiGvc+U1ryzctgFWxXntj/OK0LTg X-Received: by 2002:a05:6402:70d:b0:49d:28b1:5690 with SMTP id w13-20020a056402070d00b0049d28b15690mr13345155edx.41.1674195588415; Thu, 19 Jan 2023 22:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674195588; cv=none; d=google.com; s=arc-20160816; b=zFdXpmA2VGcZ0k7IyZm0O9qX9L2nJs+h/jdDtPSxlMJvZVjkt8PdjIWY+TItZAxZOA evKn3whiHfi+gbTA6/nF9Xat5CRe8V3csDd6IR6JhIyLfa7eiTQ2GXmfl+DGw+5921Ta hvUyDXkqs3bXX9f+QWc1rBuiAllGxOlZ6ebeQ6QY68adhV5cR31Bf6SgRPWLfY92PL/B kcJz1KXDSkWfnginx1bUHYbxlaoVbRGvJCdM+3gz3reO38N2TekZ3sPr0OKEjS4Tg20Q JK+O/5LXZ7sVu2DiWgAMGiGaELcLxidict/YYZegOJ4icg/j9Dte68n4Uy8QkLuJSzJ4 5dkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=G2dlcSrpAd5WYQ2pF9B2zYjqocrarlO2vwEZAG98/+w=; b=zK+p+Ld5tfX94uUfDdHDEZLmV9VS+aB49u7pB+jQO0HsfZODkwXhpExrB+mqcKow3M CblvhPfsFYgNN5kHv1cJ3OC9Z+CUyaYlbkOekPdPFHh/1EdBWcq7KVmvy2EyQsSNXMBn zn3a2O1Y4l3o6/zTjadolXRUG+RL4I+voyFGKzD7ZeCJFSL+kT9mO9avZQZwdfvU/XPg cQun/7HflxCZjrpFyTnnjmq0X7MGj+3P0CcNC4BZU+H1en21GN0SDNOmBJ+ZObV+SPt+ 5eZq7P+SA3O4eNimzaU2d8sDS9ftlvcWTVGrYIu39O0VBzDg+ZB/sm8QCo0jwjNjplNl XyzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oqUxNns1; 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 w9-20020a05640234c900b0049e40bd2a0csi11097596edc.22.2023.01.19.22.19.36; Thu, 19 Jan 2023 22:19:48 -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=oqUxNns1; 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 S230445AbjATFUI (ORCPT + 47 others); Fri, 20 Jan 2023 00:20:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231342AbjATFTf (ORCPT ); Fri, 20 Jan 2023 00:19:35 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6AB57DF85 for ; Thu, 19 Jan 2023 21:09:03 -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 ams.source.kernel.org (Postfix) with ESMTPS id 769ABB826F7 for ; Thu, 19 Jan 2023 18:32:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D760C433D2; Thu, 19 Jan 2023 18:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674153136; bh=G2dlcSrpAd5WYQ2pF9B2zYjqocrarlO2vwEZAG98/+w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oqUxNns1Mx/u/m/jBytaYR3d/Gv7QQ4/+CVwoOuOn8wVI0CO8/RmhAFm4NR87Vw1A zQ0NgY0Qyi2xUrueRD/VnTUmjnUOawe2lGANV4sCd7abggh8esYjezQT8SPbhbLEEp dxYqnLMKqVhfs0fiiOuMd0vN6OS62l+omxr8ROi9vJ/gaXvnA7AQnzNBQnZOnWpcGV L2KiL0ZMjXPt2M0gBRbhGLWzcJ4jgIDYt8wttu/QLljznvc8vQTQXJXLMr09YCrLnM OXZmuCJ8hH5eDWIRWDxjNpOFIAJnM5tB34RXOv6IutV/yburvhn1QBzcS7Dr+1XMGb QWhFjaLTc4I0w== Date: Thu, 19 Jan 2023 18:32:11 +0000 From: Conor Dooley To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Masahiro Yamada , Kees Cook , Nathan Chancellor , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] riscv: lds: define RUNTIME_DISCARD_EXIT Message-ID: References: <20230119155417.2600-1-jszhang@kernel.org> <20230119155417.2600-2-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SsobklzoJrra3VXj" Content-Disposition: inline In-Reply-To: <20230119155417.2600-2-jszhang@kernel.org> 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: X-Mailing-List: linux-kernel@vger.kernel.org --SsobklzoJrra3VXj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 19, 2023 at 11:54:13PM +0800, Jisheng Zhang wrote: > riscv discards .exit.* sections at run-time but doesn't define > RUNTIME_DISCARD_EXIT. However, the .exit.* sections are still allocated > and kept even if the generic DISCARDS would discard the sections due > to missing RUNTIME_DISCARD_EXIT, because the DISCARD sits at the end of > the linker script. Add the missing RUNTIME_DISCARD_EXIT define so that > it still works if we move DISCARD up or even at the beginning of the > linker script. >=20 > Signed-off-by: Jisheng Zhang > Suggested-by: Masahiro Yamada Thought I left one of these against v1, either way: Reviewed-by: Conor Dooley Thanks, Conor. --SsobklzoJrra3VXj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY8mMqwAKCRB4tDGHoIJi 0rczAQCp6WYGe/TWmVUyy+TKfW2nJC1Gow59p8y+l0hJK9E5YwEA2upUxo9SWD5m ieU1BPJlB1yIQBwHj73xUFLqxKvCSgM= =YSh+ -----END PGP SIGNATURE----- --SsobklzoJrra3VXj--