<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 10, 2019 at 11:58 PM Valdis Klētnieks <<a href="mailto:valdis.kletnieks@vt.edu">valdis.kletnieks@vt.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 10 May 2019 22:11:31 -0400, Aruna Hewapathirane said:<br>
<br>
> > Suppose I have two kernels, one is A.B.C build by people Tom. And<br>
> > the other is A.B.C build by Jerry. The source code have been deleted<br>
<br>
> Run diff vmlinuz-Tom vmlinuz-Jerry and see if they differ. Then just to<br>
<br>
Don't even bother. If Tom and Jerry both did builds, the binaries *will* differ, because...<br>
<br>
% dmesg | grep 'Linux vers'<br>
[ 0.000000] Linux version 5.1.0-rc5-next-20190416-dirty (source@turing-police) (gcc version 9.0.1 20190328 (Red Hat 9.0.1-0.12) (GCC)) #664 SMP PREEMPT Wed Apr 17 12:31:51 EDT 2019<br></blockquote><div><br></div><div>Seriously ? Since when are you working for turing-police ? But yes agreed... at least it gives someone a <br></div><div>reasonably sane path to follow... nothing lost in trying right :)<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
There's a datestamp, a build number, and a compiler version in there.<br>
<br>
Also, since vmlinuz is a binary file, /bin/cmp is a better choice than diff.<br></blockquote><div>Agreed. <br></div><div><br></div><div><br></div><div><br></div><div> </div></div></div>