Adds alias __errno to linker file fixed link, need to understand why.

This commit is contained in:
James Goppert
2015-09-14 19:55:53 -04:00
parent 676a3d230c
commit 567431602a
5 changed files with 12 additions and 2 deletions
+6
View File
@@ -72,6 +72,12 @@ 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
/*