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

i#5437 glibc: Auto-deduce __libc_early_init offsets #6929

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

derekbruening
Copy link
Contributor

@derekbruening derekbruening commented Aug 22, 2024

Adds decoding of __libc_early_init to find the glibc private loader workaround
offsets we need. The heuristic is to look for the last large (>0x100) load offset before
the first DIV.

Tested on 2.38 64-bit and 32-bit.

Also updates the __libc_early_init offsets for 32-bit glibc 2.38 as a fallback.
Tested locally.

Issue: #5437

Updates the __libc_early_init offsets for 32-bit glibc 2.38 for the
private loader workaround of a glibc initialization issue.  Tested
locally.

Issue: #5437
heuristic is to look for the last large (>0x100) load offset before
the first DIV.

Tested on 2.38 64-bit and 32-bit.
@derekbruening derekbruening changed the title i#5437 glibc: Update __libc_early_init offsets for 32-bit 2.38 i#5437 glibc: Auto-deduce __libc_early_init offsets Aug 23, 2024
@derekbruening
Copy link
Contributor Author

x32 failure is opcode_mix #6303

@derekbruening derekbruening merged commit 8fe5d48 into master Aug 23, 2024
16 of 17 checks passed
@derekbruening derekbruening deleted the i5437-glibc32-2.38 branch August 23, 2024 15:19
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.

2 participants