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

Improve symbols lookup #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ThePedroo
Copy link
Member

Changes

This commit improves how the symbols like solist are searched, to search by its prefix instead of full name.

Why

This allows to phones that have linker64 with symbols with llvm suffix to still have maps hiding.

Checkmarks

  • The modified functions have been tested.
  • Used the same indentation as the rest of the project.
  • Updated documentation (changelog).

@ThePedroo ThePedroo added bug Something isn't working confirmed This issue or pull request is confirmed to be done. labels Nov 25, 2024
This commit improves how the symbols like solist are searched. This allows to phones that have linker64 with symbols with llvm suffix to still have maps hiding.

closes #63
@ThePedroo ThePedroo linked an issue Nov 25, 2024 that may be closed by this pull request
3 tasks
@JingMatrix
Copy link
Contributor

Don't do linear lookup at the begining, try ElfLookup or GnuLookup could be faster.
See https://github.com/JingMatrix/LSPosed/blob/master/core/src/main/jni/src/elf_util.cpp#L259-L294

@JingMatrix
Copy link
Contributor

Sorry, my bad, hash algorithm won't work when the key is unknown. We indeed need linear searching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed This issue or pull request is confirmed to be done.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Map hidding for /linker in Android 15
2 participants