- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have a requirement to meet certain software certification specifications that require me to be able to verify that a build of the same source tree can be reproduced exactly with identical binaries. This means that if I compile my source code and calculate a MD5 sum of the ouput binary, then recompile again and recalculate the MD5 on the new binary, the two should match. This does not occur with the vmlinux file. If I compile the uClinux tree, take a md5 of the vmlinux file, then recompile again the MD5 sum of the new vmlinux file does not match the previous one. I did not change any code. just simply remake. One thing I do know is that the linux kernel contains a timestamp string indicating when the last compile was done. This would be the source of one difference. However, when doing a binary compare of the two files, I find that there are allot of differences, more than just these timestamp strings. Some differences show up in the ELF header section. Does anyone know how I can identifiy that the two binaries are in fact the same? Does anyone know how I can build the kernel and get the same binary twice? Thanks in advanced, TonyLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK. So it seems that the differences trace back to the System.map file. Does anyone know what could cause the addressing of the kernel symbols to relocate and cause differing map files?
Tony
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page