diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-16 15:42:44 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-22 10:26:05 +0100 |
commit | 8422a8406b7d2d8e01c113e24eca167854981dfe (patch) | |
tree | 251ed2d6ebe98576eaa9e1871f3aef753552125b /lib/aarch32 | |
parent | 39b6cc66d670be41d6b51b644beb675f386a4240 (diff) | |
download | arm-trusted-firmware-8422a8406b7d2d8e01c113e24eca167854981dfe.tar.gz |
libc: armclang: Implement compiler printf symbols
armclang replaces calls to printf by calls to one of the symbols
__0printf, __1printf or __2printf. This patch adds new functions with
these names that internally call printf so that the Trusted Firmware can
be compiled with this compiler.
Change-Id: I06a0e3e5001232fe5b2577615666ddd66e81eef0
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'lib/aarch32')
-rw-r--r-- | lib/aarch32/armclang_printf.S | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/aarch32/armclang_printf.S b/lib/aarch32/armclang_printf.S new file mode 100644 index 000000000..2b87bf7e0 --- /dev/null +++ b/lib/aarch32/armclang_printf.S @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include <asm_macros.S> + +/* Symbols needed by armclang */ + + .globl __0printf + .globl __1printf + .globl __2printf + +func __0printf +__1printf: +__2printf: + b printf +endfunc __0printf |