summaryrefslogtreecommitdiff
path: root/bl2u/aarch32
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2020-08-18 14:42:41 +0200
committerYann Gautier <yann.gautier@foss.st.com>2021-04-21 15:05:57 +0200
commitfb4f511f9b454ea9e03f6391790693a834d8a830 (patch)
tree3262617ae86e71e89686471a35cf175d0fde85d2 /bl2u/aarch32
parent617632bf834009b29eb1f659fbd971a139a899af (diff)
downloadarm-trusted-firmware-fb4f511f9b454ea9e03f6391790693a834d8a830.tar.gz
Avoid the use of linker *_SIZE__ macros
The use of end addresses is preferred over the size of sections. This was done for some AARCH64 files for PIE with commit [1], and some extra explanations can be found in its commit message. Align the missing AARCH64 files. For AARCH32 files, this is required to prepare PIE support introduction. [1] f1722b693d36 ("PIE: Use PC relative adrp/adr for symbol reference") Change-Id: I8f1c06580182b10c680310850f72904e58a54d7d Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'bl2u/aarch32')
-rw-r--r--bl2u/aarch32/bl2u_entrypoint.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/bl2u/aarch32/bl2u_entrypoint.S b/bl2u/aarch32/bl2u_entrypoint.S
index 6391f537c..e4dd03dec 100644
--- a/bl2u/aarch32/bl2u_entrypoint.S
+++ b/bl2u/aarch32/bl2u_entrypoint.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2021, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -79,7 +79,8 @@ func bl2u_entrypoint
* ---------------------------------------------
*/
ldr r0, =__BSS_START__
- ldr r1, =__BSS_SIZE__
+ ldr r1, =__BSS_END__
+ sub r1, r1, r0
bl zeromem
/* --------------------------------------------