ruiu added a comment. Somewhat orthogonal to this patch, but I think we need to modify `X86TargetInfo::relocateOne` so that we explicitly list relocation types that we understand and error out other relocations. https://reviews.llvm.org/D28094