Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Rick Chen | c7d7e80 | 2017-12-26 13:55:57 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 Andes Technology Corporation |
| 4 | * Rick Chen, Andes Technology Corporation <rick@andestech.com> |
Rick Chen | c7d7e80 | 2017-12-26 13:55:57 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | OUTPUT_ARCH(riscv) |
| 8 | ENTRY(_start) |
| 9 | SECTIONS |
| 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 | } |