Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Macpaul Lin | 72c73dd | 2011-10-11 22:33:20 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2011 Andes Technology Corporation |
| 4 | * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com> |
| 5 | * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com> |
Macpaul Lin | 72c73dd | 2011-10-11 22:33:20 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32") |
| 9 | OUTPUT_ARCH(nds32) |
| 10 | ENTRY(_start) |
| 11 | SECTIONS |
| 12 | { |
| 13 | . = ALIGN(4); |
| 14 | .text : |
| 15 | { |
| 16 | *(.text) |
| 17 | } |
| 18 | |
| 19 | . = ALIGN(4); |
| 20 | .data : { *(.data) } |
| 21 | |
| 22 | . = ALIGN(4); |
| 23 | |
| 24 | .got : { |
| 25 | __got_start = .; |
| 26 | *(.got) |
| 27 | __got_end = .; |
| 28 | } |
| 29 | |
| 30 | . = ALIGN(4); |
| 31 | __bss_start = .; |
| 32 | .bss : { *(.bss) } |
| 33 | __bss_end = .; |
| 34 | |
| 35 | . = ALIGN(4); |
| 36 | .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) } |
| 37 | |
| 38 | _end = .; |
| 39 | } |