blob: 1589babf6c3e8ed45e8b164b7be0b113bd7da5bf [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rick Chene76b8042017-12-26 13:55:48 +08002/*
3 * Copyright (C) 2017 Andes Technology Corporation
4 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
Rick Chene76b8042017-12-26 13:55:48 +08005 */
6OUTPUT_ARCH("riscv")
7ENTRY(_start)
8
9SECTIONS
10{
11 . = ALIGN(4);
12 .text :
13 {
Rick Chenb66af372018-05-29 09:54:40 +080014 arch/riscv/cpu/ax25/start.o (.text)
Rick Chene76b8042017-12-26 13:55:48 +080015 *(.text)
16 }
17
18 . = ALIGN(4);
19 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
20
21 . = ALIGN(4);
22 .data : {
23 __global_pointer$ = . + 0x800;
24 *(.data*)
25 }
26 . = ALIGN(4);
27
28 .got : {
29 __got_start = .;
30 *(.got.plt) *(.got)
31 __got_end = .;
32 }
33
34 . = ALIGN(4);
35
36 .u_boot_list : {
37 KEEP(*(SORT(.u_boot_list*)));
38 }
39
40 . = ALIGN(4);
41
Rick Chen9677a372018-05-28 19:06:37 +080042 .efi_runtime : {
43 __efi_runtime_start = .;
44 *(efi_runtime_text)
45 *(efi_runtime_data)
46 __efi_runtime_stop = .;
47 }
48
49 .efi_runtime_rel : {
50 __efi_runtime_rel_start = .;
51 *(.relaefi_runtime_text)
52 *(.relaefi_runtime_data)
53 __efi_runtime_rel_stop = .;
54 }
55
56 . = ALIGN(4);
57
Rick Chene76b8042017-12-26 13:55:48 +080058 /DISCARD/ : { *(.rela.plt*) }
59 .rela.dyn : {
60 __rel_dyn_start = .;
61 *(.rela*)
62 __rel_dyn_end = .;
63 }
64
65 . = ALIGN(4);
66
67 .dynsym : {
68 __dyn_sym_start = .;
69 *(.dynsym)
70 __dyn_sym_end = .;
71 }
72
73 . = ALIGN(4);
74
75 _end = .;
76
77 .bss : {
78 __bss_start = .;
79 *(.bss)
80 . = ALIGN(4);
81 __bss_end = .;
82 }
83
84}