u-boot/arch/sandbox
Heinrich Schuchardt 34bee10e00 sandbox: replace putchar(ch) by fputc(ch, stdout)
When compiled with -Og for better debugability u-boot ends up in a stack
overflow using

    gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0
    GNU Binutils for Ubuntu 2.37

putchar(ch) is defined as a macro which ends up calling U-Boot's putc()
implementation instead of the glibc one, which calls os_putc() ...

Let's use fputc(ch, stdout) instead as fputc() does not exist in U-Boot.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-12-02 09:15:43 -07:00
..
cpu sandbox: replace putchar(ch) by fputc(ch, stdout) 2021-12-02 09:15:43 -07:00
dts dm: core: Add tests for stringlist functions 2021-11-28 16:51:51 -07:00
include/asm sandbox: Remove OF_HOSTFILE 2021-10-27 16:38:26 -04:00
lib sandbox: provide /chosen/boot-hartid property 2021-10-21 12:50:48 -06:00
config.mk sandbox: Migrate ARCH_MAP_SYSMEM to Kconfig 2021-10-31 12:26:44 -06:00
Kconfig sandbox: Migrate ARCH_MAP_SYSMEM to Kconfig 2021-10-31 12:26:44 -06:00
Makefile sandbox: Use 'extras' to specify 'head' files 2018-12-05 06:01:34 -07:00