Message ID | ed32fd1601cee4ea3be0792fd1bbe868fd27c5ea.1682673543.git.houwenlong.hwl@antgroup.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp820623vqo; Fri, 28 Apr 2023 03:10:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6en7sxj1nvg78BBJpF/uiJ0GVNin38qDnm2UETT1F22wgjTuXIysURDIA77PGsK8BjGQ/d X-Received: by 2002:a05:6a20:7da6:b0:f2:bb3f:3b3e with SMTP id v38-20020a056a207da600b000f2bb3f3b3emr4694763pzj.38.1682676624588; Fri, 28 Apr 2023 03:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682676624; cv=none; d=google.com; s=arc-20160816; b=Y2s7Ui5sC7tIUHV9wPStD3VFy4T/Mih4UVsnMU7AJWesaTpMLSFHaCOxkZGlI/pykP j+QYDsEGtpLImjKNpZuimVSkioxdbg1pEXBWePj6FHo+tDoE/GUVFZcnfniKRmIWsoZ7 RUrN+pZlm0mwXVP/CM/e3pwUMNQM7/gEXXOqjHLnGjz/VWhCGegfQlVyQiE6JuO2aeb3 QFdy4YuopHIQRYlJA3QiCNj+Fs9rllYqaumtRM4MdGfYWXy5Of1EQFybr9rThQT8aYva IvWalpma4UzrKw73qI3i312MKW/+W40Qy8aSNHZLfG1QVx7/1mkCC5SQ+l7U9UcJ2/e/ zK2w== 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; bh=XF7TzJPla4DjfGyNZjRZe8WddnRMZogoRxw+y3NYu0A=; b=nEwywVA4JITxquKm0KUf9T87m2vWZc4weTWTWBHPDmHmCGHs++qz+l7JO47EJlnwO+ G+4xiBQmMYyn7/+Y5u7Geo3qXIydjOxE6b8LNzeyCG+iXReL9XASPmP/rTv3XXmHwBwp TdhTsagQXKxm49qyDkRp2fLmFhmGnybiuW7ZBGJRClaukbPqPxWzD4KLOZJrESWzeIOZ UZdD6E7T3GcQw3dPMFZGJtczIM07DJvAuWdfzbL9sr8Uqbz5o01yIfRs4y/XYvwG+O5p +xbdNqrpgYg9gasQEWcwb1KStEbtnH2VAAmT4Ft8f83MBOj7fPFNNFdzp1CHZUFuIFrc zt0Q== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w70-20020a638249000000b0050f6aaf7f27si22229161pgd.331.2023.04.28.03.10.09; Fri, 28 Apr 2023 03:10:24 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345759AbjD1Jyn (ORCPT <rfc822;chrisjones.unixmen@gmail.com> + 99 others); Fri, 28 Apr 2023 05:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345437AbjD1Jya (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Apr 2023 05:54:30 -0400 Received: from out187-2.us.a.mail.aliyun.com (out187-2.us.a.mail.aliyun.com [47.90.187.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4534E59E4 for <linux-kernel@vger.kernel.org>; Fri, 28 Apr 2023 02:54:05 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047206;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---.STCEPbd_1682675571; Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.STCEPbd_1682675571) by smtp.aliyun-inc.com; Fri, 28 Apr 2023 17:52:51 +0800 From: "Hou Wenlong" <houwenlong.hwl@antgroup.com> To: linux-kernel@vger.kernel.org Cc: "Thomas Garnier" <thgarnie@chromium.org>, "Lai Jiangshan" <jiangshan.ljs@antgroup.com>, "Kees Cook" <keescook@chromium.org>, "Hou Wenlong" <houwenlong.hwl@antgroup.com>, "Thomas Gleixner" <tglx@linutronix.de>, "Ingo Molnar" <mingo@redhat.com>, "Borislav Petkov" <bp@alien8.de>, "Dave Hansen" <dave.hansen@linux.intel.com>, <x86@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>, "Nicolas Schier" <nicolas@fjasle.eu>, "Masahiro Yamada" <masahiroy@kernel.org> Subject: [PATCH RFC 19/43] x86/tools: Explicitly include autoconf.h for hostprogs Date: Fri, 28 Apr 2023 17:50:59 +0800 Message-Id: <ed32fd1601cee4ea3be0792fd1bbe868fd27c5ea.1682673543.git.houwenlong.hwl@antgroup.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <cover.1682673542.git.houwenlong.hwl@antgroup.com> References: <cover.1682673542.git.houwenlong.hwl@antgroup.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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?1764414324193918337?= X-GMAIL-MSGID: =?utf-8?q?1764414324193918337?= |
Series |
x86/pie: Make kernel image's virtual address flexible
|
|
Commit Message
Hou Wenlong
April 28, 2023, 9:50 a.m. UTC
The relocs tool needs access to the CONFIG_* symbols found in
include/generated/autoconf.h, however, the header file is not included.
so the #if CONFIG_FW_LOADER code in arch/x86/tool/relocs.c is never
compiled.
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Cc: Thomas Garnier <thgarnie@chromium.org>
Cc: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Cc: Kees Cook <keescook@chromium.org>
---
arch/x86/tools/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/x86/tools/Makefile b/arch/x86/tools/Makefile index 90e820ac9771..8af4aeeb72af 100644 --- a/arch/x86/tools/Makefile +++ b/arch/x86/tools/Makefile @@ -38,7 +38,9 @@ $(obj)/insn_decoder_test.o: $(srctree)/tools/arch/x86/lib/insn.c $(srctree)/tool $(obj)/insn_sanity.o: $(srctree)/tools/arch/x86/lib/insn.c $(srctree)/tools/arch/x86/lib/inat.c $(srctree)/tools/arch/x86/include/asm/inat_types.h $(srctree)/tools/arch/x86/include/asm/inat.h $(srctree)/tools/arch/x86/include/asm/insn.h $(objtree)/arch/x86/lib/inat-tables.c -HOST_EXTRACFLAGS += -I$(srctree)/tools/include +HOST_EXTRACFLAGS += -I$(srctree)/tools/include \ + -include include/generated/autoconf.h + hostprogs += relocs relocs-objs := relocs_32.o relocs_64.o relocs_common.o PHONY += relocs