There is no version information in Linux executables such as Windows ... The only way I can think of is to create a static character string that will be extended by a version control tracking system such as rcs, cvs, svn, git, in which the identifier extends based on the person who registered the code, here is an example of rcs identifiers ...
static char * Id = "$ Id $";
static char * Author = "$ Author $";
The above lines when checking in the version control system, they expand the next time they are checked ...
static char * Id = "Foo, v1.1, 2009-02-18, 13:13";
static char * Author = "foo";
And use the ' ident ' utility, which runs on binaries, 'ident' looks for Revision Control Systems ( rcs ) in binary format.
Hope this helps, Regards, Tom.
t0mm13b
source share