From nobody Thu Mar 28 13:30:43 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1558012984; cv=none; d=zoho.com; s=zohoarc; b=VhjfekpkleYWHXfqxqtRxoI0etP2cC05zzN0vMFSptWpKWpogIbmVnWIzaUdn4JLi8oZbeC0oljJKK+hwriXIZ+lyQHa2Ji53cx6yY/kSkpsJDyT+ijtTql53eShKQqZ62GpkEMfkF4DJqUDkPBx1YJTkC1RHgwjOsW8uF65fuA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558012984; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=nRNnuk1bUvNplAQ6FLHZI8cUQy7fol/jXf4GOPle5XI=; b=cNRI0PoIL9PgKX/p7ArQJfMsonV9NFZazdioRoGSFeLfv38ZLwcRBBVC0i5Cy8/szCXtNbbx1Wi5dNony3axyqMLpdLOPraxxh+6mG4LJZapH/y9dfXDONgmDH8noDbtqOkW4K7gVvxJYKLQsZd7eS3BiP5PP27ZTG2z9GC3/+M= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1558012984174875.9989763572624; Thu, 16 May 2019 06:23:04 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hRGKX-00069j-Uu; Thu, 16 May 2019 13:21:53 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hRGKW-00069e-Q7 for xen-devel@lists.xenproject.org; Thu, 16 May 2019 13:21:52 +0000 Received: from mail-lj1-x243.google.com (unknown [2a00:1450:4864:20::243]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 908ca502-77dd-11e9-8980-bc764e045a96; Thu, 16 May 2019 13:21:51 +0000 (UTC) Received: by mail-lj1-x243.google.com with SMTP id d15so3075760ljc.7 for ; Thu, 16 May 2019 06:21:51 -0700 (PDT) Received: from 3489.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id o7sm879335ljh.57.2019.05.16.06.21.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 06:21:49 -0700 (PDT) X-Inumbo-ID: 908ca502-77dd-11e9-8980-bc764e045a96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qSw0F03P/izFXLYzXdvZZ7Fc5VHruxkPAjVQ9AAO9gc=; b=PvWVEgbv6hzWlUjooWvjpFfhfTpbekdQ/bRc9ee31DdNnj63oPwIePtkiBGEQ95PvC ZGzhERwGr/AAsZqspt6+FnKoE7BwVQVlfU4/zyj0TQ0gnur4yc+y7UuX9vAbVeN4eKxa PQgZNoqHmtyxlzO/ayMaGJV4HQIntm5xZY9Xa+FIf7QdmOeYB6PyXUx/SegD5pv6T2EN /Eg6QRqh1ANOgnsDh8MpT3xJHN/Aj6o0MkaIjIRb+LlT65zZVJoJ2ZcPZnnRm83bnQ0n 3ubSYCzh8E5lqdygBYmmxFtqCIGnrefQRO1Xcz46XlZHTZJcQg8Hj/+Kw1I9cSL02tyh O6ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qSw0F03P/izFXLYzXdvZZ7Fc5VHruxkPAjVQ9AAO9gc=; b=UBSbazb8ODAWe0inFJJO2NpL+9DfM9lSiYvnfsbzpVh53aPe9zn4M8rHw9iZhKHRTX HdLeP5Pmq3rFhw1BVqyZOhY5+nwfhN7BpacM953ShLn37E119qeSbL8YOEvDpISJr6Fw VtlBNkKkTGUjaUOQcqU+vSJ6QLbLl3ktjHEWXsPqYMNr5rgLadcNHR48WxEHuQ8z1/Iz Y6Z7tlfUcQhknx4MPU7HEyDxPI96N5hXolZpBR6/ReV7RFR73TAsyp1k6cEGxnCyLTZU gwP7wjp8LOu3X3yT/IbzWRPaYxreoZJ4vJ3w7JlzfSih7wXjT513KayUHKQsXX6JERih kMRg== X-Gm-Message-State: APjAAAVTnABVDvF96nWCXEqgkKmT5UklsBhsBOcrO2nDpBGO9bk11+D4 Zyal6DAZZNhRfu9YaBB+F+VSEZ5Hf3eO/g== X-Google-Smtp-Source: APXvYqzofJIvYa2MPd5Ok1dR/t2oJpw14CLTukA2WOBfR/2ToRUwmB9gNucZAE7PFq8BMJE5r5MANA== X-Received: by 2002:a2e:9a8f:: with SMTP id p15mr23922525lji.191.1558012910080; Thu, 16 May 2019 06:21:50 -0700 (PDT) From: Viktor Mitin To: xen-devel@lists.xenproject.org Date: Thu, 16 May 2019 16:20:16 +0300 Message-Id: <20190516132016.8032-1-viktor.mitin.19@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Xen-devel] [PATCH v2] coverage: filter out libfdt.o and libelf.o X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Viktor Mitin MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The patch resolves 'xencov' crashes in case of Aarch64. All the .init.* sections are stripped after boot, it means that anything in .init.data cannot be accessed anymore. The build system explicitly compiles any .init binary without gcov option. The problem is coming from libfdt and libelf. The entire library is moved to .init using: $(OBJCOPY) $(foreach s,$(SECTIONS),--rename-section .$(s)=3D.init.$(s)) $< = $@ So we need to tell the top Makefile to filter out libfdt and libelf. Reported-by: Viktor Mitin Suggested-by: Julien Grall Signed-off-by: Viktor Mitin Acked-by: Andrew Cooper Reviewed-by: Wei Liu Tested-by: Viktor Mitin Reviewed-by tag mean the person has carefully reviewed your code and is hap= py=20 --- Changes from v1: - coverage: filtered out libelf as well --- xen/common/libelf/Makefile | 1 + xen/common/libfdt/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/xen/common/libelf/Makefile b/xen/common/libelf/Makefile index 5bf8f764f1..3d9e38f27e 100644 --- a/xen/common/libelf/Makefile +++ b/xen/common/libelf/Makefile @@ -1,4 +1,5 @@ obj-bin-y :=3D libelf.o +nocov-y +=3D libelf.o =20 SECTIONS :=3D text data $(SPECIAL_DATA_SECTIONS) =20 diff --git a/xen/common/libfdt/Makefile b/xen/common/libfdt/Makefile index d81f54b6b8..c075bbf546 100644 --- a/xen/common/libfdt/Makefile +++ b/xen/common/libfdt/Makefile @@ -3,6 +3,7 @@ include Makefile.libfdt SECTIONS :=3D text data $(SPECIAL_DATA_SECTIONS) =20 obj-y +=3D libfdt.o +nocov-y +=3D libfdt.o =20 CFLAGS +=3D -I$(BASEDIR)/include/xen/libfdt/ =20 --=20 2.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel