blob: b88d7426bdea2cef5ea78feced63169db6533b97 [file] [log] [blame]
Macpaul Lin37e57082011-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 Denk1a459662013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Macpaul Lin37e57082011-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 Linc4f40542011-11-09 16:24:57 +080028 .data : { *(.data*) }
Macpaul Lin37e57082011-10-19 20:41:05 +000029
30 . = ALIGN(4);
31
32 .got : {
33 __got_start = .;
34 *(.got.plt) *(.got)
35 __got_end = .;
36 }
37
38 . = .;
Macpaul Lin37e57082011-10-19 20:41:05 +000039
40 . = ALIGN(4);
Marek Vasut55675142012-10-12 10:27:03 +000041 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000042 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000043 }
44
45 . = ALIGN(4);
Macpaul Lin37e57082011-10-19 20:41:05 +000046
47 _end = .;
48
49 .bss : {
50 __bss_start = .;
51 *(.bss)
52 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000053 __bss_end = .;
Macpaul Lin37e57082011-10-19 20:41:05 +000054 }
55
56}