From nobody Sun Nov 24 08:45:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1723789404; cv=none; d=zohomail.com; s=zohoarc; b=TCjRouXpCvGFW920ftnp6SwoLYfVsG7LCBzJBcg4dka6ZbCmx+QXxfutPnAfzB13vKFsdSOx8k+rk5zRRPMSZMyrNWulAeP6mqHxYP4jrPoYP62WMT4Pf9D9Ra6nss1B1w8isU07TzG8i2IUTFaYQzbvO3VPX/v/owfcoOvHbmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1723789404; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=tjtZn77GLTmvYEORgc/U28GN1RbeUXV/+OVfzgS+jrM=; b=nWJwbVj+LUABs9IxIFMxwXhGgv5Xs5fB/UG5K6iO7YS0WEQFckpmg4+nAH5KHCA2AA9jOcUzrG8DvjkfsBwVQFQYxeBY/iqWtYdQT60ms0Lm2qqmVqnnWNXxXv/qrNxo36fpAZ0Hj/4chbzvDbv3YCPl0KWzw1fX8knhwq2FqiY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1723789404230687.3179994607142; Thu, 15 Aug 2024 23:23:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seqMT-0004FO-JR; Fri, 16 Aug 2024 02:22:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seqMR-00048e-Ka for qemu-devel@nongnu.org; Fri, 16 Aug 2024 02:22:56 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seqML-0004Mj-WC for qemu-devel@nongnu.org; Fri, 16 Aug 2024 02:22:55 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-710d1de6e79so1249061b3a.0 for ; Thu, 15 Aug 2024 23:22:49 -0700 (PDT) Received: from localhost ([157.82.207.214]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-201f02fb432sm19260085ad.54.2024.08.15.23.22.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Aug 2024 23:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1723789368; x=1724394168; darn=nongnu.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=tjtZn77GLTmvYEORgc/U28GN1RbeUXV/+OVfzgS+jrM=; b=jK5alqIFaNlih1fAiojZx7cEXxqv6q15edswdocMUmJTQRhC7k+GRNyePCkNw8xAfE GfnQtsEMyX+qZuUQjscMt2sx8DK7TJkzTiay/ippQjxCxg8ARcy/I7q/VV+VRs2nT1OT r/4ykKuaSjrccKKP0gTloj8fYVEjUt5nxJL9mKxDBzgoFf3kU41JE8XRjL+flHL2Bjed xV67UdNX5osBMsPwMCk2viyqXPN3Vd0jFoiQ99nmfhEPAXNXRZE4wanajD0h/ajzOCnR 025i1Va8PZF/+fwiV/QdUOrFdhgkn/XjgQxrWY+Y/4pWD95a15VelMndtLZ44FZKFBcB 3XKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723789368; x=1724394168; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tjtZn77GLTmvYEORgc/U28GN1RbeUXV/+OVfzgS+jrM=; b=WPMguW6UbWP3YW6Yl16nsPSs+V7sxF22Ydop7oD3b2wSvW5o9B+Ss5v1/aiTXoMBfn sbDEMnltAVVTeiFUPOzGKYU59RdsLjwEImp4Z6Fa8whvkNOnVMMr+YlADdfXREvxDMen xV2jiRXXB+pCiDjWvlAC+Her+rpTs6gbaih+bgwCPQhT07k+31BoO1rkPhwM0O9hVJSm N2Cq868R/UODJXNfNeRugB22x8G+lGeHprC5oXbkeuXjDV7ivtrT7H+OPHzsGpnVXKrk JjaGdTI3TnqVPDE98Idq7IhUGegsOz6y6mu5T/3XZ2ap5vb2wj8EIgSvhkiM9hXsZiB6 TLNQ== X-Gm-Message-State: AOJu0Yy6MouzWKz0NLH8jicuTUNLnrXxm0e49Tfgidjcmk0PDmOXS/bs HGIg+MVt7J1VObVDSwT1ROBdYXTLC+noK2gYkVEpesv7lP6dF11qenay3B0lNKUE4nFuWMCQIWp G X-Google-Smtp-Source: AGHT+IHLmksn4tOdIz9raDDD4VFRGnC1H0sEzwdSM258WE4LiJuyEjivXkViWK8egQCXGzYdiiFR3Q== X-Received: by 2002:a05:6a20:d492:b0:1c0:f315:ec7e with SMTP id adf61e73a8af0-1c904fc9edamr2595808637.28.1723789368040; Thu, 15 Aug 2024 23:22:48 -0700 (PDT) From: Akihiko Odaki Date: Fri, 16 Aug 2024 15:22:16 +0900 Subject: [PATCH v3] meson: Use -fno-sanitize=function when available MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240816-function-v3-1-32ff225e550e@daynix.com> X-B4-Tracking: v=1; b=H4sIABfwvmYC/22MQQ6CMBBFr2JmbQ0zJam68h7GRWco0oXFtNhAC He3sMLE5fv5782QXPQuwfUwQ3TZJ9+HAvp4AOlseDrlm8JAFdWVwVq1nyBDOSnTaBJD2jILlPs 7utaPW+r+KNz5NPRx2soZ1/VPJKNCJUJWuEaDbG+NnYIfT9K/YK1k2pl02ZlUzDKiZTyzrvjHX JblC0SbFYLbAAAA To: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal , Paolo Bonzini , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= Cc: qemu-devel@nongnu.org, Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::42e; envelope-from=akihiko.odaki@daynix.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1723789404817116600 Commit 23ef50ae2d0c (".gitlab-ci.d/buildtest.yml: Use -fno-sanitize=3Dfunction in the clang-system job") adds -fno-sanitize=3Dfunction for the CI but doesn't add the flag in the other context. Add it to meson.build for such. It is not removed from .gitlab-ci.d/buildtest.yml because -fno-sanitize=3Dfunction in meson.build does not affect --extra-cflags due to argument ordering. Signed-off-by: Akihiko Odaki --- Changes in v3: - I was not properly dropping the change of .gitlab-ci.d/buildtest.yml but only updated the message. v3 fixes this. (Thomas Huth) - Link to v2: https://lore.kernel.org/r/20240729-function-v2-1-2401ab18b30b= @daynix.com Changes in v2: - Dropped the change of: .gitlab-ci.d/buildtest.yml - Link to v1: https://lore.kernel.org/r/20240714-function-v1-1-cc2acb4171ba= @daynix.com --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 5613b62a4f42..a4169c572ba9 100644 --- a/meson.build +++ b/meson.build @@ -609,6 +609,7 @@ if host_os !=3D 'openbsd' and \ endif =20 qemu_common_flags +=3D cc.get_supported_arguments(hardening_flags) +qemu_common_flags +=3D cc.get_supported_arguments('-fno-sanitize=3Dfunctio= n') =20 add_global_arguments(qemu_common_flags, native: false, language: all_langu= ages) add_global_link_arguments(qemu_ldflags, native: false, language: all_langu= ages) --- base-commit: 93b799fafd9170da3a79a533ea6f73a18de82e22 change-id: 20240714-function-7d32c723abbc Best regards, --=20 Akihiko Odaki