From: "Jan Beulich" Subject: [PATCH] test_x86_emulate: fix inline assembly in blowfish code Date: Fri, 06 Mar 2015 11:30:59 +0000 Message-ID: <54F99E030200007800066F8F@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartA99C09E3.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YTqTA-0003hh-CU for xen-devel@lists.xenproject.org; Fri, 06 Mar 2015 11:31:04 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Andrew Cooper , Keir Fraser , Euan Harris List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartA99C09E3.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline With certain gcc versions, commit 1166ecf781 ("tools/Rules.mk: Don't optimize debug builds; add macro debugging information") results in the file scope inline assembly no longer being emitted to the .text section without explicitly switching to it, which causes the blowfish test to signal SEGV. Signed-off-by: Jan Beulich --- a/tools/tests/x86_emulator/blowfish.c +++ b/tools/tests/x86_emulator/blowfish.c @@ -21,7 +21,8 @@ Foundation, Inc., 59 Temple Place, Suite uint64_t blowfish_test(uint64_t input); =20 asm ( - ".globl _start\n" + "\t.text\n" + "\t.globl _start\n" "_start:\n" #if defined(__i386__) "push %edx; push %eax; " --=__PartA99C09E3.1__= Content-Type: text/plain; name="x86emul-test-blowfish-text.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86emul-test-blowfish-text.patch" test_x86_emulate: fix inline assembly in blowfish code=0A=0AWith certain = gcc versions, commit 1166ecf781 ("tools/Rules.mk: Don't=0Aoptimize debug = builds; add macro debugging information") results in the=0Afile scope = inline assembly no longer being emitted to the .text section=0Awithout = explicitly switching to it, which causes the blowfish test to=0Asignal = SEGV.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/tools/tests/x86_emulator/blowfish.c=0A+++ b/tools/tests/x86_emulator/blow= fish.c=0A@@ -21,7 +21,8 @@ Foundation, Inc., 59 Temple Place, Suite=0A = uint64_t blowfish_test(uint64_t input);=0A =0A asm (=0A- ".globl = _start\n"=0A+ "\t.text\n"=0A+ "\t.globl _start\n"=0A "_start:\n"= =0A #if defined(__i386__)=0A "push %edx; push %eax; "=0A --=__PartA99C09E3.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartA99C09E3.1__=--