Hmm my last comment seems wrong. It did not cause link error. Looks like I passed wrong command line arguments to lld when I tested. So the test should already be ok. http://llvm-reviews.chandlerc.com/D921