Re:Practical Guide to Bare Metal C++
by WalterBright on Thursday July 21, 2016 @04:16PM
(#12139713)
All functions get compiled with exception handling unwind data, so you're going to get that pulled in whether the executable throws or not.
In order to not get that, you'll likely have to rebuild the entire runtime library with EH turned off.
Building the no exceptions version with -fno-exceptions doesn't change the size of the exception-free version either.
(g++ 4.8.5 with -Os)