mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00

All identifiers, regardless of use, that start with two underscores are reserved. This means they can't be used in header guards. The style that this project is now to use the full name of the file in capital letters followed by 'H'. For example, for a file called "uart_example.h", the header guard is UART_EXAMPLE_H. The exceptions are files that are imported from other projects: - CryptoCell driver - dt-bindings folders - zlib headers Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
77 lines
1.8 KiB
ArmAsm
77 lines
1.8 KiB
ArmAsm
/*
|
|
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef STM32MP1_LD_S
|
|
#define STM32MP1_LD_S
|
|
|
|
#include <platform_def.h>
|
|
#include <xlat_tables_defs.h>
|
|
|
|
OUTPUT_FORMAT(PLATFORM_LINKER_FORMAT)
|
|
OUTPUT_ARCH(PLATFORM_LINKER_ARCH)
|
|
|
|
ENTRY(__BL2_IMAGE_START__)
|
|
|
|
MEMORY {
|
|
HEADER (rw) : ORIGIN = 0x00000000, LENGTH = 0x3000
|
|
RAM (rwx) : ORIGIN = STM32MP1_BINARY_BASE, LENGTH = STM32MP1_BINARY_SIZE
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
/*
|
|
* TF mapping must conform to ROM code specification.
|
|
*/
|
|
.header : {
|
|
__HEADER_START__ = .;
|
|
KEEP(*(.header))
|
|
. = ALIGN(4);
|
|
__HEADER_END__ = .;
|
|
} >HEADER
|
|
|
|
. = STM32MP1_BINARY_BASE;
|
|
.data . : {
|
|
. = ALIGN(PAGE_SIZE);
|
|
__DATA_START__ = .;
|
|
*(.data*)
|
|
|
|
/*
|
|
* dtb.
|
|
* The strongest and only alignment contraint is MMU 4K page.
|
|
* Indeed as images below will be removed, 4K pages will be re-used.
|
|
*/
|
|
. = ( STM32MP1_DTB_BASE - STM32MP1_BINARY_BASE );
|
|
__DTB_IMAGE_START__ = .;
|
|
*(.dtb_image*)
|
|
__DTB_IMAGE_END__ = .;
|
|
|
|
/*
|
|
* bl2.
|
|
* The strongest and only alignment contraint is MMU 4K page.
|
|
* Indeed as images below will be removed, 4K pages will be re-used.
|
|
*/
|
|
. = ( STM32MP1_BL2_BASE - STM32MP1_BINARY_BASE );
|
|
__BL2_IMAGE_START__ = .;
|
|
*(.bl2_image*)
|
|
__BL2_IMAGE_END__ = .;
|
|
|
|
/*
|
|
* bl32 will be settled by bl2.
|
|
* The strongest and only alignment constraint is 8 words to simplify
|
|
* memraise8 assembly code.
|
|
*/
|
|
. = ( STM32MP1_BL32_BASE - STM32MP1_BINARY_BASE );
|
|
__BL32_IMAGE_START__ = .;
|
|
*(.bl32_image*)
|
|
__BL32_IMAGE_END__ = .;
|
|
|
|
__DATA_END__ = .;
|
|
} >RAM
|
|
|
|
__TF_END__ = .;
|
|
|
|
}
|
|
#endif /* STM32MP1_LD_S */
|