Macpaul Lin | 394c76a | 2011-10-11 22:33:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 Andes Technology Corporation |
| 3 | * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com> |
| 4 | * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com> |
| 5 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Macpaul Lin | 394c76a | 2011-10-11 22:33:20 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32") |
| 10 | OUTPUT_ARCH(nds32) |
| 11 | ENTRY(_start) |
| 12 | SECTIONS |
| 13 | { |
| 14 | . = ALIGN(4); |
| 15 | .text : |
| 16 | { |
| 17 | *(.text) |
| 18 | } |
| 19 | |
| 20 | . = ALIGN(4); |
| 21 | .data : { *(.data) } |
| 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 | } |