mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
499d087c91
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. |
||
---|---|---|
.. | ||
include | ||
ld | ||
test | ||
brownout.c | ||
cache_err_int.c | ||
cache_sram_mmu.c | ||
clk.c | ||
CMakeLists.txt | ||
component.mk | ||
cpu_start.c | ||
crosscore_int.c | ||
dport_access.c | ||
dport_panic_highint_hdl.S | ||
esp_adapter.c | ||
esp_clk_internal.h | ||
esp_himem.c | ||
esp_timer_esp32.c | ||
hw_random.c | ||
int_wdt.c | ||
intr_alloc.c | ||
Kconfig | ||
linker.lf | ||
Makefile.projbuild | ||
panic.c | ||
pm_esp32.c | ||
pm_trace.c | ||
project_include.cmake | ||
reset_reason.c | ||
sdkconfig.rename | ||
sleep_modes.c | ||
spiram_psram.c | ||
spiram_psram.h | ||
spiram.c | ||
system_api.c | ||
task_wdt.c |