Thanks @maxgerhardt, the --specs=nano.specs did the trick. The __cxa_pure_virtual and __cxa_deleted_virtual, didn’t change the code size.
Adding --specs=nano.specs (without the test classes) reduced the code size is 73K
RAM: [== ] 16.3% (used 21328 bytes from 131072 bytes)
Flash: [= ] 13.9% (used 73080 bytes from 524288 bytes)
And adding the test classes added ‘only’ 600 bytes.
RAM: [== ] 16.3% (used 21340 bytes from 131072 bytes)
Flash: [= ] 14.0% (used 73652 bytes from 524288 bytes)
I also realized that the 100% flash that platformio shows me assumes that the external quadspi flash is used (which I though I didn’t need) so I will need to either configure the external flash or use a custom board definition with only 128K flash.
Thanks for your help! I am good now.