Skip to content
Commit 5f05d659 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Carles Cufí
Browse files

libc: newlib: libc-hooks: Provide our own implementation of __chk_fail()



The version as shipped in Newlib itself is coded a bit sloppily for an
embedded environment. We thus want to override it (and make it weak, to
allow user apps to override it in turn, if needed). The desired
properties of the implementation are:

1. It should call _write() (Newlib implementation calls write()).
2. It should be minimal (Newlib implementation allocates message
on the stack, i.e. misses "static const").

Signed-off-by: default avatarPaul Sokolovsky <paul.sokolovsky@linaro.org>
parent 88f25df9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment