[lld] [PATCH] Add support for MachO ripRel32MinusNAnon relocations.

Nick Kledzik kledzik at apple.com
Tue May 12 13:00:55 PDT 2015


LGTM

-Nick


On May 5, 2015, at 1:13 PM, Lang Hames <lhames at gmail.com> wrote:
> Hi All,
> 
> This patch adds support for MachO rip-relative relocations for instructions that have an extra immediate field. These relocations are analogues of the riplRel32MinusN relocations, but for anonymous targets, e.g.:
> 
> movb $0x12, L1(%rip)            // ripRel32Minus1Anon
> movw $0x1234, L1(%rip)          // ripRel32Minus2Anon
> ex: movw $0x12345678, L1(%rip)  // ripRel32Minus4Anon
> 
> Cheers,
> Lang.
> <lld-add-macho-rip-rel-minus-n-relocs.patch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150512/22d5b579/attachment.html>


More information about the llvm-commits mailing list