[llvm-dev] lld/mach-o x86_64 asserts

Carlo Kok via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 10 00:40:51 PDT 2018


On LLD mach/o x86_64 LLD calls dataInCodeTransitionStart and dataInCodeTransitionEnd, which aren't implemented (and thus return the defautl value 0), later in applyFixupFinal it reaches the default: unreachable causing miscompiles depending on the optimizer.

Attached is a simple patch that fixes this. 

It also fixes the read8 method, as object files inside .a files aren't 8 byte aligned when memory mapped.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ldd_relocation_fixes.txt
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180710/342ba363/attachment.txt>


More information about the llvm-dev mailing list