https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101473
--- Comment #13 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 19 Jul 2021, tonyb at cybernetics dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101473 > > --- Comment #12 from tonyb at cybernetics dot com --- > The patch fixed my own programs, so I rebuilt all of Yocto with -flto in two > different directories. I found that most shared libraries in /lib and > /usr/lib > still have the problem (i.e. are still not binary reproducible), as well as > binaries from pciutils, e2fsprogs, dropbear, sysvinit, hdparm, and a few other > packages (they are all binary reproducible without -flto). However, the patch > certainly did improve things, since some binaries that were different > previously are now the same. OK, I will try to produce a patch that should catch a few more cases and would be actually mergeable. If issues remain with that some testcases would be nice. You should be able to see the difference in the .o files symbol table already if it's the same underlying issue (different DWARF checksum).