ruiu added a comment. What I meant by "drop SHF_LINK_ORDER early" is something like this: https://reviews.llvm.org/D38269 This patch does not actually work and is not intended to be submitted, but I believe you can understand the idea. https://reviews.llvm.org/D38170