blob: ec2743344c11f2dada177ff44af0402a55aef863 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* model.lds.S - simple linker script for stand-alone Linux booting
*
* Copyright (C) 2012 ARM Limited. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE.txt file.
*/
OUTPUT_FORMAT("elf64-littleaarch64")
OUTPUT_ARCH(aarch64)
TARGET(binary)
INPUT(./boot.o)
INPUT(KERNEL)
INPUT(./fdt.dtb)
#ifdef USE_INITRD
INPUT(FILESYSTEM)
#endif
SECTIONS
{
. = PHYS_OFFSET;
.text : { boot.o }
. = PHYS_OFFSET + MBOX_OFFSET;
mbox = .;
.mbox : { QUAD(0x0) }
. = PHYS_OFFSET + KERNEL_OFFSET;
kernel = .;
.kernel : { KERNEL }
. = PHYS_OFFSET + FDT_OFFSET;
dtb = .;
.dtb : { ./fdt.dtb }
. = PHYS_OFFSET + FS_OFFSET;
filesystem = .;
#ifdef USE_INITRD
.filesystem : { FILESYSTEM }
fs_size = . - filesystem;
#endif
.data : { *(.data) }
.bss : { *(.bss) }
}
|