mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 17:37:02 +02:00
When defining different sections in linker scripts it is needed to align them to multiples of the page size. In most linker scripts this is done by aligning to the hardcoded value 4096 instead of PAGE_SIZE. This may be confusing when taking a look at all the codebase, as 4096 is used in some parts that aren't meant to be a multiple of the page size. Change-Id: I36c6f461c7782437a58d13d37ec8b822a1663ec1 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
31 lines
687 B
ArmAsm
31 lines
687 B
ArmAsm
/*
|
|
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef __ARM_COMMON_LD_S__
|
|
#define __ARM_COMMON_LD_S__
|
|
|
|
#include <xlat_tables_defs.h>
|
|
|
|
MEMORY {
|
|
EL3_SEC_DRAM (rw): ORIGIN = ARM_EL3_TZC_DRAM1_BASE, LENGTH = ARM_EL3_TZC_DRAM1_SIZE
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
. = ARM_EL3_TZC_DRAM1_BASE;
|
|
ASSERT(. == ALIGN(PAGE_SIZE),
|
|
"ARM_EL3_TZC_DRAM_BASE address is not aligned on a page boundary.")
|
|
el3_tzc_dram (NOLOAD) : ALIGN(PAGE_SIZE) {
|
|
__EL3_SEC_DRAM_START__ = .;
|
|
*(arm_el3_tzc_dram)
|
|
__EL3_SEC_DRAM_UNALIGNED_END__ = .;
|
|
|
|
. = NEXT(PAGE_SIZE);
|
|
__EL3_SEC_DRAM_END__ = .;
|
|
} >EL3_SEC_DRAM
|
|
}
|
|
|
|
#endif /* __ARM_COMMON_LD_S__ */
|