I would like to be able to check the object file format from my C code so that I can use different functions to read the file based on whether it is COFF or ELF format.
Is this possible, and if so, how can I do this?
This is on Linux btw, if that matters.
Chris source share