Advertisement
Guest User

Aarch64 relocation?

a guest
Dec 9th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1.  
  2. + Is there a time when we know there won't be any more smashing?
  3.  
  4. 26284 (45) DecRef<-> t21:Gen
  5. 26285 Cold:
  6. 26286 0x38000be0 53001c22 uxtb w2, w1
  7. 26287 0x38000be4 7100e45f cmp w2, #0x39 (57)
  8. 26288 0x38000be8 540000ac b.gt #+0x14
  9. 26289 * 0x38000bec 58000052 ldr x18, pc+8 (addr 0x38000bf4) ; 0x38000bec - 0x38000c68 = -124
  10. 26290 0x38000bf0 d61f0240 br x18
  11. 26291 0x38000bf4 38000c68 strb w8, [x3]!
  12. 26292 0x38000bf8 00000000 unallocated (Unallocated)
  13. 26293 0x38000bfc b9400012 ldr w18, [x0]
  14. 26294 0x38000c00 7100065f cmp w18, #0x1 (1)
  15. 26295 0x38000c04 540000a0 b.eq #+0x14
  16. 26296 * 0x38000c08 58000052 ldr x18, pc+8 (addr 0x38000c10) ; 0x38000c08 - 0x38000c48 = -64
  17. 26297 0x38000c0c d61f0240 br x18
  18. 26298 0x38000c10 38000c48 strb w8, [x2]!
  19. 26299 0x38000c14 00000000 unallocated (Unallocated)
  20.  
  21. pc-relative loads marked with '*' above. Actual displacement isn't too small.
  22. If this block and targets don't move any more then you could overwrite the ldr
  23. instruction with a proper b simm19/bl simm19.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement