In my C++ application, I use RTTI for dynamic_cast and such. Looking through the compiled binary, I notice that quite a bit of data is generated to store type names for typeinfo structs. Since I don't use type names at all, is there are a way to disable this part of RTTI while still allowing dynamic_cast to work?
EDIT
I am using GCC (G++) for ARM
arm-none-eabi-g++.exe (GNU Tools for STM32 10.3-2021.10.20211105-1100) 10.3.1 20210824 (release)