<div dir="ltr">Thanks. Committed as <span style="color:rgb(0,0,0)">r221508.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 6:51 PM, <a href="mailto:kledzik@apple.com">kledzik@apple.com</a> <span dir="ltr"><<a href="mailto:kledzik@apple.com" target="_blank">kledzik@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Funny.  I just ran into this myself linking libc for arm64.  Some of the .o files inside static archives are not 8-byte aligned, so the read64() is asserting.  I think the read64() assert may be too aggressive.  It may need to fallback to memcpy() for reading unaligned data, rather that asserting.<br>
<br>
But this patch is goodness.  Mach-O files should be at least 4 or 8 byte aligned, and the uint8_t[] does not guarantee that.  Please commit this.<br>
<br>
<a href="http://reviews.llvm.org/D6161" target="_blank">http://reviews.llvm.org/D6161</a><br>
<br>
<br>
</blockquote></div><br></div>