u-boot/arch/sandbox/cpu
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
..
cache.c sandbox: implement invalidate_icache_all() 2020-12-22 20:39:25 -07:00
cpu.c sandbox: Remove OF_HOSTFILE 2021-10-27 16:38:26 -04:00
eth-raw-os.c sandbox: eth-raw: do not close the console input 2020-11-05 09:11:30 -07:00
Makefile sandbox: implement invalidate_icache_all() 2020-12-22 20:39:25 -07:00
os.c sandbox: replace putchar(ch) by fputc(ch, stdout) 2021-12-02 09:15:43 -07:00
sdl.c sandbox: Use hinting with the display 2021-07-21 10:27:34 -06:00
spl.c sandbox: Support executables for more phases 2021-07-21 10:27:34 -06:00
start.c sandbox: poweroff in efi_system_reset() 2021-11-26 21:30:59 +01:00
state.c sandbox: Reduce keyed autoboot delay 2021-08-01 09:05:24 -06:00
u-boot-spl.lds sandbox: use sections instead of symbols for getopt array boundaries 2021-05-24 14:21:30 -04:00
u-boot.lds sandbox: use sections instead of symbols for getopt array boundaries 2021-05-24 14:21:30 -04:00