summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-11-15 08:32:16 +0000
committerAlexander Potapenko <glider@google.com>2012-11-15 08:32:16 +0000
commit4d533d243d802d598e340f5796742b2a984304e1 (patch)
tree85d38508db3b59743bdea6c1c590146b3e26c2de /compiler-rt
parentc363afb19e31c37cbcb7222738a1ede243f20602 (diff)
downloadbcm5719-llvm-4d533d243d802d598e340f5796742b2a984304e1.tar.gz
bcm5719-llvm-4d533d243d802d598e340f5796742b2a984304e1.zip
[ASan] Add the "lea $imm(%rip),%rax" instruction to mach_override.c
The need for this has been reported by Jack Howarth (howarth@bromo.med.uc.edu) who's porting ASan-Darwin to GCC llvm-svn: 168032
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/interception/mach_override/mach_override.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/mach_override/mach_override.c b/compiler-rt/lib/interception/mach_override/mach_override.c
index ba5653c47b1..7511a7bebb8 100644
--- a/compiler-rt/lib/interception/mach_override/mach_override.c
+++ b/compiler-rt/lib/interception/mach_override/mach_override.c
@@ -725,6 +725,8 @@ static AsmInstructionMatch possibleInstructions[] = {
{ 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
OpenPOWER on IntegriCloud