plat.ld.S 619 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 *
 * Stub linker script to provide the armstub8.bin header before the actual
 * code. If the GPU firmware finds a magic value at offset 240 in
 * armstub8.bin, it will put the DTB and kernel load address in subsequent
 * words. We can then read those values to find the proper NS entry point
 * and find our DTB more flexibly.
 */

MEMORY {
    PRERAM (rwx): ORIGIN = 0, LENGTH = 4096
}

SECTIONS
{
    .armstub8 . : {
        *armstub8_header.o(.text*)
        KEEP(*(.armstub8))
    } >PRERAM
}