grimar added inline comments. ================ Comment at: ELF/Target.cpp:708 @@ +707,3 @@ + case R_X86_64_TLSGD: + return R_PC; + } ---------------- I think R_X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX should be here either. http://reviews.llvm.org/D18711