[LLVMdev] Hwo to guess PC-relative offset

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jun 30 16:07:19 PDT 2015


On Tue, Jun 30, 2015 at 08:02:21AM -0700, Tim Northover wrote:
> 
> But there's a lot to be said for just letting it stay in .rodata. The
> linker's going to be doing that kind of job anyway, so just let it get
> on with resolving offsets. Both x86 and AArch64 take this approach.

X86 is a bad example, because the normal code models allow addressing
anything in the same object, pretty much independent of size
constraints and section order.

Joerg



More information about the llvm-dev mailing list