blob: 4abaf0af1a8f68d8b15c29764f10a54e3dc419b3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Macpaul Lin37e57082011-10-19 20:41:05 +00002/*
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 Lin37e57082011-10-19 20:41:05 +00009 */
10
11OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
12OUTPUT_ARCH(nds32)
13ENTRY(_start)
14SECTIONS
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 Linc4f40542011-11-09 16:24:57 +080027 .data : { *(.data*) }
Macpaul Lin37e57082011-10-19 20:41:05 +000028
29 . = ALIGN(4);
30
31 .got : {
32 __got_start = .;
rickd607f6f2016-04-14 14:32:27 +080033 *(.got.plt) *(.got)
Macpaul Lin37e57082011-10-19 20:41:05 +000034 __got_end = .;
35 }
36
Macpaul Lin37e57082011-10-19 20:41:05 +000037 . = ALIGN(4);
Marek Vasut55675142012-10-12 10:27:03 +000038 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000039 KEEP(*(SORT(.u_boot_list*)));
Marek Vasut55675142012-10-12 10:27:03 +000040 }
41
42 . = ALIGN(4);
rickd607f6f2016-04-14 14:32:27 +080043 /DISCARD/ : { *(.rela.plt*) }
44 .rela.dyn : {
45 __rel_dyn_start = .;
46 *(.rela*)
47 __rel_dyn_end = .;
48 }
Macpaul Lin37e57082011-10-19 20:41:05 +000049 _end = .;
50
51 .bss : {
52 __bss_start = .;
53 *(.bss)
rickd607f6f2016-04-14 14:32:27 +080054 . = ALIGN(4);
Simon Glass3929fb02013-03-14 06:54:53 +000055 __bss_end = .;
Macpaul Lin37e57082011-10-19 20:41:05 +000056 }
57
58}