ruiu added a comment. In an attempt to understand the problem more, I tried to read GNU libc's code, but couldn't even figure out where it distinguishes .rel.dyn from .rel.plt. Could you point it for me? https://reviews.llvm.org/D26029