I have a question about executables and C.
If you had to know the content (the version of each .c file written in a commentary) of an executable BUT you just have the executable, you don't have the sources. How do you proceed ?
I've seen the "nm" command, cuting what I want with "cut" I can have in output the .c files but I can't read the versions inside because I don't have the source files. I've also seen the "objdump" command but I can't try it under AIX (of course ...) is there an equivalent? Is this possible with objdump to know what I want to?
Thx for your help and attention :)
I've found a way to do what I wanted to. Using the '#pragma comment(user, "comment")' line (I didn't knew this one) it writes at compilation and link this "comment" in the end of the binary file, so I include this line on each .c file. With a the parsing of the executable, I'm able to recover the versions of each files with only the binary.
Thanks for your help again and your time :) .