• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2017 Andes Technology Corporation
4 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
5 */
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}
41