https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106571
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Boris from comment #2) > How can you check a mismatch if only the definition has the section > attribute? You don't need to. > > Here's the kernel commit which fixes this for clang: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/ > ?id=db886979683a8360ced9b24ab1125ad0c4d2cf76 > > there's the same example in the commit message. Oh I see the section here has more semantics than the normal section attribute does. There should be an enhancement request for a new attribute which does more than the current section attribute instead.