emaste added a comment. > For 2), please add a test and I'll take another look. I couldn't find any existing examples of similar tests - we need a linked binary here so we have phdrs. Do you have any suggestions? We could make use of lld perhaps? https://reviews.llvm.org/D28085