[llvm-commits] [PATCH] fix the version of mach_override/* in AddressSanitizer to run on OS X Lion

Alexander Potapenko glider at google.com
Thu Dec 8 07:15:27 PST 2011


This patch contains several changes to mach_override/* that allow to
build and run AddressSanitizer tests on OS X Lion (10.7):

 -- mach_override.c is merged with the upstream version at
https://github.com/rentzsch/mach_star/tree/f8e0c424b5be5cb641ded67c265e616157ae4bcf
(I've copied it and added the DEBUG_DISASM code and additional opcodes
from our version)
 -- #ifdef __APPLE__ is removed from both files (we shouldn't need it,
because mach_override is used on Mac only)
 -- some opcodes are added in order to parse the library functions on Lion
 -- fixupInstructions() is extended to relocate relative calls, not only jumps


--
Alexander Potapenko
Software Engineer
Google Moscow



More information about the llvm-commits mailing list