Searched hist:"2 ecdb4d793b36537036fa7bbb58e52c8b2134638" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/lib/libutils/isoc/newlib/ |
| H A D | sub.mk | 2ecdb4d793b36537036fa7bbb58e52c8b2134638 Mon Apr 25 12:23:54 UTC 2016 Joakim Bech <joakim.bech@linaro.org> newlib: Add -ffreestanding to newlib files
When doing builds with –O3, the GCC compiler in some cases generates re-entrant code for memset() function which can result in calling itself infinitely causing overflow of stack & data corruption. One way to prevent this from happening is to enable the -ffreestanding compiler flag.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU) Suggested-by: Alexei Fedorov <alexei.fedorov@arm.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
|