https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86410
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- I think the explicit .init_array section marked decls make this undefined as you are doing this behind GCCs back. You might be able to use -fno-toplevel-reorder to save yourself here.