Rick Chen | c7d7e80 | 2017-12-26 13:55:57 +0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 8 | OUTPUT_ARCH(riscv) |
| 9 | ENTRY(_start) |
| 10 | SECTIONS |
| 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 | } |