Sometime there happens to be a need for retrieving what is the compilation information, compiler version, say, of the compiler that was previously used for building an ELF executable.
There are two ways, no matter whether they are the real good ones.
1) objdump -s --section .comment <the executable>
2) strings -a <the executable> | grep -i -E "gcc|cl| $other possible clue for the compiler name"
There are two ways, no matter whether they are the real good ones.
1) objdump -s --section .comment <the executable>
2) strings -a <the executable> | grep -i -E "gcc|cl| $other possible clue for the compiler name"
No comments:
Post a Comment