aboutsummaryrefslogtreecommitdiff
path: root/lib/aarch64
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2019-01-10 15:36:44 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2019-02-07 08:47:09 -0800
commitbf52f40e2a7e2e6f3659e6812b4cf3fa10693076 (patch)
tree2bad49767ac51eefb1e667920fca44f0f416bb5b /lib/aarch64
parent9c2eda0193a8505e47e6f1671c3c0795d876018e (diff)
downloadtrusted-firmware-a-bf52f40e2a7e2e6f3659e6812b4cf3fa10693076.tar.gz
lib: aarch64: fix non-code symbol errors flagged by armlink
This patch modifies the code to turn __1printf and __2printf into proper functions to fix the following errors flagged by armlink. Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf. Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf. Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf. Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf. Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf. Error: L6318W: backtrace.o(.text.backtrace) contains branch to a non-code symbol __2printf. Change-Id: I89126bc2b9db44ce8b8fc9fb1e3fc4c8c60c47a4 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'lib/aarch64')
-rw-r--r--lib/aarch64/armclang_printf.S14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/aarch64/armclang_printf.S b/lib/aarch64/armclang_printf.S
index 2b87bf7e0f..52a6976954 100644
--- a/lib/aarch64/armclang_printf.S
+++ b/lib/aarch64/armclang_printf.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -13,7 +13,13 @@
.globl __2printf
func __0printf
-__1printf:
-__2printf:
- b printf
+ b printf
endfunc __0printf
+
+func __1printf
+ b printf
+endfunc __1printf
+
+func __2printf
+ b printf
+endfunc __2printf