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

Kostya Serebryany kcc at google.com
Thu Dec 8 11:18:51 PST 2011


Thanks!
r146166.

Side question: does anyone know how to intercept functions on Darwin
w/o mach_override?

On Thu, Dec 8, 2011 at 7:15 AM, 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)
>

We do need #ifdef __APPLE__, all these files are currently compiled on
linux too.

--kcc


>  -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111208/7abe7344/attachment.html>


More information about the llvm-commits mailing list