From nobody Sat May 4 17:45:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1558711013; cv=none; d=zoho.com; s=zohoarc; b=GDCLg6lznGxYN/7sDwSpRTIcA79k9xA8vB8v48jmQojNGjyGGBSrUQZUHz384s4y6ow37tP7J9SUvRovW8IzAWFza+7WVhoIFKU3gRjNp7+QsS4YShMebIJkeFP6YWVLUbTwjAz5vVQmolTtRT39hbN6x1biEg8m9/qi6rctMPI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558711013; 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=2rn/q6MPSJEGI/vQ9Kg3YQY7yhjNcK8izheJBa88pGk=; b=du2MFHsTMNUPfxkOySVIzr2qBZRpIdDWrsKarRDz6tvoHh5v+3hLMdB7uuL0qwgGjdr5KDw3FitzdCNantswFqDsPzoVXV6Qv49Jw9T48Y82Mh6haAHIhPhozJRR3L56M+y19sNA/GZva8bJ7EOJ8yy70f6kUjxB3ycNthN7sIQ= ARC-Authentication-Results: i=1; mx.zoho.com; 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 Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 15587110131731011.109623428197; Fri, 24 May 2019 08:16:53 -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 1hUBuj-0008AP-I1; Fri, 24 May 2019 15:15:21 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hUBuh-0008AK-J3 for xen-devel@lists.xenproject.org; Fri, 24 May 2019 15:15:19 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id bcc10357-7e36-11e9-8980-bc764e045a96; Fri, 24 May 2019 15:15:17 +0000 (UTC) X-Inumbo-ID: bcc10357-7e36-11e9-8980-bc764e045a96 Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@MIAPEX02MSOL01.citrite.net 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; Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=23.29.105.83; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 23.29.105.83 as permitted sender) identity=mailfrom; client-ip=23.29.105.83; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:23.29.105.83 ip4:162.221.156.83 ~all" Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@MIAPEX02MSOL01.citrite.net) identity=helo; client-ip=23.29.105.83; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@MIAPEX02MSOL01.citrite.net"; x-conformance=sidf_compatible IronPort-SDR: dZ5ZSisvD3AvlonCOBpdLm5nAutxKbYfPXx1bHBYLdPn165gNUl6+oYXTpcNfOmWH5rKJEx/Tg QpWjBOxMK8nym/i2nKJn4lYEPq0gVDDg5wk29x/mQ09qY/tRKok2dUeIRFMLBZF/pfKswCAZb7 uVeN2a7kz9rFxBsBfK5SM74Z2Pn5zQXGUW+qh/2BXyJaRfdSmqtH95vR75DidFTBd81C41rSH3 i5dsWJ36gNuL9690PVDysx6nzP9ms15gbJpdR9M3NpTob5f3x6rSkPKfKyCrldUXonB/+p409F Uy4= X-SBRS: 2.7 X-MesageID: 893902 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 23.29.105.83 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.60,507,1549947600"; d="scan'208";a="893902" From: Andrew Cooper To: Xen-devel Date: Fri, 24 May 2019 16:15:04 +0100 Message-ID: <1558710904-8210-1-git-send-email-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] tests/x86emul: Annotate test blobs as executable code 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: Andrew Cooper , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This causes objdump to disassemble them, rather than rendering them as straight hex data. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 --- tools/tests/x86_emulator/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tests/x86_emulator/Makefile b/tools/tests/x86_emulator/M= akefile index 970ec3e..b54603d 100644 --- a/tools/tests/x86_emulator/Makefile +++ b/tools/tests/x86_emulator/Makefile @@ -149,7 +149,7 @@ $(addsuffix .h,$(TESTCASES)): %.h: %.c testcase.mk Make= file (echo 'static const unsigned int __attribute__((section(".test, \"ax\", = @progbits #")))' \ "$${prefix}_$(arch)$${flavor}[] =3D {"; \ od -v -t x $*.bin | sed -e 's/^[0-9]* /0x/' -e 's/ /, 0x/g' -e 's/$$/,/= '; \ - echo "};") >>$@.new; \ + echo "}; asm(\".type $${prefix}_$(arch)$${flavor}, STT_FUNC;\");") >>$@= .new; \ rm -f $*.bin; \ done; \ ) @@ -165,7 +165,7 @@ $(addsuffix -opmask.h,$(OPMASK)): %.h: opmask.S testcas= e.mk Makefile (echo 'static const unsigned int __attribute__((section(".test, \"ax\", = @progbits #")))' \ "$${prefix}_$(arch)$${flavor}[] =3D {"; \ od -v -t x $*.bin | sed -e 's/^[0-9]* /0x/' -e 's/ /, 0x/g' -e 's/$$/,/= '; \ - echo "};") >>$@.new; \ + echo "}; asm(\".type $${prefix}_$(arch)$${flavor}, STT_FUNC;\");") >>$@= .new; \ rm -f $*.bin; \ done; \ ) --=20 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel