xref: /rk3399_ARM-atf/plat/rpi/rpi5/include/plat.ld.S (revision 5318255f12f88c91846b7261ce12254fb8395557)
1*f834b64fSMario Bălănică/*
2*f834b64fSMario Bălănică * Copyright (c) 2019-2024, Arm Limited and Contributors. All rights reserved.
3*f834b64fSMario Bălănică *
4*f834b64fSMario Bălănică * SPDX-License-Identifier: BSD-3-Clause
5*f834b64fSMario Bălănică *
6*f834b64fSMario Bălănică * Stub linker script to provide the armstub8.bin header before the actual
7*f834b64fSMario Bălănică * code. If the GPU firmware finds a magic value at offset 240 in
8*f834b64fSMario Bălănică * armstub8.bin, it will put the DTB and kernel load address in subsequent
9*f834b64fSMario Bălănică * words. We can then read those values to find the proper NS entry point
10*f834b64fSMario Bălănică * and find our DTB more flexibly.
11*f834b64fSMario Bălănică */
12*f834b64fSMario Bălănică
13*f834b64fSMario BălănicăMEMORY {
14*f834b64fSMario Bălănică    PRERAM (rwx): ORIGIN = 0, LENGTH = 4096
15*f834b64fSMario Bălănică}
16*f834b64fSMario Bălănică
17*f834b64fSMario BălănicăSECTIONS
18*f834b64fSMario Bălănică{
19*f834b64fSMario Bălănică    .armstub8 . : {
20*f834b64fSMario Bălănică        *armstub8_header.o(.text*)
21*f834b64fSMario Bălănică        KEEP(*(.armstub8))
22*f834b64fSMario Bălănică    } >PRERAM
23*f834b64fSMario Bălănică}
24