blob: 40db0e6e816746bfded3ab95e859722ffec0524c [file] [log] [blame]
Macpaul Lin3bb6f7e2011-10-19 20:41:05 +00001/*
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 Denkd79de1d2013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Macpaul Lin3bb6f7e2011-10-19 20:41:05 +000010 */
11
12OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
13OUTPUT_ARCH(nds32)
14ENTRY(_start)
15SECTIONS
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 Lindddb9fe2011-11-09 16:24:57 +080028 .data : { *(.data*) }
Macpaul Lin3bb6f7e2011-10-19 20:41:05 +000029
30 . = ALIGN(4);
31
32 .got : {
33 __got_start = .;
rickb0fd6e02016-04-14 14:32:27 +080034 *(.got.plt) *(.got)
Macpaul Lin3bb6f7e2011-10-19 20:41:05 +000035 __got_end = .;
36 }
37
Macpaul Lin3bb6f7e2011-10-19 20:41:05 +000038 . = ALIGN(4);
Marek Vasut607092a2012-10-12 10:27:03 +000039 .u_boot_list : {
Albert ARIBAUDc24895e2013-02-25 00:59:00 +000040 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000041 }
42
43 . = ALIGN(4);
rickb0fd6e02016-04-14 14:32:27 +080044 /DISCARD/ : { *(.rela.plt*) }
45 .rela.dyn : {
46 __rel_dyn_start = .;
47 *(.rela*)
48 __rel_dyn_end = .;
49 }
Macpaul Lin3bb6f7e2011-10-19 20:41:05 +000050 _end = .;
51
52 .bss : {
53 __bss_start = .;
54 *(.bss)
rickb0fd6e02016-04-14 14:32:27 +080055 . = ALIGN(4);
Simon Glassed70c8f2013-03-14 06:54:53 +000056 __bss_end = .;
Macpaul Lin3bb6f7e2011-10-19 20:41:05 +000057 }
58
59}