mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 06:50:10 +00:00

Moving putchar() out of libc and adding a weak dummy implementation in libc. This is to remove libc's dependencies to the platform driver. Signed-off-by: Claus Pedersen <claustbp@google.com> Change-Id: Ib7fefaec0babb783def614ea23521f482fa4a28a
14 lines
249 B
C
14 lines
249 B
C
/*
|
|
* Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
int __putchar(int c)
|
|
{
|
|
return c;
|
|
}
|
|
|
|
int putchar(int c) __attribute__((weak,alias("__putchar")));
|