spi: tegra: do not use clock name to get clock
[linux-2.6/btrfs-unstable.git] / arch / hexagon / kernel / vmlinux.lds.S
blob14e793f6abbfff6a4313720710646826233be8ea
1 /*
2  * Linker script for Hexagon kernel
3  *
4  * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 and
8  * only version 2 as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  * 02110-1301, USA.
19  */
21 #define LOAD_OFFSET PAGE_OFFSET
23 #include <asm-generic/vmlinux.lds.h>
24 #include <asm/asm-offsets.h>    /*  Most of the kernel defines are here  */
25 #include <asm/mem-layout.h>     /*  except for page_offset  */
26 #include <asm/cache.h>          /*  and now we're pulling cache line size  */
27 OUTPUT_ARCH(hexagon)
28 ENTRY(stext)
30 jiffies = jiffies_64;
33 See asm-generic/vmlinux.lds.h for expansion of some of these macros.
34 See asm-generic/sections.h for seemingly required labels.
37 #define PAGE_SIZE _PAGE_SIZE
39 /*  This LOAD_OFFSET is temporary for debugging on the simulator; it may change
40     for hypervisor pseudo-physical memory.  */
43 SECTIONS
45         . = PAGE_OFFSET + LOAD_ADDRESS;
47         __init_begin = .;
48         HEAD_TEXT_SECTION
49         INIT_TEXT_SECTION(PAGE_SIZE)
50         PERCPU_SECTION(L1_CACHE_BYTES)
51         __init_end = .;
53         . = ALIGN(_PAGE_SIZE);
54         _stext = .;
55         .text : AT(ADDR(.text) - LOAD_OFFSET) {
56                 _text = .;
57                 TEXT_TEXT
58                 SCHED_TEXT
59                 LOCK_TEXT
60                 KPROBES_TEXT
61                 *(.fixup)
62         }
63         _etext = .;
65         INIT_DATA_SECTION(PAGE_SIZE)
67         _sdata = .;
68                 RW_DATA_SECTION(32,PAGE_SIZE,PAGE_SIZE)
69                 RO_DATA_SECTION(PAGE_SIZE)
70         _edata = .;
72         EXCEPTION_TABLE(16)
73         NOTES
75         BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)
77         _end = .;
79         /DISCARD/ : {
80                 EXIT_TEXT
81                 EXIT_DATA
82                 EXIT_CALL
83         }
85         STABS_DEBUG
86         DWARF_DEBUG