Merge branch 'fix/newlib_builds' into 'master'

Fix: newlib compatibility with libraries built with picolibc headers

Closes IDF-15962

See merge request espressif/esp-idf!51013
This commit is contained in:
Alexey Lapshin
2026-08-04 14:41:32 +04:00
4 changed files with 14 additions and 6 deletions
@@ -113,6 +113,7 @@ void IRAM_ATTR syscall_exit_tee(void)
* 'errno' is defined in the TDATA section. The linker script ensures that
* it is positioned at the beginning of the TDATA segment.
*/
#undef errno
__thread int errno __attribute__((section(".tdata.errno"))) = 0;
int *__errno(void)