From nobody Wed Dec 4 08:48:16 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=1725364444; cv=none; d=zohomail.com; s=zohoarc; b=KqyxEk+pejBF6BmQjs23tpwbiOhCL37hwG9vuAhm6FFiE1PsHN+Aj2lpEzu4HBX4qHTQcUFCzt/7b5Ud8ROzIYmPSs/lhpKZ7WK9zM2b1HSVpZB+31PAK0jGX9pe1t5Qv/q+RU2TlAI/WbKD9GfOHxWqI8ICxkNWsg+xDgCwR3Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725364444; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=L4InCMFHxmalswkqItHnDSE8LleHBiof1C5Zu3ugQko=; b=BWmqptId1nyAnNSAjMtmf5Fi71qwXbhCJWQsG909fRiu7mFKw/pNnapdXmsXFwF/ipl/+vw+oXAYp+xdFaBAErlQDC8jjHQVGFhAb1zL1XWe3QgxshSoEzd0KsLVlUK1216MjxmhKy3rzs9X4oWZ7UAzibHaUnFuIEYTi4Tl3Cc= 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 1725364444608613.4338335166908; Tue, 3 Sep 2024 04:54:04 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.789029.1198563 (Exim 4.92) (envelope-from ) id 1slS6N-0003wX-Ma; Tue, 03 Sep 2024 11:53:39 +0000 Received: by outflank-mailman (output) from mailman id 789029.1198563; Tue, 03 Sep 2024 11:53:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1slS6N-0003wQ-JR; Tue, 03 Sep 2024 11:53:39 +0000 Received: by outflank-mailman (input) for mailman id 789029; Tue, 03 Sep 2024 11:53:38 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1slS6M-0003un-Mb for xen-devel@lists.xenproject.org; Tue, 03 Sep 2024 11:53:38 +0000 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [2a00:1450:4864:20::52d]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 27fdc753-69eb-11ef-a0b2-8be0dac302b0; Tue, 03 Sep 2024 13:53:38 +0200 (CEST) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5c23f0a9699so3157813a12.1 for ; Tue, 03 Sep 2024 04:53:38 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c251a8719fsm3196060a12.31.2024.09.03.04.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 04:53:36 -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: 27fdc753-69eb-11ef-a0b2-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1725364417; x=1725969217; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=L4InCMFHxmalswkqItHnDSE8LleHBiof1C5Zu3ugQko=; b=kTS126kYLaqUim5VFYyg0MAhdDXDHVNoj+SOYPF6vz9Qa0Odtc6nvGlH4HCZ4G5s6z b4yjWx5b+PMeYRUiu7XDEp/ZAOWAK0omUvgoSX2dhK3Ib2+1QnjabQfcTJ8broIMT+J/ dVuKmDbRTxGBXoC2iKXjFVbWgDcTSWlmHvVn0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725364417; x=1725969217; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L4InCMFHxmalswkqItHnDSE8LleHBiof1C5Zu3ugQko=; b=r/0s+m6hU0/ZH35jBwlQ4D0RgThyHlsk1M/erRmEf/AUj8fG5YlkTASCrGBOHZd0Jg TJYhxxFteFhfEvXsgGhRjJ/ARLKtOOHBZI91Thylxrjw+mPaaHSOT26pDPcAkUtmzdcv jHnnGRh7KBrj2yDz+YInabwD1trz79yFAi+Zz7zw+LjEAbx29tXjZZlraWy/lJnI9XH2 xnV9H/SjQlKfRXy7Znq8PUpJIWL5pGwGVKLiyPFh/wI/vbCf85r1uDdCpOzYF9JQDcBk 0DAxv95w26RW0C9FatUnRdSiiffscXaPt2MhAZJ8gWpD0LZm0SrEvyFPPJmlbj4XZGbh yu7g== X-Gm-Message-State: AOJu0YyUIpAqMbW231z9RfJB1FmtsmaTXuAqPtdNLAM7h3AWUPzo8pv8 lfo/fi0prRKFUUaTGC06SJ8TyqkHjyvzINfhngYVaMfzRu+7jUae3oKXYI6n3PGXObAtv/gMm2i o X-Google-Smtp-Source: AGHT+IEujUjgvdxVyMB7+BXvcMeFCIYo/tpeuo9Ezvpq12+kOWSHuUZkx1x0EPVX/6HcabGy32DQMw== X-Received: by 2002:a05:6402:1e8c:b0:5c2:4dcc:b937 with SMTP id 4fb4d7f45d1cf-5c24dccbb4amr5415393a12.24.1725364416822; Tue, 03 Sep 2024 04:53:36 -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 v2] x86/boot: Fix include paths for 32bit objects Date: Tue, 3 Sep 2024 12:53:34 +0100 Message-Id: <20240903115334.3526368-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240903104940.3514994-1-andrew.cooper3@citrix.com> References: <20240903104940.3514994-1-andrew.cooper3@citrix.com> 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: 1725364445525116600 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 copy all -I (and -Wa,-I) arguments from XEN_CFLAGS. Signed-off-by: Andrew Cooper Reviewed-by: Roger Pau Monn=C3=A9 --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Anthony PERARD v2: * Copy all -I from XEN_CFLAGS https://cirrus-ci.com/build/6740464739549184 Note that this misses the overall '-include ./include/xen/config.h' but it = was missing before as well. --- xen/arch/x86/boot/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile index 03d8ce3a9e48..1ec2b123305d 100644 --- a/xen/arch/x86/boot/Makefile +++ b/xen/arch/x86/boot/Makefile @@ -14,10 +14,7 @@ $(obj)/head.o: $(head-bin-objs:.o=3D.bin) 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 -ifneq ($(abs_objtree),$(abs_srctree)) -CFLAGS_x86_32 +=3D -I$(objtree)/include -endif -CFLAGS_x86_32 +=3D -I$(srctree)/include +CFLAGS_x86_32 +=3D -nostdinc $(filter -I% -Wa$(comma)-I%,$(XEN_CFLAGS)) =20 # override for 32bit binaries $(head-bin-objs): CFLAGS_stack_boundary :=3D --=20 2.39.2