From nobody Sat Feb 7 06:39:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620313751; cv=none; d=zohomail.com; s=zohoarc; b=FvwHtNuRATqAO676m2FHhIOX9rfA7I2u/CBx0tAlb4HMuRDyneId6jF0JT9MG3kMbUoxk1NydK2yDrQCHsulmcEJcUKYcGKiRimd7SUkeHCIJ7bAL08jdIyj+5q/5XQp5BCiVv2v6NJAyy2L5z9vJ2/jj4QrqHeM+1cUk+oWJ/Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620313751; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bQb/YtPr8UO6koq6vZ+sxJ+Wh65rla1v1IriL9n37sU=; b=G/oQTmgWjj4NisVrsrIqyUxR2yo+nk/bzuo0UePSqTSBGsT+1EQQ0i+w0x3YRh1LofDL0k4qH1cXu0fWtCC59+0YLKNlfZ9ivAlVoY6p2rQbvP4eIq3pmvWnOR0YWlYac7YuttDthBwOhSIh0xceKwxmWHhBWzbVx95G2R/5LPA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1620313751496593.9931829727722; Thu, 6 May 2021 08:09:11 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-386-Vw9-PUJ0PruTgCFu5OIjzA-1; Thu, 06 May 2021 11:09:06 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B1C88800685; Thu, 6 May 2021 15:09:01 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6BAA157998; Thu, 6 May 2021 15:09:01 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2BE331800B8A; Thu, 6 May 2021 15:09:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 146F8j7j008304 for ; Thu, 6 May 2021 11:08:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id 18B84189A5; Thu, 6 May 2021 15:08:45 +0000 (UTC) Received: from work.redhat.com (ovpn-113-21.ams2.redhat.com [10.36.113.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5BBBE60657; Thu, 6 May 2021 15:08:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620313749; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bQb/YtPr8UO6koq6vZ+sxJ+Wh65rla1v1IriL9n37sU=; b=XONpIPRrz845hbsUwvoUkdeJqYkt9m0Z8D1InJiK8DWfFNCOUyRWmpBP4Pcp76d3L164oR IkRoIgmr+0gaf97kjKMwX4h9SSdN9ME72+ca0vDIxP+/XvM5OBUN2n9zaXloD/9SUfgAqt ttbIv0XOcwOKBYHNj2UR0VBPxnGk7C8= X-MC-Unique: Vw9-PUJ0PruTgCFu5OIjzA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH v2 2/7] meson: Allow undefined symbols when sanitizers are enabled Date: Thu, 6 May 2021 17:08:33 +0200 Message-Id: <20210506150838.30129-3-twiederh@redhat.com> In-Reply-To: <20210506150838.30129-1-twiederh@redhat.com> References: <20210506150838.30129-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" When enabling sanitizers, clang adds some function symbols when instrumenting the code. The exact names of those functions are an implementation detail and should therefore not be added to any syms file. This patch prevents build failures due to those symbols not present in the syms file when building with sanitizers enabled. Signed-off-by: Tim Wiederhake Reviewed-by: Pavel Hrdina --- meson.build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 997a23f1b0..02feb0e43d 100644 --- a/meson.build +++ b/meson.build @@ -491,9 +491,12 @@ libvirt_nodelete =3D cc.get_supported_link_arguments([ '-Wl,-z,nodelete', ]) =20 -libvirt_no_undefined =3D cc.get_supported_link_arguments([ - '-Wl,-z,defs', -]) +libvirt_no_undefined =3D [] +if get_option('b_sanitize') =3D=3D 'none' + libvirt_no_undefined +=3D cc.get_supported_link_arguments([ + '-Wl,-z,defs', + ]) +endif =20 libvirt_no_indirect =3D cc.get_supported_link_arguments([ '-Wl,--no-copy-dt-needed-entries', --=20 2.26.3