https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52795
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- Created attachment 39664 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39664&action=edit Reorganize hot/cold output to allow atoms to be properly detected. This is a proof-of-principle patch that reorganizes the output of the hot/cold partitions so that section switches are only made when needed. Although it was done to make the atom detection work with ld64, IMO - it makes the asm more readable for linux too... but that's a side-effect of course. This is a very invasive patch, because it touches debug output - so some way to test more widely would be needed. However, worth testing as a resolution for this problem.