ruiu added a comment. I think that the right thing to do is to create a RELRO segment for each contiguous RELRO sections and then update the loader so that it can handle multiple RELROs. What do you think? https://reviews.llvm.org/D40029