Patch for PE linker version stamp

Jerker Bäck jerker.back@gmail.com
Sat Feb 28 12:25:00 GMT 2009
I would like to suggest the following patch to allow a real linker version
stamp into PE binaries.

The version is stored in the vstamp member of AOUTHDR or equivalent
MajorLinkerVersion and MinorLinkerVersion of IMAGE_OPTIONAL_HEADER.

At the moment, all PE binaries are stamped with a generic "256" by BFD and
have been so for a long time. This makes it impossible to judge the status
of the tools that generated an unknown binary. A real stamp could help in
bug tracking, security issues, debugging tools, binary information tools
etc.

The only problem I can see with this patch is if it clash with binutils
version generation. Hope it works out.

thanks
Jerker Bäck



-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkerversion.patch
Type: application/octet-stream
Size: 3873 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090228/92168ac7/attachment.obj>


More information about the Binutils mailing list