ruiu added a comment. This adds one virtual function call for each relocation. I believe it's negligible, but can you run the linker with and without this patch to see if this is fine? https://reviews.llvm.org/D35371