eugenis added a comment. I've removed all global-dce changes and, according to https://reviews.llvm.org/D29590, added an argument to the metadata that gives the target of SHF_LINK_ORDER. PTAL. Repository: rL LLVM https://reviews.llvm.org/D29104