[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:16:14 PST 2011


On Thu, Dec 8, 2011 at 7:15 PM, Alexander Potapenko <glider at google.com> wrote:
> 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
Oh, and the patch itself. See attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mach_override.patch
Type: text/x-patch
Size: 18271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111208/ac19ea05/attachment.bin>


More information about the llvm-commits mailing list