ruiu added a comment. LGTM I believe it's still fragile against weird umask setting (such as 444), but that's in practice not an issue. Don't you need to run this only on Unix? Repository: rLLD LLVM Linker https://reviews.llvm.org/D41097