https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108337
--- Comment #5 from eric-bugs at omnifarious dot org --- (In reply to Andrew Pinski from comment #4) > Yes it affects every function. There might be another way to use attribute > to specific that only main needs this treatment. Or better yet add a _start > function in assembly to that. That's what I was thinking. I need to actually re-implement a bunch of the g++ runtime environment for what I want to achieve, and so that's likely what I'll be doing. Thanks!