--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #6)
> Created attachment 39664 [details]
> 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
> 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.
NOTE: this is intended to apply on top of the patch set for PR71767.