From patchwork Tue Jun 20 08:18:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Youling Tang X-Patchwork-Id: 110340 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3514676vqr; Tue, 20 Jun 2023 01:39:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6lQC0RsZgM5j9u8VbrjRqvWI8sg+MDr7ZpjHT1HfUZMQLvju1/cO+ooUB5Q8YAEfok47Se X-Received: by 2002:a05:6a00:1a89:b0:668:7744:10f5 with SMTP id e9-20020a056a001a8900b00668774410f5mr4897619pfv.10.1687250370765; Tue, 20 Jun 2023 01:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687250370; cv=none; d=google.com; s=arc-20160816; b=Z9wrzmGA2TejojeVtbFz5oz+edDsW6pKCRTnyziTDxoWUFWSS30avoqtqAF1X/1oaJ vH22ZlQP2rZ/57xYTvQzoLKuotiDrtWuAUnQEsnO1e3uZooynHM5wPBYyCijiRO1DfwM 8dR7zlqwgFNWfE5UOeST32UeOrOFZ7yOB0O1arqtX6kYoP/YH2UeFx57cV1rNELbS4Xr 8o2PQizRhuPoWu6LWMIvnL7g15JivkBF7hYlSnlOvu9KitiZv/d/g4f5YcfUTCyC76sj eI6x83e5pvQ9dGjEX56hvMthAS2kDMvcLdq0RpXxvDcLg8gPfhYqMnAnYNeWtBfCVko8 RmGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=2rGc7oHaaETtaWP09k4lNiD73dO3IxJ7pMNRTa+98Oc=; b=csOqNerO4AlKQ14dh9pkYoWJvCf2FHEpsAfuzSa/T16zXPTAbzD1CPAeqr9GwEO7AA shWrSSksn+687ImVK3RsETpJ5QxCEy8T8lcq9g35yGbf+tQvX01XjHX2hMYb+EyY8OZO 8G4ObLbWUyecKQSWk0A+91AXULmD/mKOXvVhiBzSbdc1ldwE97roX2PcTO6sgpwf1eSJ CF5eJl0ZcSPQkgD5etNztDBiFnKE0guqINYTkWWx3cUN0duLv4ZeN1r8+1XCxCfZSJ8k yMZF08BE0UnSozcd8wxqUqCAlLBQ8x/IZeBimvIfPDhNOH/lZ+MGrjNgAb4nw0r8u3wZ Q1zw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h65-20020a625344000000b0065e445224e5si1202536pfb.332.2023.06.20.01.39.14; Tue, 20 Jun 2023 01:39:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230514AbjFTISz (ORCPT + 99 others); Tue, 20 Jun 2023 04:18:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbjFTISr (ORCPT ); Tue, 20 Jun 2023 04:18:47 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 892F5132; Tue, 20 Jun 2023 01:18:45 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8CxtOjkYJFk6B4HAA--.4271S3; Tue, 20 Jun 2023 16:18:44 +0800 (CST) Received: from bogon.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxReThYJFkJ3AhAA--.28832S5; Tue, 20 Jun 2023 16:18:43 +0800 (CST) From: Youling Tang To: Josh Poimboeuf , Peter Zijlstra , Huacai Chen , madvenka@linux.microsoft.com Cc: chenzhongjin@huawei.com, WANG Xuerui , Xi Ruoyao , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, tangyouling00@gmail.com, youling.tang@outlook.com Subject: [RFC PATCH v1 23/23] LoongArch: objtool: Mark non-standard object files and directories Date: Tue, 20 Jun 2023 16:18:32 +0800 Message-Id: <1687249112-2790-4-git-send-email-tangyouling@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1687249112-2790-1-git-send-email-tangyouling@loongson.cn> References: <1687249112-2790-1-git-send-email-tangyouling@loongson.cn> X-CM-TRANSID: AQAAf8CxReThYJFkJ3AhAA--.28832S5 X-CM-SenderInfo: 5wdqw5prxox03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7CrWfZr1xJFWrZr17AFWxKrX_yoW8ArWkpr nI9a1kJr4kur1kKrykt3y5Zr1Uta4DKr12ga1YvFy8CrnrXr1DZr4xJrWDXF1jgw4rAayF gwn3G34aqFWUJacCm3ZEXasCq-sJn29KB7ZKAUJUUUU3529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUmjb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAF wI0_Cr1j6rxdM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07 AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWr XVW3AwAv7VC2z280aVAFwI0_Gr1j6F4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2 Ij64vIr41lF7xvrVCFI7AF6II2Y40_Zr0_Gr1UMxkF7I0En4kS14v26r126r1DMxAIw28I cxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r126r1DMI8I3I 0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWU tVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26ryj6F1UMIIF0xvE2Ix0cI8IcV CY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAF wI0_Gr1j6F4UJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUvcSsGvfC2KfnxnUUI43 ZEXa7IU5HOJ5UUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769210244991582142?= X-GMAIL-MSGID: =?utf-8?q?1769210244991582142?= Set OBJECT_FILES_NON_STANDARD for their related files and directories, which will tell objtool to skip checking them. It's ok to skip them because they don't affect runtime stack traces. Signed-off-by: Youling Tang --- arch/loongarch/kernel/Makefile | 2 ++ arch/loongarch/power/Makefile | 2 ++ arch/loongarch/vdso/Makefile | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/loongarch/kernel/Makefile b/arch/loongarch/kernel/Makefile index fcbfa0f38b53..9ea4d6b93f4d 100644 --- a/arch/loongarch/kernel/Makefile +++ b/arch/loongarch/kernel/Makefile @@ -3,6 +3,8 @@ # Makefile for the Linux/LoongArch kernel. # +OBJECT_FILES_NON_STANDARD_head.o := y + extra-y := vmlinux.lds obj-y += head.o cpu-probe.o cacheinfo.o env.o setup.o entry.o genex.o \ diff --git a/arch/loongarch/power/Makefile b/arch/loongarch/power/Makefile index 58151d003e40..bbd1d4793e8b 100644 --- a/arch/loongarch/power/Makefile +++ b/arch/loongarch/power/Makefile @@ -1,3 +1,5 @@ +OBJECT_FILES_NON_STANDARD_suspend_asm.o := y + obj-y += platform.o obj-$(CONFIG_SUSPEND) += suspend.o suspend_asm.o diff --git a/arch/loongarch/vdso/Makefile b/arch/loongarch/vdso/Makefile index d89e2ac75f7b..37c7795990b8 100644 --- a/arch/loongarch/vdso/Makefile +++ b/arch/loongarch/vdso/Makefile @@ -1,6 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 # Objects to go into the VDSO. +OBJECT_FILES_NON_STANDARD := y + # Absolute relocation type $(ARCH_REL_TYPE_ABS) needs to be defined before # the inclusion of generic Makefile. ARCH_REL_TYPE_ABS := R_LARCH_32|R_LARCH_64|R_LARCH_MARK_LA|R_LARCH_JUMP_SLOT