From nobody Sat Nov 23 21:13:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1725360623; cv=none; d=zohomail.com; s=zohoarc; b=FKepauS4KtA/+UDnTJbKFA7NHOLlmcf0iw3WrFCvSYparEls+sYfwXhTfL7KHuCkC2jFZDvGolrmndPWmA0xHD4yQv2peiLHtfOFQpf0ZOv3r+Vl8lqoK1QxEB57eKr736uin/ZlUGx86Sx4NiXDUuddtfngg46WStXr0pDcd1w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725360623; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=9bNnGoVXFLfof9ecQUE2WnMPy0Xh1ncsIJEmwtEKVtA=; b=bewQIoCIweBmBhhmw8NB2ioXRZ6EtVGRww2Vy82of8feaP45Pf+RxJcQpsmglAYjKO5RieEcSIsWfdtEr746dIh5vuFxfTXE96qgzYS4M3zT19m/SPDIHxJxtMfl8CTxm77qdqXJcDn+iwFlxrFt0xNRLIeo/b4Gb89nYbxas4A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1725360623000949.0236689945503; Tue, 3 Sep 2024 03:50:23 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.788947.1198453 (Exim 4.92) (envelope-from ) id 1slR6c-00024T-GN; Tue, 03 Sep 2024 10:49:50 +0000 Received: by outflank-mailman (output) from mailman id 788947.1198453; Tue, 03 Sep 2024 10:49:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1slR6c-00024M-D9; Tue, 03 Sep 2024 10:49:50 +0000 Received: by outflank-mailman (input) for mailman id 788947; Tue, 03 Sep 2024 10:49:49 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1slR6b-00024G-NV for xen-devel@lists.xenproject.org; Tue, 03 Sep 2024 10:49:49 +0000 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [2a00:1450:4864:20::62c]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 3cd43c4c-69e2-11ef-99a1-01e77a169b0f; Tue, 03 Sep 2024 12:49:47 +0200 (CEST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a8679f534c3so538910466b.0 for ; Tue, 03 Sep 2024 03:49:47 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8a1bf41b29sm120149966b.83.2024.09.03.03.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 03:49:45 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 3cd43c4c-69e2-11ef-99a1-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1725360587; x=1725965387; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9bNnGoVXFLfof9ecQUE2WnMPy0Xh1ncsIJEmwtEKVtA=; b=PtdpJfQHZTn+cWHQG8Jvk6tlQl5WecQqG17zq0mym0TLG7nmuRZgvViVi6lGI/DM84 cfIWoXA7KwH3SgGpZmd+Q0dkQARgB7vgof6PNpcG9EaCTqJiXWXt2TeS9yxgXzh6Ps0n whhc3q7eyRJuDbt0VlfWvceXU6N1TEOxaEJ+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725360587; x=1725965387; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9bNnGoVXFLfof9ecQUE2WnMPy0Xh1ncsIJEmwtEKVtA=; b=DmPrEaPLo7hhJb1WKthC6AAstFBbpOEzjFj1X76qWsUaj++t1GwYE9mYXcIy0aj0x5 eVaqlfa5L0r9D/IFrIeHtgDcLPYPx40TtIDlvtOMsMGP/0ue78AB403CtIBlj5G2IFhP cpSGN5P7cgBj5iNOhn1ruYUZm/LxZWRimwMXtE00gRnpfO/WWs50YJpcPAQs8x92KcCi Tij6GzmEE19SM9Emw6dOZ059/n7oc986xWPFt6EcCBp9k7m84MFCf4TusvsB+zEmo7mn kmfb1fU5GSS/LA1+5nQTJ+mBkKsUVWvqE+pbAEXMPPzQ/qwafmU+rbXLUAzkLk4/m6z2 SD3w== X-Gm-Message-State: AOJu0YwrTaC/jy1T1tqSkJMpO8Rot6WhqECCd6WKGm5rAq3EkD0UpjiL yz57CxHzG1PFtexeNOp5NUv5T+Us1MP1pAVSbYU8OZ9zri1GSjrplpJk41QobTrqOa3mXECOsGt n X-Google-Smtp-Source: AGHT+IE/OpVatsAdSLJIyBGiI7Oytnn1jl+O7XmPoYspliEqFHPWqV8nPmXgm8zBSaMCnf6xD+BxjQ== X-Received: by 2002:a17:907:970f:b0:a86:7199:af37 with SMTP id a640c23a62f3a-a89d8ab4ac9mr613165966b.58.1725360586209; Tue, 03 Sep 2024 03:49:46 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Anthony PERARD Subject: [PATCH] x86/boot: Reinstate -nostdinc for CFLAGS_x86_32 Date: Tue, 3 Sep 2024 11:49:40 +0100 Message-Id: <20240903104940.3514994-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1725360624684116600 Most of Xen is build using -nostdinc and a fully specified include path. However, the makefile line: $(head-bin-objs): XEN_CFLAGS :=3D $(CFLAGS_x86_32) -fpic discards XEN_CFLAGS and replaces them with CFLAGS_x86_32. Reinstate -nostdinc, and add the arch include path to the command line. Th= is is a latent bug for now, but it breaks properly with subsequent include changes. Fixes: d58a509e01c4 ("build,x86: remove the need for build32.mk") Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Anthony PERARD --- xen/arch/x86/boot/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile index 03d8ce3a9e48..19eec01e176e 100644 --- a/xen/arch/x86/boot/Makefile +++ b/xen/arch/x86/boot/Makefile @@ -13,11 +13,11 @@ $(obj)/head.o: $(head-bin-objs:.o=3D.bin) =20 CFLAGS_x86_32 :=3D $(subst -m64,-m32 -march=3Di686,$(XEN_TREEWIDE_CFLAGS)) $(call cc-options-add,CFLAGS_x86_32,CC,$(EMBEDDED_EXTRA_CFLAGS)) -CFLAGS_x86_32 +=3D -Werror -fno-builtin -g0 -msoft-float +CFLAGS_x86_32 +=3D -Werror -nostdinc -fno-builtin -g0 -msoft-float ifneq ($(abs_objtree),$(abs_srctree)) -CFLAGS_x86_32 +=3D -I$(objtree)/include +CFLAGS_x86_32 +=3D -I$(objtree)/include -I$(objtree)/arch/$(SRCARCH)/inclu= de endif -CFLAGS_x86_32 +=3D -I$(srctree)/include +CFLAGS_x86_32 +=3D -I$(srctree)/include -I$(srctree)/arch/$(SRCARCH)/inclu= de =20 # override for 32bit binaries $(head-bin-objs): CFLAGS_stack_boundary :=3D --=20 2.39.2