blob: 7d8c482250dff18335487c8f44219685b1607608 [file] [log] [blame]
Rick Chenc7d7e802017-12-26 13:55:57 +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 */
7
8OUTPUT_ARCH(riscv)
9ENTRY(_start)
10SECTIONS
11{
12 . = ALIGN(4);
13 .text :
14 {
15 *(.text)
16 }
17
18 . = ALIGN(4);
19 .data : {
20 __global_pointer$ = . + 0x800;
21 *(.data)
22 }
23
24 . = ALIGN(4);
25
26 .got : {
27 __got_start = .;
28 *(.got)
29 __got_end = .;
30 }
31
32 . = ALIGN(4);
33 __bss_start = .;
34 .bss : { *(.bss) }
35 __bss_end = .;
36
37 . = ALIGN(4);
38 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
39
40 _end = .;
41}