serge1 / ELFIO

ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library
http://serge1.github.io/ELFIO
MIT License
706 stars 152 forks source link

Loading elf from buffer #129

Closed georgemoralis closed 4 months ago

georgemoralis commented 7 months ago

For example https://www.psdevwiki.com/ps4/SELF_File_Format SELF files contains elf in a specific offset , so loading from buffer might be useful for these cases .

serge1 commented 7 months ago

Please have a look at elfio::set_address_translation() and address_translator class. The API permits address transformation for loading from a buffer at arbitrary offset.

Is it what you are looking for?

georgemoralis commented 7 months ago

hmm that might do the trick ,will check and tell you :)

serge1 commented 7 months ago

Have you had a chance to check?

georgemoralis commented 7 months ago

not yet actually but i am adding some ps4 specific elf stuff in elfio https://github.com/shadps4-emu/ext-ELFIO

serge1 commented 4 months ago

No news for a long time. The referred repo doesn't exist anymore. Please feel free to reopen if new information is available.