https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109369
--- Comment #9 from Alexander Monakov <amonakov at gcc dot gnu.org> --- (In reply to Pali Rohár from comment #8) > So from the discussion, do I understand correctly that this is rather LD > linker issue? Yes, ld changes will be needed to make this work automatically, without adding the attribute manually. I would suggest to move the bug to the Binutils Bugzilla.