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: Resolve more relocations into GOT entries #2277

Merged
merged 4 commits into from Nov 14, 2023

Conversation

Arusekk
Copy link
Member

@Arusekk Arusekk commented Sep 23, 2023

So far only relocations pointing to external symbols were considered when filling GOT. Relocations in libc are a different thing, often found in CTF challenges (libc with partial RELRO has many interesting overridable function pointers, like strlen & strchrnul).

So far only relocations pointing to external symbols were considered
when filling GOT.  Relocations in libc are a different thing, often
found in CTF challenges (libc with partial RELRO has many interesting
overridable function pointers, like strlen & strchrnul).
@peace-maker
Copy link
Member

Nice, is it possible to add a test for this?

enedil and others added 2 commits November 14, 2023 23:00
* Reverse mapping symbols-addresses cannot be a simple dict, as multiple
symbols can be located at the same addres.

* Add docs for loading relr relocation symbols to GOT.
@Arusekk Arusekk merged commit 2f2e0dc into Gallopsled:dev Nov 14, 2023
5 of 7 checks passed
@Arusekk Arusekk deleted the better-got branch November 14, 2023 22:13
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.

None yet

3 participants