Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
darkgirl opened this issue Jan 2, 2023 · 0 comments
Open

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

darkgirl opened this issue Jan 2, 2023 · 0 comments

Comments

@darkgirl
Copy link

darkgirl commented Jan 2, 2023

我按照 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

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant