ruiu added a comment. I believe Peter Smith is the right person to review this, as he knows this part of code the most. Just to make sure, is does the test pass when you use ld.bfd or ld.gold instead of ld.lld? https://reviews.llvm.org/D38053