mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
Merge branch 'bugfix/add_exception_emergency_pool_again_4.3' into 'release/v4.3'
[esp_system]: added __cxx_eh_arena_size_get again (backport 4.3) See merge request espressif/esp-idf!14132
This commit is contained in:
@ -135,6 +135,21 @@ static IRAM_ATTR void _Unwind_SetNoFunctionContextInstall_Default(unsigned char
|
|||||||
|
|
||||||
static const char* TAG = "cpu_start";
|
static const char* TAG = "cpu_start";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function overwrites a the same function of libsupc++ (part of libstdc++).
|
||||||
|
* Consequently, libsupc++ will then follow our configured exception emergency pool size.
|
||||||
|
*
|
||||||
|
* It will be called even with -fno-exception for user code since the stdlib still uses exceptions.
|
||||||
|
*/
|
||||||
|
size_t __cxx_eh_arena_size_get(void)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||||
|
return CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE;
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Xtensa gcc is configured to emit a .ctors section, RISC-V gcc is configured with --enable-initfini-array
|
* Xtensa gcc is configured to emit a .ctors section, RISC-V gcc is configured with --enable-initfini-array
|
||||||
* so it emits an .init_array section instead.
|
* so it emits an .init_array section instead.
|
||||||
|
Reference in New Issue
Block a user