Message ID | 20230119155417.2600-4-jszhang@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp415730wrn; Thu, 19 Jan 2023 08:14:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTt3a7A97vn3dtO+7QvQBt8+Nkteo1oCClK+p7Op7VnuGQVt7lvYluV1H4vlmfc8gfynBB X-Received: by 2002:a05:6402:3496:b0:48e:9c36:6c39 with SMTP id v22-20020a056402349600b0048e9c366c39mr16108651edc.0.1674144847171; Thu, 19 Jan 2023 08:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674144847; cv=none; d=google.com; s=arc-20160816; b=OU+aAPEKt31d/oOnwuQrJEfTUw+7gcjgE64535Uic17oMv1k6zqCB4EcOkvloGa/hP uWuuhiIlIP5UNPQ2zb8BJSlLUXMep6BBZKDA98mATcedKUP56zDukDu+QtF4d6mCfnpM qCysQt2YEJ4tlGURNt7Vw063SvQvAbstiF4WvM2CcrXCHbzp0+6cYk58/FcEw6edinJb lbyOpgyaXdfgh0vK8d2WApgJqwLh9rUTl+JFoWoOd7e+5utc5mKrvIAddKHilvLqrQ1b vq5X/7moeJMHTQMH7QcnjHeHVhzuL+NvyEdeX6tkxY+3wBValMYXiVt6uAEYX3yBj4hB q3Zg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uOGJP7RibSfoncOXcw/tk92rcYHb6Gw1l43E38pMezM=; b=awLluh997EOZNMkwkfgDAdK/qe/9gNCs/rwwoQ4iJcq18B0tS6uPorXJpFO2E2GF4i yU8wr6z9yx0K6qg/WaDwak970iYrVcjLrupHkQl7fIhFr4EzIiwun5U+3I00z4nZ4qZF kaBzrKJtmt0h8oT4BBZYBIjjkdva8fl33P6e22VI0VUgurnux/zaf3fXZj2If9Su1kZy IFW28JqoG3RjmLFNQsn0R4OEUat+JK8eF0NjGvh8bteeaO9uNZrrXgKtLUGeaxun0bCE O2zhZT83NqJEbO0t38gv9ppbhmmrRy/mfeTzQnBJUpkVsz0cMV9XgSE7Ah6fs43WBGTx ZnWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZPQmJJUe; 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 y16-20020a056402441000b004855f088a3csi50174952eda.608.2023.01.19.08.13.43; Thu, 19 Jan 2023 08:14:07 -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=ZPQmJJUe; 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 S230135AbjASQFS (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Thu, 19 Jan 2023 11:05:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjASQEu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 19 Jan 2023 11:04:50 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B33D386EE6 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 08:04:44 -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 4E99C61CB5 for <linux-kernel@vger.kernel.org>; Thu, 19 Jan 2023 16:04:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 192F1C433F0; Thu, 19 Jan 2023 16:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674144283; bh=HZ2KeW9xZS9UJRxhjs2snT6EZu0lqTWV3MzCCMYghqA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZPQmJJUes4tQ1AHeqLpcuDsBW0QuzfZesiN8dtYdaZeUVxPt0hMlcL2HqoMfSORIU R0OGX1vIgqw3Szuz+yOhOdEK31eu6KYWEOSNPET/XJ0cnB+S8FklJuGJ9vsNuRKPvw RQyodrQj7IYIZcVX2nPnM/kdUcw6rvQ1sEp7TaCJ2c1LZFR35A01Va75F6cuiIKlgA 7IsczqPTd5NABgRSLCJBfB5wPxqtdNdKc0B/oSOiRf21wenFIlD+c4l+B2b7vqzHgn McDiYiDWtnsikeoHgFtGuixpH1sleZfxOm9OJ2VMgTBfNfi23ir6UeiBOBda2Fz/lc 3KP1k6cQgZ7Zw== From: Jisheng Zhang <jszhang@kernel.org> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Masahiro Yamada <masahiroy@kernel.org>, Kees Cook <keescook@chromium.org>, Nathan Chancellor <nathan@kernel.org> Cc: Conor Dooley <conor@kernel.org>, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/5] riscv: vmlinux.lds.S: explicitly catch .riscv.attributes sections Date: Thu, 19 Jan 2023 23:54:15 +0800 Message-Id: <20230119155417.2600-4-jszhang@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230119155417.2600-1-jszhang@kernel.org> References: <20230119155417.2600-1-jszhang@kernel.org> MIME-Version: 1.0 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?1755468107447058706?= X-GMAIL-MSGID: =?utf-8?q?1755468107447058706?= |
Series |
riscv: improve link and support ARCH_WANT_LD_ORPHAN_WARN
|
|
Commit Message
Jisheng Zhang
Jan. 19, 2023, 3:54 p.m. UTC
When enabling linker orphan section warning, I got warnings similar as
below:
riscv64-linux-gnu-ld: warning: orphan section `.riscv.attributes' from
`init/main.o' being placed in section `.riscv.attributes'
While I don't see any usage of .riscv.attributes sections' in kernel
now, just catch the sections so that we can enable linker orphan
section warning.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
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 6a250313b752..7eb3d25d0dae 100644 --- a/arch/riscv/kernel/vmlinux.lds.S +++ b/arch/riscv/kernel/vmlinux.lds.S @@ -146,6 +146,7 @@ SECTIONS STABS_DEBUG DWARF_DEBUG ELF_DETAILS + .riscv.attributes 0 : { *(.riscv.attributes) } DISCARDS }