diff options
author | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-02-26 05:24:56 -0500 |
---|---|---|
committer | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-03-16 21:19:05 -0400 |
commit | 790edb61c0d87d1f1daafcaaa8f7c66b7b82bdad (patch) | |
tree | f3e3a4f1a182692dfa07e85010fca23eb951442b /arch/unicore32/kernel/vmlinux.lds.S | |
parent | 7f509a9ef7af0d6ac852d49eb87ed2b9857821cc (diff) |
unicore32 core architecture: build infrastructure
This patch implements build infrastructure.
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/unicore32/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/unicore32/kernel/vmlinux.lds.S | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/unicore32/kernel/vmlinux.lds.S b/arch/unicore32/kernel/vmlinux.lds.S new file mode 100644 index 000000000000..0b4eb89729e7 --- /dev/null +++ b/arch/unicore32/kernel/vmlinux.lds.S | |||
@@ -0,0 +1,61 @@ | |||
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 | } | ||