lib: libc: armstdc: add missing retarget of fputc to _stdout_hook

Fixes #62677 where printf defaults to using armclang's semihosting backed
implementation of printf.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
This commit is contained in:
Wilfried Chauveau 2023-10-02 20:19:55 +01:00 committed by Carles Cufí
parent 89db200117
commit d79ba86c04

View file

@ -25,3 +25,8 @@ volatile int *__aeabi_errno_addr(void)
{
return &_current->errno_var;
}
int fputc(int c, FILE *f)
{
return (_stdout_hook)(c);
}