Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mach_override.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2012-05-03 19:26:56 +0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2012-05-03 19:26:56 +0400
commitc4b26aded8d0277b6f2883cca972ebfed4064d89 (patch)
treee36a09e75e22aab6c52de9894d1b35c07547e730
parent9c7656590716ae2eec9b069212e74676021d8a1a (diff)
Add "mov $imm, %eax" to the known instructions. This is needed to
work on 'write' on 32 OS X 10.7.
-rw-r--r--mach_override/mach_override.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mach_override/mach_override.c b/mach_override/mach_override.c
index 24d730e..8d4b4c8 100644
--- a/mach_override/mach_override.c
+++ b/mach_override/mach_override.c
@@ -583,6 +583,7 @@ static AsmInstructionMatch possibleInstructions[] = {
{ 0x3, {0xFF, 0x4F, 0x00}, {0x8B, 0x45, 0x00} }, // mov $imm(%ebp), %reg
{ 0x3, {0xFF, 0x4C, 0x00}, {0x8B, 0x40, 0x00} }, // mov $imm(%eax-%edx), %reg
{ 0x4, {0xFF, 0xFF, 0xFF, 0x00}, {0x8B, 0x4C, 0x24, 0x00} }, // mov $imm(%esp), %ecx
+ { 0x5, {0xFF, 0x00, 0x00, 0x00, 0x00}, {0xB8, 0x00, 0x00, 0x00, 0x00} }, // mov $imm, %eax
{ 0x0 }
};
#elif defined(__x86_64__)