feat(libc): pass __PICOLIBC_ERRNO_FUNCTION to picolibc builds

This commit is contained in:
Alexey Lapshin
2026-07-29 16:12:02 +07:00
parent 14674d8aee
commit df1b1dea29
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)