IOv1: Error handling pointer hackery

This commit is contained in:
Lorenz Meier 2015-10-03 17:26:04 +02:00
parent d0ca0ff837
commit 1ab23739ad
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ SECTIONS
*(.gcc_except_table)
*(.gnu.linkonce.r.*)
_etext = ABSOLUTE(.);
/*
* This is a hack to make the newlib libm __errno() call
* use the NuttX get_errno_ptr() function.
*/
__errno = get_errno_ptr;
} > flash
/*