aboutsummaryrefslogtreecommitdiff
path: root/el3_payload/el3_payload.ld.S
blob: b1c28dc0088e90350176b9acb62a641be5db33f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2018, Arm Limited. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

OUTPUT_FORMAT("elf64-littleaarch64")
OUTPUT_ARCH("aarch64")
ENTRY(entrypoint)

MEMORY {
    RAM (rwx): ORIGIN = DRAM_BASE, LENGTH = (DRAM_BASE + DRAM_SIZE)
}

SECTIONS
{
    . = DRAM_BASE;

    ro . : {
        */entrypoint.o(.text)
        *(.text*)
        *(.rodata*)
    } >RAM

    .data : {
        *(.data*)
    } >RAM
}