blob: 3097a16911ba690201d98e765860c311ffc6df02 [file] [log] [blame]
Macpaul Lin72c73dd2011-10-11 22:33:20 +00001/*
2 * Copyright (C) 2011 Andes Technology Corporation
3 * Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
4 * Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
5 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Macpaul Lin72c73dd2011-10-11 22:33:20 +00007 */
8
9OUTPUT_FORMAT("elf32-nds32", "elf32-nds32", "elf32-nds32")
10OUTPUT_ARCH(nds32)
11ENTRY(_start)
12SECTIONS
13{
14 . = ALIGN(4);
15 .text :
16 {
17 *(.text)
18 }
19
20 . = ALIGN(4);
21 .data : { *(.data) }
22
23 . = ALIGN(4);
24
25 .got : {
26 __got_start = .;
27 *(.got)
28 __got_end = .;
29 }
30
31 . = ALIGN(4);
32 __bss_start = .;
33 .bss : { *(.bss) }
34 __bss_end = .;
35
36 . = ALIGN(4);
37 .rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
38
39 _end = .;
40}