https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113161
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The Linux kernel handles this without an attribute via an external program that checks the section after the compiling. Maybe for your use case you could reuse that ...