Thanks! <div>r146166.<br><div><br></div><div>Side question: does anyone know how to intercept functions on Darwin w/o mach_override? <br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 7:15 AM, Alexander Potapenko <span dir="ltr"><<a href="mailto:glider@google.com">glider@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This patch contains several changes to mach_override/* that allow to<br>
build and run AddressSanitizer tests on OS X Lion (10.7):<br>
<br>
 -- mach_override.c is merged with the upstream version at<br>
<a href="https://github.com/rentzsch/mach_star/tree/f8e0c424b5be5cb641ded67c265e616157ae4bcf" target="_blank">https://github.com/rentzsch/mach_star/tree/f8e0c424b5be5cb641ded67c265e616157ae4bcf</a><br>
(I've copied it and added the DEBUG_DISASM code and additional opcodes<br>
from our version)<br>
 -- #ifdef __APPLE__ is removed from both files (we shouldn't need it,<br>
because mach_override is used on Mac only)<br></blockquote><div><br></div><div>We do need #ifdef __APPLE__, all these files are currently compiled on linux too. </div><div><br></div><div>--kcc </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

 -- some opcodes are added in order to parse the library functions on Lion<br>
 -- fixupInstructions() is extended to relocate relative calls, not only jumps<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Alexander Potapenko<br>
Software Engineer<br>
Google Moscow<br>
</font></span></blockquote></div><br></div></div>