OVMS3-idf/make
Ivan Grokhotkov 3d0466ccd1 C++: add provisions for optional RTTI support
Ref. https://github.com/espressif/esp-idf/issues/1684

This change allows RTTI to be enabled in menuconfig. For full RTTI
support, libstdc++.a in the toolchain should be built without
-fno-rtti, as it is done now.

Generally if libstdc++.a is built with RTTI, applications which do not
use RTTI (and build with -fno-rtti) could still include typeinfo
structures referenced from STL classes’ vtables. This change works
around this, by moving all typeinfo structures from libstdc++.a into
a non-loadable section, placed into a non-existent memory region
starting at address 0. This can be done because when the application
is compiled with -fno-rtti, typeinfo structures are not used at run
time. This way, typeinfo structures do not contribute to the
application binary size.

If the application is build with RTTI support, typeinfo structures are
linked into the application .rodata section as usual.

Note that this commit does not actually enable RTTI support.
The respective Kconfig option is hidden, and will be made visible when
the toolchain is updated.
2019-10-18 11:22:39 +02:00
..
common.mk esp_common: add version definitions in code and build system 2019-05-20 13:14:56 +08:00
component_common.mk Secure boot: initial image signature support 2016-11-14 11:08:42 +11:00
component_wrapper.mk gnu make: Make V= behaviour consistent with V=0 2019-06-24 21:01:12 +10:00
ldgen.mk build: In GNU Make, use "cygpath -m" to avoid backslashes 2019-09-19 21:33:56 +10:00
project.mk C++: add provisions for optional RTTI support 2019-10-18 11:22:39 +02:00
project_config.mk Handle deprecated values in sdkconfig.defaults 2019-10-03 10:13:42 +02:00
version.mk esp_common: add version definitions in code and build system 2019-05-20 13:14:56 +08:00