Skip to contentSkip to conversation

test_x86_emulate: fix inline assembly in blowfish code

PATCH In review Jan Beulich 2 participants 2 messages Mar 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test_x86_emulate: fix inline assembly in blowfish code

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.

tools/tests/x86_emulator/blowfish.c +2 -1
@@ -21,7 +21,8 @@ Foundation, Inc., 59 Temple Place, Suite
 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; "

test_x86_emulate: fix inline assembly in blowfish code

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.

tools/tests/x86_emulator/blowfish.c +2 -1
@@ -21,7 +21,8 @@ Foundation, Inc., 59 Temple Place, Suite
 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; "

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

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.

Quoted 16 lines
tools/tests/x86_emulator/blowfish.c +2 -1
@@ -21,7 +21,8 @@ Foundation, Inc., 59 Temple Place, Suite
 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; "