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

Lang Hames lhames at gmail.com
Tue May 5 13:13:39 PDT 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150505/42d9daa2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lld-add-macho-rip-rel-minus-n-relocs.patch
Type: application/octet-stream
Size: 8644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150505/42d9daa2/attachment.obj>


More information about the llvm-commits mailing list