arm: Fix current RECLAIM_INIT_CODE behavior
Previously the .init section was created even when the reclaim flag was manually set to 0. Change-Id: Ia9e7c7997261f54a4eca725d7ea605192f60bcf8 Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com> Zelalem Aweke <zelalem.aweke@arm.com>
This commit is contained in:
parent
87b582ef5b
commit
a71c59d5cb
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -27,10 +27,9 @@ SECTIONS
|
|||
"BL31 init has exceeded progbits limit.")
|
||||
#endif
|
||||
|
||||
#if RECLAIM_INIT_CODE
|
||||
ASSERT(__INIT_CODE_END__ <= __STACKS_END__,
|
||||
"Init code ends past the end of the stacks")
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif /* ARM_RECLAIM_INIT_LD_S */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -7,6 +7,9 @@
|
|||
#define PLAT_LD_S
|
||||
|
||||
#include <plat/arm/common/arm_tzc_dram.ld.S>
|
||||
|
||||
#if RECLAIM_INIT_CODE
|
||||
#include <plat/arm/common/arm_reclaim_init.ld.S>
|
||||
#endif /* RECLAIM_INIT_CODE */
|
||||
|
||||
#endif /* PLAT_LD_S */
|
||||
|
|
Loading…
Reference in New Issue