Merge branch 'fix/newlib_builds_v6.1' into 'release/v6.1'

Fix: newlib compatibility with libraries built with picolibc headers (v6.1)

See merge request espressif/esp-idf!51523
This commit is contained in:
Alexey Gerenkov
2026-09-02 17:14:06 +08:00
4 changed files with 13 additions and 5 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)