BTW, after this patch, the Windows loader (at least on my machine) uses ASLR when loading image files created using lld, so I guess that means lld produces more or less valid PE files :) http://llvm-reviews.chandlerc.com/D1743 COMMIT http://llvm-reviews.chandlerc.com/rL191220