Replies: 1 comment 3 replies
-
I was able to open both |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ghidra has the package
ghidra.app.util.bin.format.coff.archive
implementing a class with methods which are, I take it, for working with libraries of coff object modules.It might be useful if Ghidra also had something comparable that would make it easy to work with unix-/linux-style ar archives consisting of elf or coff files.
arpy 1.1.2 already does a lot of the necessary work. It even works in Jython. But it doesn't implement any semantics specific for these two file formats. (Later versions of arpy exist that will work with Python 3.x.)
My suggestion is motivated by my work with Microchip's xc16 libraries, which they provide as ar archives. They give you two copies of each library, one containing coff objects, the other containing elf objects. For example, their math library is delivered as both
libm-coff.a
andlibm-elf.a
.For my immediate purpose, which just requires getting a list of modules in an ar library, I can get by with arpy.
N.B.–I've only had a quick look at the Ghidra API for coff archives. Apart from that I don't know anything about coff file format, or about whatever kind of archive format the Ghidra API supports. I also don't really know much about the elf file format, but at least I have a smattering of knowledge and know of links to more.
Beta Was this translation helpful? Give feedback.
All reactions