[llvm-dev] RFC: Absolute or "fixed address" symbols as immediate operands
Reid Kleckner via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 25 14:50:54 PDT 2016
On Tue, Oct 25, 2016 at 2:48 PM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> You get the code you want with
>
> @foo = external hidden global i8
>
> or
>
> @foo = external protected global i8
>
No, that produces this when PIC is on:
leaq foo(%rip), %rax
addq %rdi, %rax
retq
We need a way to communicate that foo is really an immediate and not
PC-relative.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161025/37e26594/attachment.html>
More information about the llvm-dev
mailing list