https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880
--- Comment #10 from Chris Johns <chrisj at rtems dot org> --- (In reply to Jonathan Wakely from comment #9) > Created attachment 53103 [details] > Fix lifetime bugs for non-TLS eh_globals > > Does this work? That is a great way to solve this problem given the limitation the eh_globals has. And yes the eh_globals single-threaded fallback buffer does have this problem however for RTEMS that is a corner case because something has called `exit()` on an embedded realtime system and that typically means a reset is about to happen. FYI Sebastian has reviewed our compiler set up as TLS was not enabled. The architectures that support TLS should soon be switching to that.