Andre Przywara | 2d8e99a | 2019-07-10 18:09:18 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | * Stub linker script to provide the armstub8.bin header before the actual |
| 7 | * code. If the GPU firmware finds a magic value at offset 240 in |
| 8 | * armstub8.bin, it will put the DTB and kernel load address in subsequent |
| 9 | * words. We can then read those values to find the proper NS entry point |
| 10 | * and find our DTB more flexibly. |
| 11 | */ |
| 12 | |
| 13 | MEMORY { |
| 14 | PRERAM (rwx): ORIGIN = 0, LENGTH = 4096 |
| 15 | } |
| 16 | |
| 17 | SECTIONS |
| 18 | { |
| 19 | .armstub8 . : { |
| 20 | *armstub8_header.o(.text*) |
| 21 | KEEP(*(.armstub8)) |
| 22 | } >PRERAM |
| 23 | } |