Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6
[pandora-kernel.git] / arch / unicore32 / kernel / vmlinux.lds.S
1 /*
2  * linux/arch/unicore32/kernel/vmlinux.lds.S
3  *
4  * Code specific to PKUnity SoC and UniCore ISA
5  *
6  * Copyright (C) 2001-2010 GUAN Xue-tao
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 #include <asm-generic/vmlinux.lds.h>
14 #include <asm/thread_info.h>
15 #include <asm/memory.h>
16 #include <asm/page.h>
17
18 OUTPUT_ARCH(unicore32)
19 ENTRY(stext)
20
21 jiffies = jiffies_64;
22
23 SECTIONS
24 {
25         . = PAGE_OFFSET + KERNEL_IMAGE_START;
26
27         _text = .;
28         __init_begin = .;
29         HEAD_TEXT_SECTION
30         INIT_TEXT_SECTION(PAGE_SIZE)
31         INIT_DATA_SECTION(16)
32         PERCPU(PAGE_SIZE)
33         __init_end = .;
34
35         _stext = .;
36         .text : {               /* Real text segment */
37                 TEXT_TEXT
38                 SCHED_TEXT
39                 LOCK_TEXT
40
41                 *(.fixup)
42                 *(.gnu.warning)
43         }
44         _etext = .;
45
46         _sdata = .;
47         RO_DATA_SECTION(PAGE_SIZE)
48         RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
49         _edata = .;
50
51         EXCEPTION_TABLE(32)
52         NOTES
53
54         BSS_SECTION(0, 0, 0)
55         _end = .;
56
57         STABS_DEBUG
58         DWARF_DEBUG
59
60         DISCARDS                /* Exit code and data */
61 }