-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
support archives/static libraries #233
Comments
Yes It's completely in the scope of this project so feel free to make a PR for these features |
So glad to hear this is in-scope! |
Hello @romainthomas and @SSE4, do either of you know if anyone has done any work on this yet? I may take a go at it if not, hopefully I can figure it out. |
@mingwandroid I have started any work yet, feel free to take it |
Nice! I'm quite busy with other stuff but feel free to ask questions if you have some |
Hi @romainthomas, I have been hacking about with some Python code to handle archives (I hope to convert it to C++ and make a PR at some point). I can give you a URL if you wish, the code is currently in a branch in my own fork of It works to a degree on Linux. Since an .ar is just an archive of .elf files (with some indexes), to get the final symbols (and rich information about them) I use On Windows, calling
Do you have any recommendations for how to proceed at this point? Would the code that deals with COFF be callable here? Many thanks! |
Hi @mingwandroid Regarding COFF file, I think it would require to refactor some part of the PE module of LIEF since PE format is LIEF/include/LIEF/ELF/Binary.hpp Line 57 in 13ad81e
LIEF/include/LIEF/OAT/Binary.hpp Line 39 in 13ad81e
|
Hi @romainthomas, thanks. Hopefully I can get this done! My (very WIP) python code can be seen here. These line numbers may change today though as I'll be trying to fix/add macOS/BSD support. The function in question is Thank you for your recommendation. I was under the impression that a COFF file is essentially embedded in a PE file, given what you said, I guess that's not correct? |
Hey @romainthomas, I'm starting to look into some LIEF issues now. Are there any channels (gitter/IRC) where hacking on LIEF gets discussed? |
Hi @mingwandroid,
Yes there is a Gitter Channel here: https://gitter.im/lief-project |
PE and COFF share the same specification, that's true, but COFF is not embedded in PE or vice versa. they have different set of headers, and headers have different set of fields depending if it's COFF or PE file, also some fields may have different meaning. |
Is this still being worked on? |
@aeflores not from my side |
I found it useful for my needs to parse also archives/static libraries, as well as corresponding object files (e.g. in COFF or ELF formats). at very least, to obtain list of exported and imported symbols.
does it sound as useful addition for this project?
if yes, I may try to prototype this.
The text was updated successfully, but these errors were encountered: