Commit | Line | Data |
---|---|---|
790edb61 G |
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> | |
df93878c | 17 | #include <asm/cache.h> |
790edb61 G |
18 | |
19 | OUTPUT_ARCH(unicore32) | |
20 | ENTRY(stext) | |
21 | ||
22 | jiffies = jiffies_64; | |
23 | ||
24 | SECTIONS | |
25 | { | |
26 | . = PAGE_OFFSET + KERNEL_IMAGE_START; | |
27 | ||
28 | _text = .; | |
29 | __init_begin = .; | |
30 | HEAD_TEXT_SECTION | |
31 | INIT_TEXT_SECTION(PAGE_SIZE) | |
32 | INIT_DATA_SECTION(16) | |
42733b3c | 33 | PERCPU_SECTION(L1_CACHE_BYTES) |
790edb61 G |
34 | __init_end = .; |
35 | ||
36 | _stext = .; | |
37 | .text : { /* Real text segment */ | |
38 | TEXT_TEXT | |
39 | SCHED_TEXT | |
40 | LOCK_TEXT | |
41 | ||
42 | *(.fixup) | |
43 | *(.gnu.warning) | |
44 | } | |
45 | _etext = .; | |
46 | ||
47 | _sdata = .; | |
48 | RO_DATA_SECTION(PAGE_SIZE) | |
df93878c | 49 | RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) |
790edb61 G |
50 | _edata = .; |
51 | ||
df93878c | 52 | EXCEPTION_TABLE(L1_CACHE_BYTES) |
790edb61 G |
53 | NOTES |
54 | ||
55 | BSS_SECTION(0, 0, 0) | |
56 | _end = .; | |
57 | ||
58 | STABS_DEBUG | |
59 | DWARF_DEBUG | |
60 | ||
61 | DISCARDS /* Exit code and data */ | |
62 | } |