• H.J. Lu's avatar
    Clarify R_X86_64_REX_GOTPCRELX transformation · 43453ea2
    H.J. Lu authored and Michael Matz's avatar Michael Matz committed
    Instructions on memory operand with GOTPCRELX relocations against symbol,
    foo, can be transformed into a different form on immediate operand if foo
    is defined locally and the relocation addend is -4:
    	movl foo@GOTPCREL(%rip), %eax
    	movl foo@GOTPCREL+4(%rip), %eax
    The transformation is invalid since the relocation addend is 0.