-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resulting binaries: Exactly same code produces very different resulting binaries (IDFGH-6323) #7985
Comments
Lines 204 to 209 in 9919b75
|
I think in 4.3 this might be a regression in the linker script generator, where on different runs it may produce different order of libraries. This should be fixed in 404ee09, will be part of the next v4.3.2 bugfix release. Additionally in release/v4.4 there is a new option CONFIG_APP_REPRODUCIBLE_BUILD which @negativekelvin has kindly linked above, it will also make ELF files identical across builds, so event the ELF SHA256 value in binary image header will be stable. |
Thanks @igrr amd @negativekelvin , @negativekelvin : I'm using v4.3.1 and so I have not that config field avialble. Moreover I'm ok that few things as paths, and date/time differs. But I see so many changes apart from these ones @igrr : I think that my problem is probably related with the linker issue. I will try when v4.3.2 comes out to test it. Thanks |
@carlessole v4.3.2 has been released, please give it a try and see if this issue is fixed for you. |
@carlessole Thanks for reporting, would you please help a try with the newly released IDF v4.3.2 and share any updates? Thanks. |
@carlessole Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates. Thanks. |
Hi everyone,
I have noticed a behaviour that it is not what I thought it was correct.
When I compile multiple times exactly the same source code. The resulting binaries:
I was expecting always the 1st case because then it is easier to probe that both binaries have been created from the same source code.
Here I attach some images when compilation differs a lot:
The text was updated successfully, but these errors were encountered: