iqiyi / xHook

🔥 A PLT hook library for Android native ELF.
Other
4.05k stars 752 forks source link

arm64的PLT和arm的PLT有啥区别吗? #102

Open darkgirl opened 1 year ago

darkgirl commented 1 year ago

我按照 https://github.com/iqiyi/xHook/blob/master/docs/overview/android_plt_hook_overview.zh-CN.md 操作 但是平台是 aarch64 查看malloc ` 0000000000000630 malloc@plt: 630: b0000090 adrp x16, 11000 __cxa_finalize@GLIBC_2.17 634: f9400611 ldr x17, [x16, #8] 638: 91002210 add x16, x16, #0x8 63c: d61f0220 br x17

查看 got和plt没有malloc Disassembly of section .got:

0000000000010fc0 <.got>: 10fc0: 00010e00 .inst 0x00010e00 ; undefined ...

Disassembly of section .got.plt:

0000000000010fe8 <.got.plt>: ... 11000: 00000600 .inst 0x00000600 ; undefined 11004: 00000000 .inst 0x00000000 ; undefined 11008: 00000600 .inst 0x00000600 ; undefined 1100c: 00000000 .inst 0x00000000 ; undefined 11010: 00000600 .inst 0x00000600 ; undefined 11014: 00000000 .inst 0x00000000 ; undefined 11018: 00000600 .inst 0x00000600 ; undefined 1101c: 00000000 .inst 0x00000000 ; undefined

`