]> xenbits.xensource.com Git - people/gdunlap/xen.git/commitdiff
test_x86_emulate: fix inline assembly in blowfish code
authorJan Beulich <jbeulich@suse.com>
Fri, 6 Mar 2015 15:56:16 +0000 (16:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 Mar 2015 15:56:16 +0000 (16:56 +0100)
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 <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/blowfish.c

index 8b9280c063c2f30f6b9be9cf2e757282f442cbdc..494a4c6e74ef1b5b982af1f5e7fe17e1ab5240c4 100644 (file)
@@ -21,7 +21,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 uint64_t blowfish_test(uint64_t input);
 
 asm (
-    ".globl _start\n"
+    "\t.text\n"
+    "\t.globl _start\n"
     "_start:\n"
 #if defined(__i386__)
     "push %edx; push %eax; "