Do you typically just compile with -fno-rtti -fno-exceptions -nostdlib ?
Last time I did embedded work this was basically all that was required.
Last time I did embedded work this was basically all that was required.
Also -nostdlib means no global constructors run, so static objects with nontrivial ctors need you to call __libc_init_array yourself.