http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55289



--- Comment #29 from Alexander Potapenko <glider at google dot com> 2012-11-14 
16:40:53 UTC ---

Index: mach_override.c

===================================================================

--- mach_override.c    (revision 167724)

+++ mach_override.c    (working copy)

@@ -725,6 +725,8 @@

         { 0x2, {0xFF, 0x00}, {0x89, 0x00} },                               //

mov r/m32,r32 or r/m16,r16

         { 0x3, {0xFF, 0xFF, 0xFF}, {0x49, 0x89, 0xF8} },                   //

mov %rdi,%r8

         { 0x4, {0xFF, 0xFF, 0xFF, 0xFF}, {0x40, 0x0F, 0xBE, 0xCE} },       //

movsbl %sil,%ecx

+        { 0x7, {0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00},

+               {0x48, 0x8D, 0x05, 0x00, 0x00, 0x00, 0x00} },  // lea

$imm(%rip),%rax

         { 0x3, {0xFF, 0xFF, 0xFF}, {0x0F, 0xBE, 0xCE} },  // movsbl, %dh, %ecx

         { 0x3, {0xFF, 0xFF, 0x00}, {0xFF, 0x77, 0x00} },  // pushq $imm(%rdi)

         { 0x2, {0xFF, 0xFF}, {0xDB, 0xE3} }, // fninit





===================================================================

Please also make sure the interceptors work in 32-bit programs

Reply via email to