blob: 936fd779aa0a373071631a649b0b2e1673356f80 [file] [log] [blame]
Rick Chene76b8042017-12-26 13:55:48 +08001/*
2 * Copyright (C) 2017 Andes Technology Corporation
3 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7OUTPUT_ARCH("riscv")
8ENTRY(_start)
9
10SECTIONS
11{
12 . = ALIGN(4);
13 .text :
14 {
15 arch/riscv/cpu/nx25/start.o (.text)
16 *(.text)
17 }
18
19 . = ALIGN(4);
20 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
21
22 . = ALIGN(4);
23 .data : {
24 __global_pointer$ = . + 0x800;
25 *(.data*)
26 }
27 . = ALIGN(4);
28
29 .got : {
30 __got_start = .;
31 *(.got.plt) *(.got)
32 __got_end = .;
33 }
34
35 . = ALIGN(4);
36
37 .u_boot_list : {
38 KEEP(*(SORT(.u_boot_list*)));
39 }
40
41 . = ALIGN(4);
42
43 /DISCARD/ : { *(.rela.plt*) }
44 .rela.dyn : {
45 __rel_dyn_start = .;
46 *(.rela*)
47 __rel_dyn_end = .;
48 }
49
50 . = ALIGN(4);
51
52 .dynsym : {
53 __dyn_sym_start = .;
54 *(.dynsym)
55 __dyn_sym_end = .;
56 }
57
58 . = ALIGN(4);
59
60 _end = .;
61
62 .bss : {
63 __bss_start = .;
64 *(.bss)
65 . = ALIGN(4);
66 __bss_end = .;
67 }
68
69}