llvm-project/compiler-rt/lib/interception/mach_override
Alexander Potapenko 4d533d243d [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
2012-11-15 08:32:16 +00:00
..
LICENSE.TXT [asan] move lib/asan/interception to lib/interception so that other tools (e.g. tsan) can use it 2012-05-15 12:21:33 +00:00
Makefile.mk [asan] move lib/asan/interception to lib/interception so that other tools (e.g. tsan) can use it 2012-05-15 12:21:33 +00:00
README.txt [asan] move lib/asan/interception to lib/interception so that other tools (e.g. tsan) can use it 2012-05-15 12:21:33 +00:00
mach_override.c [ASan] Add the "lea $imm(%rip),%rax" instruction to mach_override.c 2012-11-15 08:32:16 +00:00
mach_override.h [asan] move lib/asan/interception to lib/interception so that other tools (e.g. tsan) can use it 2012-05-15 12:21:33 +00:00

README.txt

-- mach_override.c is taken from upstream version at
 https://github.com/rentzsch/mach_star/tree/f8e0c424b5be5cb641ded67c265e616157ae4bcf
-- Added debugging code under DEBUG_DISASM.
-- The files are guarded with #ifdef __APPLE__
-- some opcodes are added in order to parse the library functions on Lion
-- fixupInstructions() is extended to relocate relative calls, not only jumps
-- mach_override_ptr is renamed to __asan_mach_override_ptr and
 other functions are marked as hidden.