Macpaul Lin | 37e5708 | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
| 5 | * Copyright (C) 2011 Andes Technology Corporation |
| 6 | * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com> |
| 7 | * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com> |
| 8 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Macpaul Lin | 37e5708 | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32") |
| 13 | OUTPUT_ARCH(nds32) |
| 14 | ENTRY(_start) |
| 15 | SECTIONS |
| 16 | { |
| 17 | . = ALIGN(4); |
| 18 | .text : |
| 19 | { |
| 20 | arch/nds32/cpu/n1213/start.o (.text) |
| 21 | *(.text) |
| 22 | } |
| 23 | |
| 24 | . = ALIGN(4); |
| 25 | .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } |
| 26 | |
| 27 | . = ALIGN(4); |
Macpaul Lin | c4f4054 | 2011-11-09 16:24:57 +0800 | [diff] [blame] | 28 | .data : { *(.data*) } |
Macpaul Lin | 37e5708 | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 29 | |
| 30 | . = ALIGN(4); |
| 31 | |
| 32 | .got : { |
| 33 | __got_start = .; |
| 34 | *(.got.plt) *(.got) |
| 35 | __got_end = .; |
| 36 | } |
| 37 | |
| 38 | . = .; |
Macpaul Lin | 37e5708 | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 39 | |
| 40 | . = ALIGN(4); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 41 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 42 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | . = ALIGN(4); |
Macpaul Lin | 37e5708 | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 46 | |
| 47 | _end = .; |
| 48 | |
| 49 | .bss : { |
| 50 | __bss_start = .; |
| 51 | *(.bss) |
| 52 | . = ALIGN(4); |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 53 | __bss_end = .; |
Macpaul Lin | 37e5708 | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | } |