Hmm two thoughts:
- Are you linking against nanolibc by passing
--specs=nano.specsas linker flags in yourextra_script.py? Otherwise you’re getting a really big C library. - Do you overwrite functions like
__cxa_pure_virtualso that their default code might not want to generate huge code and things like backtrace unwinding?