-
Notifications
You must be signed in to change notification settings - Fork 174
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
How to inspect sections on object code #34
Comments
here's my example library source code: int sum(int a, int b) {
return a+b;
} then I try to generate the object file with |
Oh yeah, I can use objdump instead of readelf
|
hi! I am sorry, but currently PE-bear does not support object files. They are a bit different than the complete PE. |
It seems the object file generated by gcc on mingw follows the COFF format, right? just want to confirm.
Thanks! I can't wait for it ^^ |
I tried to compile my
source code
intoobject code
, and I'm following this tutorial to read the sections in the object file, but it seems that the object file generated by gcc on the windows platform will end up with the PE format (?)which makes me unable to parse it:
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
then I tried to install the pe-bear tool instead of
readelf
but the errornot supported filetype
seems to be not working properly?please enlighten me.
The text was updated successfully, but these errors were encountered: