grimar added a comment. I am reworking this, it was not correct to remove opcode check (I was for some reason thinking that R_X86_64_REX_GOTPCRELX is generated specially for mov->lea relaxation), so I plan to update this soon. http://reviews.llvm.org/D15779