blob: 9a25861052dbc9205473db822972b7b2dd9cc6d3 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Rick Chenba06a9a2017-12-26 13:55:57 +08002/*
3 * Copyright (C) 2017 Andes Technology Corporation
4 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
Rick Chenba06a9a2017-12-26 13:55:57 +08005 */
6
7OUTPUT_ARCH(riscv)
8ENTRY(_start)
9SECTIONS
10{
11 . = ALIGN(4);
12 .text :
13 {
14 *(.text)
15 }
16
17 . = ALIGN(4);
18 .data : {
19 __global_pointer$ = . + 0x800;
20 *(.data)
21 }
22
23 . = ALIGN(4);
24
25 .got : {
26 __got_start = .;
27 *(.got)
28 __got_end = .;
29 }
30
31 . = ALIGN(4);
32 __bss_start = .;
33 .bss : { *(.bss) }
34 __bss_end = .;
35
36 . = ALIGN(4);
37 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
38
39 _end = .;
40}