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