mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
fix(cxx): use __cxa_throw() stub in case exceptions disabled
Reduces binary size since the linker will drop some code due to --gc-sections.
This commit is contained in:
@@ -178,4 +178,16 @@ extern "C" _Unwind_Reason_Code __wrap___gxx_personality_v0(int version,
|
||||
return abort_return<_Unwind_Reason_Code>();
|
||||
}
|
||||
|
||||
// Reduces binary size since the linker will drop some code due to --gc-sections.
|
||||
extern "C" void __wrap___cxa_allocate_exception(void)
|
||||
{
|
||||
abort();
|
||||
}
|
||||
|
||||
// Reduces binary size since the linker will drop some code due to --gc-sections.
|
||||
extern "C" void __wrap___cxa_throw(void)
|
||||
{
|
||||
abort();
|
||||
}
|
||||
|
||||
#endif // CONFIG_COMPILER_CXX_EXCEPTIONS
|
||||
|
Reference in New Issue
Block a user