OVMS3-idf/components/esp32
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
..
include esp32: Remove deprecated system_deep_sleep function 2019-09-19 18:48:14 +10:00
ld C++: add provisions for optional RTTI support 2019-10-18 11:22:39 +02:00
test esp32/test: fix usage of deprecated fields 2019-09-19 18:48:14 +10:00
brownout.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
cache_err_int.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
cache_sram_mmu.c Spiram: Add option to reserve MMU banks; add himem API to make use of those banks 2018-10-15 14:32:58 +08:00
clk.c Merge branch 'feature/add_xxx_periph_h' into 'master' 2019-06-04 13:24:14 +08:00
CMakeLists.txt C++: add provisions for optional RTTI support 2019-10-18 11:22:39 +02:00
component.mk C++: add provisions for optional RTTI support 2019-10-18 11:22:39 +02:00
cpu_start.c Add chip revision into image header 2019-10-08 02:45:36 +00:00
crosscore_int.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
dport_access.c efuse: update the scheme of getting chip revision 2019-08-13 14:37:17 +08:00
dport_panic_highint_hdl.S esp32: Dis interrupts up to 5 lvl for DPORT 2019-07-16 05:54:45 +00:00
esp_adapter.c Coexist: fix some coexist bugs 2019-09-30 11:42:05 +08:00
esp_clk_internal.h bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC 2018-03-21 13:27:56 +05:00
esp_himem.c separate rom from esp32 component to esp_rom 2019-03-21 18:51:45 +08:00
esp_timer_esp32.c move common source files from esp32 to esp_common 2019-03-22 10:35:03 +08:00
hw_random.c move esp32 chip specific includes to esp32/xxx.h 2019-03-18 17:14:05 +08:00
int_wdt.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
intr_alloc.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
Kconfig Merge branch 'feature/add_psram_workaround_option_4.0' into 'release/v4.0' 2019-10-10 11:00:29 +08:00
linker.lf esp32: Use FPU for floating point divide, power, complex multiplications 2019-05-29 10:14:31 +10:00
Makefile.projbuild ldgen: fix build issue on make when build dir is a symlink 2019-08-28 10:28:17 +08:00
panic.c esp32_gdbstub: fix build error with esp32-2019r1 toolchain 2019-08-13 11:38:28 +05:30
pm_esp32.c soc/pm: Remove deprecated use of rtc_cpu_freq_t enum 2019-09-19 18:48:13 +10:00
pm_trace.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
project_include.cmake components: update with build system changes 2019-05-13 19:59:17 +08:00
reset_reason.c all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
sdkconfig.rename feat(psram): config SPI psram pins based on efuse value 2019-05-28 21:25:16 +08:00
sleep_modes.c esp32: Remove deprecated system_deep_sleep function 2019-09-19 18:48:14 +10:00
spiram.c Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
spiram_psram.c Handle deprecated values in sdkconfig.defaults 2019-10-03 10:13:42 +02:00
spiram_psram.h all: Using xxx_periph.h 2019-06-03 14:15:08 +08:00
system_api.c esp32/esp_common: Remove deprecated esp_efuse_read_mac() function 2019-09-19 18:48:30 +10:00
task_wdt.c wdt: Remove deprecated esp_task_wdt_feed() function 2019-09-19 18:48:55 +10:00