<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><p style="margin:0;"><br></p><p style="margin:0;">I used llvm-objdump to dump aarch64 binary, but it prints relative address of .rodata section in adrp instruction.</p><p style="margin:0;">Like:</p><p style="margin:0;">  llvm-objdump</p><p style="margin:0;">  400848: 02 00 00 90   adrp    x2, #0x0</p><p style="margin:0;">  40084c: 42 60 29 91   add x2, x2, #0xa58</p><p style="margin:0;">  400850: 44 48 63 38   ldrb    w4, [x2, w3, uxtw]</p><p style="margin:0;">  400854: 65 00 00 10   adr x5, #0xc</p><p style="margin:0;">  400858: a4 88 24 8b   add x4, x5, w4, sxtb #2</p><p style="margin:0;">  40085c: 80 00 1f d6   br  x4</p><p style="margin:0;">Moreover, when debug llvm-objdump binary, this adrp MCInst express by MCExpr which Kind is MCExpr::Target, not immediate.</p><p style="margin:0;"><br></p><p style="margin:0;"><br></p><p style="margin:0;">But I used objdump tools of binutils, it prints absolute address. Such as:</p><p style="margin:0;">  400848:       90000002        adrp    x2, 400000 <_init-0x518></p><p style="margin:0;">  40084c:       91296042        add     x2, x2, #0xa58</p><p style="margin:0;">  400850:       38634844        ldrb    w4, [x2,w3,uxtw]</p><p style="margin:0;">  400854:       10000065        adr     x5, 400860 <local+0x48></p><p style="margin:0;">  400858:       8b2488a4        add     x4, x5, w4, sxtb #2</p><p style="margin:0;">  40085c:       d61f0080        br      x4</p><p style="margin:0;">So How to get absolute address with llvm MCInst?</p></div></div>