From nobody Mon Apr 6 20:13:03 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C30A3A4F59; Wed, 18 Mar 2026 09:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825589; cv=none; b=W+f9V30z0F5qKgdS+r/CApYeBFU5uTFr6G/BS83vgEI3UdwpizQ47RDYKJfebR9NspS85W5W3vCLA0GOyGz61GGUbk10bt6+/SNLavueGdC9aFJKWj0MXH9d7YA5oR9sbxeNgDRPC57GpGcUsiHBG323yce3fC2S7IZDSRnm/F0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773825589; c=relaxed/simple; bh=WrTOUbk4CcOghtzOj6w4eBn6soi/8Xdlw6skjA/jAYw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dgXJdwmhnqE9EIxljRKREvOut2fwV4upUOI6EnWoJvLu+ZlYK4hsmbHvZwRwaKl+oAuBHcQovqhq9QGVwzl5XgkvG9ve83jGUi0iJRHzy1qJNgo4SnJUAPdkmzBi7plGFSzUDNgQKQW5cERbK3mwnwEBOl0GLLPbHb1NkMU2f8s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E2E2C2050; Wed, 18 Mar 2026 02:19:41 -0700 (PDT) Received: from e132581.arm.com (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 107DF3F73B; Wed, 18 Mar 2026 02:19:38 -0700 (PDT) From: Leo Yan Date: Wed, 18 Mar 2026 09:17:01 +0000 Subject: [PATCH v5 17/26] tools: objtool: Append extra host cflags Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260318-tools_build_fix_zero_init-v5-17-bbeffd8da199@arm.com> References: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> In-Reply-To: <20260318-tools_build_fix_zero_init-v5-0-bbeffd8da199@arm.com> To: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , James Clark , Kees Cook , Quentin Monnet , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Adrian Hunter , Masami Hiramatsu , William Breathitt Gray , Barry Song , Qinxin Xia , Bartosz Golaszewski , Kent Gibson , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Andrew Morton , Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Josh Poimboeuf , Robert Moore , Len Brown , Srinivas Pandruvada , Tejun Heo , David Vernet , Andrea Righi , Changwoo Min , Mark Brown , Steven Rostedt , Gabriele Monaco , Shuah Khan , Jiri Kosina , Benjamin Tissoires Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773825421; l=851; i=leo.yan@arm.com; s=20250604; h=from:subject:message-id; bh=WrTOUbk4CcOghtzOj6w4eBn6soi/8Xdlw6skjA/jAYw=; b=ZuqwCYLhUZ027JAyzszuyC7oTejU7IdJQsyCGgYIzMWOpFbOC5JDkkJsFDqc5grSGh8ibGJrg ODfuN2vgZiKBs4VsKTy8R4ulFik3bc3cFMqRg+Ngs9HfrI6e+vXWbUD X-Developer-Key: i=leo.yan@arm.com; a=ed25519; pk=k4BaDbvkCXzBFA7Nw184KHGP5thju8lKqJYIrOWxDhI= Append HOST_EXTRACFLAGS to HOSTCFLAGS so that additional flags can be applied to the host compiler. Acked-by: Josh Poimboeuf Signed-off-by: Leo Yan --- tools/objtool/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index b71d1886022e9b3d9fde52bf73bd502aa20d173e..a41fb2a46217bb14fcd8d0941c9= 9d102945c3f2d 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -60,6 +60,8 @@ INCLUDES :=3D -I$(srctree)/tools/include \ -I$(srctree)/tools/objtool/arch/$(SRCARCH)/include \ -I$(LIBSUBCMD_OUTPUT)/include =20 +HOSTCFLAGS +=3D $(HOST_EXTRACFLAGS) + OBJTOOL_CFLAGS :=3D -std=3Dgnu11 -fomit-frame-pointer -O2 -g $(WARNINGS) \ $(INCLUDES) $(LIBELF_FLAGS) $(LIBXXHASH_CFLAGS) $(HOSTCFLAGS) =20 --=20 2.34.1