GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 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> |
Guan Xuetao | df93878 | 2011-03-29 21:30:04 +0800 | [diff] [blame] | 17 | #include <asm/cache.h> |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 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) |
Guan Xuetao | 42733b3 | 2011-05-26 17:19:20 +0800 | [diff] [blame] | 33 | PERCPU_SECTION(L1_CACHE_BYTES) |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 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) |
Guan Xuetao | df93878 | 2011-03-29 21:30:04 +0800 | [diff] [blame] | 49 | RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 50 | _edata = .; |
| 51 | |
Guan Xuetao | df93878 | 2011-03-29 21:30:04 +0800 | [diff] [blame] | 52 | EXCEPTION_TABLE(L1_CACHE_BYTES) |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 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 | } |