embeddedartistry / libc

libc targeted for embedded systems usage. Reduced set of functionality (due to embedded nature). Chosen for portability and quick bringup.
MIT License
510 stars 67 forks source link

Add stack checking support #123

Closed phillipjohnston closed 4 years ago

phillipjohnston commented 4 years ago

Currently, stack checking is disabled with -fno-stack-protectors. We should make this an option and supply our own stack protectors.

"_stack_chk_fail", referenced from: _heapsort_uint64_test in stdlib_heapsort.c.o _qsort_r_uint64_test in stdlib_qsort_r.c.o _qsort_uint64_test in stdlib_qsort.c.o _strcat_test in string_strcat.c.o _strchr_test in string_strchr.c.o _strcpy_test in string_strcpy.c.o _strncat_test in stringstrncat.c.o ... "stack_chk_guard", referenced from: _heapsort_uint64_test in stdlib_heapsort.c.o _qsort_r_uint64_test in stdlib_qsort_r.c.o _qsort_uint64_test in stdlib_qsort.c.o _strcat_test in string_strcat.c.o _strchr_test in string_strchr.c.o _strcpy_test in string_strcpy.c.o _strncat_test in string_strncat.c.o