Macpaul Lin | 3bb6f7e | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0+ |
Macpaul Lin | 3bb6f7e | 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 | dddb9fe | 2011-11-09 16:24:57 +0800 | [diff] [blame] | 28 | .data : { *(.data*) } |
Macpaul Lin | 3bb6f7e | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 29 | |
| 30 | . = ALIGN(4); |
| 31 | |
| 32 | .got : { |
| 33 | __got_start = .; |
rick | b0fd6e0 | 2016-04-14 14:32:27 +0800 | [diff] [blame] | 34 | *(.got.plt) *(.got) |
Macpaul Lin | 3bb6f7e | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 35 | __got_end = .; |
| 36 | } |
| 37 | |
Macpaul Lin | 3bb6f7e | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 38 | . = ALIGN(4); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 39 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 40 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | . = ALIGN(4); |
rick | b0fd6e0 | 2016-04-14 14:32:27 +0800 | [diff] [blame] | 44 | /DISCARD/ : { *(.rela.plt*) } |
| 45 | .rela.dyn : { |
| 46 | __rel_dyn_start = .; |
| 47 | *(.rela*) |
| 48 | __rel_dyn_end = .; |
| 49 | } |
Macpaul Lin | 3bb6f7e | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 50 | _end = .; |
| 51 | |
| 52 | .bss : { |
| 53 | __bss_start = .; |
| 54 | *(.bss) |
rick | b0fd6e0 | 2016-04-14 14:32:27 +0800 | [diff] [blame] | 55 | . = ALIGN(4); |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 56 | __bss_end = .; |
Macpaul Lin | 3bb6f7e | 2011-10-19 20:41:05 +0000 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | } |