[PATCH] [RFC][PATCH] Minor opt to access pointers to globals via pcrel GOT entries

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Jan 23 11:37:19 PST 2015


>
> > Note that there is no +4 in test2.s.
>
> GOTPCREL relocations work differently in ELF and don't require this hack.
>
>
Cool. Do you know if it is documented somewhere?

In any case, test.s and test2.s versions of X86_64 OS X are attached, and
it works with the +4 :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/2f37e79a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.s
Type: application/octet-stream
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/2f37e79a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.s
Type: application/octet-stream
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/2f37e79a/attachment-0001.obj>


More information about the llvm-commits mailing list