Debian Codegraph @

src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.ld

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /* We use ELF as output format. So that we can debug the code in some form. */
4 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
5 OUTPUT_ARCH(arm)
6
7 PHDRS
8 {
9 to_load PT_LOAD;
10 }
11
12 ENTRY(lp0_resume)
13 SECTIONS
14 {
15 . = 0x40020000 - 0x240;
16
17 /*
18 * The lp0 blob header is built as a static data structure and put
19 * in the .header section.
20 */
21 .header_start = .;
22 .header . : {
23 *(.header);
24 } : to_load = 0xff
25 .header_end = .;
26
27 . = 0x40020000;
28
29 /* The actual lp0 blob code. */
30 .data_start = .;
31 .data . : {
32 *(.text);
33 *(.text.*);
34 *(.rodata);
35 *(.rodata.*);
36 *(.data);
37 *(.data.*);
38 *(.bss);
39 *(.bss.*);
40 *(.sbss);
41 *(.sbss.*);
42 . = ALIGN(16);
43 }
44 .data_end = .;
45
46 /* Some values we need in the header. */
47 blob_data = .data_start;
48 blob_data_size = .data_end - .data_start;
49 blob_total_size = .data_end - .header_start;
50
51 /DISCARD/ : {
52 *(.comment)
53 *(.note)
54 *(.comment.*)
55 *(.note.*)
56 *(.ARM.*)
57 }
58 }