1 | /*
|
---|
2 | * $Id:$
|
---|
3 | */
|
---|
4 |
|
---|
5 | OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64",
|
---|
6 | "elf64-littleaarch64")
|
---|
7 | OUTPUT_ARCH(aarch64)
|
---|
8 |
|
---|
9 | PROVIDE(hardware_init_hook = 0);
|
---|
10 | PROVIDE(software_init_hook = 0);
|
---|
11 | PROVIDE(software_term_hook = 0);
|
---|
12 |
|
---|
13 | ENTRY(start)
|
---|
14 | SECTIONS
|
---|
15 | {
|
---|
16 | . = 0x40000000;
|
---|
17 | .text : {
|
---|
18 | __start_text = .;
|
---|
19 | *(.text)
|
---|
20 | __end_kernel = .;
|
---|
21 | }
|
---|
22 | _etext = .;
|
---|
23 | PROVIDE(etext = .);
|
---|
24 |
|
---|
25 | . = ALIGN(8);
|
---|
26 | .rodata : {
|
---|
27 | __start_rodata = .;
|
---|
28 | *(.rodata)
|
---|
29 | __end_rodata = .;
|
---|
30 | }
|
---|
31 |
|
---|
32 | . = ALIGN(8);
|
---|
33 | __start_idata = .;
|
---|
34 | .data : AT(__start_idata){
|
---|
35 | __start_data = .;
|
---|
36 | *(.data)
|
---|
37 | __end_data = .;
|
---|
38 | }
|
---|
39 | __end_idata = __start_idata + SIZEOF(.data);
|
---|
40 | _edata = .;
|
---|
41 | PROVIDE(edata = .);
|
---|
42 | . = ALIGN(8);
|
---|
43 | .bss : {
|
---|
44 | __start_bss = .;
|
---|
45 | *(.bss)
|
---|
46 | *(COMMON)
|
---|
47 | __end_bss = .;
|
---|
48 | }
|
---|
49 | . = ALIGN(8);
|
---|
50 | _end = .;
|
---|
51 | PROVIDE(end = .);
|
---|
52 | . = . + 0x1000; /* 4kB of stack memory */
|
---|
53 | stack_top = .;
|
---|
54 | .comment 0 : { *(.comment) }
|
---|
55 |
|
---|
56 | /*
|
---|
57 | * DWARF debug sections.
|
---|
58 | * Symbols in the DWARF debugging sections are relative to
|
---|
59 | * the beginning of the section so we begin them at 0.
|
---|
60 | */
|
---|
61 |
|
---|
62 | /* DWARF 1 */
|
---|
63 | .debug 0 : { *(.debug) }
|
---|
64 | .line 0 : { *(.line) }
|
---|
65 |
|
---|
66 | /* GNU DWARF 1 extensions */
|
---|
67 | .debug_srcinfo 0 : { *(.debug_srcinfo) }
|
---|
68 | .debug_sfnames 0 : { *(.debug_sfnames) }
|
---|
69 |
|
---|
70 | /* DWARF 1.1 and DWARF 2 */
|
---|
71 | .debug_aranges 0 : { *(.debug_aranges) }
|
---|
72 | .debug_pubnames 0 : { *(.debug_pubnames) }
|
---|
73 |
|
---|
74 | /* DWARF 2 */
|
---|
75 | .debug_info 0 : { *(.debug_info) }
|
---|
76 | .debug_abbrev 0 : { *(.debug_abbrev) }
|
---|
77 | .debug_line 0 : { *(.debug_line) }
|
---|
78 | .debug_frame 0 : { *(.debug_frame) }
|
---|
79 | .debug_str 0 : { *(.debug_str) }
|
---|
80 | .debug_loc 0 : { *(.debug_loc) }
|
---|
81 | .debug_macinfo 0 : { *(.debug_macinfo) }
|
---|
82 |
|
---|
83 | /* SGI/MIPS DWARF 2 extensions */
|
---|
84 | .debug_weaknames 0 : { *(.debug_weaknames) }
|
---|
85 | .debug_funcnames 0 : { *(.debug_funcnames) }
|
---|
86 | .debug_typenames 0 : { *(.debug_typenames) }
|
---|
87 | .debug_varnames 0 : { *(.debug_varnames) }
|
---|
88 | }
|
---|