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