Zimage differences when a file is recompiled and source code unchanged
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Zimage differences when a file is recompiled and source code unchanged
Hello,
A step in our software quality process is to verify our deliverable files. We have made changes to the Linux kernel and build it as a zimage file.
If none of our code is recompiled the zimage is always the same. If we delete one of the .o (elf object files as a test) and force it to be recompiled the resulting zimage file is different. Can anyone explain why? The generated .o files are identical.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Hi LML,
Welcome to LQ!
That's the cost of sophisticated, optimizing compilers. The tiniest, most insignificant change will produce a different result. To you the question is logical. The compiler doesn't care. You would probably get a different result from every different compiler too. In a perfect world these things never happen, There is no easy answer.
Last edited by AwesomeMachine; 07-17-2017 at 05:15 PM.
That's the cost of sophisticated, optimizing compilers. The tiniest, most insignificant change will produce a different result. To you the question is logical. The compiler doesn't care. You would probably get a different result from every different compiler too. In a perfect world these things never happen, There is no easy answer.
Respectfully, without changing build options or any files, this does not seem a reasonable answer. I would never accept a compiler which randomly gave me different results with no explanation. I do realize you are saying tiny changes, however I feel that the OP has explained that they are not changing the source code. Yes I feel different compilers would yield different results, but do not feel they were saying this either.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.