From d701b48eef4bb4b4b13ce5ef4091a37047e49a0b Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Tue, 6 Feb 2024 18:05:23 +0000 Subject: [PATCH] fix(bl1): add missing `__RW_{START,END}__` symbols These symbols are missing from BL1, which causes undefined reference errors when linking with LTO enabled. Change-Id: Id3eda0550c957f5ef0535f0de4ff2ad87c93b82a Signed-off-by: Chris Kay --- bl1/bl1.ld.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bl1/bl1.ld.S b/bl1/bl1.ld.S index d25ec63fb..636aebe2c 100644 --- a/bl1/bl1.ld.S +++ b/bl1/bl1.ld.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2023, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -116,6 +116,8 @@ SECTIONS { ASSERT(BL1_RW_BASE == ALIGN(PAGE_SIZE), "BL1_RW_BASE address is not aligned on a page boundary.") + __RW_START__ = .; + DATA_SECTION >RAM AT>ROM __DATA_RAM_START__ = __DATA_START__; @@ -148,6 +150,8 @@ SECTIONS { } >RAM #endif /* USE_COHERENT_MEM */ + __RW_END__ = .; + __BL1_RAM_START__ = ADDR(.data); __BL1_RAM_END__ = .;