On 7 December 2015 at 14:40, Ard Biesheuvel ard.biesheuvel@linaro.org wrote:
On 7 December 2015 at 11:51, Edward Nevill edward.nevill@linaro.org wrote:
Hi,
Does anyone know how I do
adrp x0, dest & ~0xfff add x0, x0, dest & 0xfff
in aarch64 assembler?
You can't. ADRP is PC relative, but rounded to page granularity, so you can't use it for arbitrary expressions against symbols.
Can you elaborate on your use case?
Ah hold on
You mean
adrp, x0, dest add x0, x0, #:lo12:dest