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

elf-module: Wire up import slots #782

Merged
merged 4 commits into from
Feb 16, 2024
Merged

elf-module: Wire up import slots #782

merged 4 commits into from
Feb 16, 2024

Conversation

oleavr
Copy link
Member

@oleavr oleavr commented Feb 15, 2024

No description provided.

When enumerating relocations on an in-process ELF it is typically
desirable to know the live address of each relocation.
We were doing gum_module_find_export_by_name(NULL, "malloc"), which on
UNIX does dlsym(RTLD_DEFAULT, "malloc"). Turns out this may give us the
address of gum-tests' import stub, instead of the actual implementation
in libc.
@oleavr oleavr marked this pull request as ready for review February 16, 2024 09:38
@oleavr oleavr merged commit 935e7da into main Feb 16, 2024
32 checks passed
@oleavr oleavr deleted the feature/elf-import-slots branch February 16, 2024 10:39
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

Successfully merging this pull request may close these issues.

1 participant