c6x: Use generic time config
[deliverable/linux.git] / arch / parisc / kernel / vmlinux.lds.S
CommitLineData
1da177e4
LT
1/* Kernel link layout for various "sections"
2 *
3 * Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>
4 * Copyright (C) 2000-2003 Paul Bame <bame at parisc-linux.org>
5 * Copyright (C) 2000 John Marvin <jsm at parisc-linux.org>
6 * Copyright (C) 2000 Michael Ang <mang with subcarrier.org>
7 * Copyright (C) 2002 Randolph Chung <tausq with parisc-linux.org>
8 * Copyright (C) 2003 James Bottomley <jejb with parisc-linux.org>
2fd83038 9 * Copyright (C) 2006 Helge Deller <deller@gmx.de>
1da177e4
LT
10 *
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 */
1da177e4
LT
26#include <asm-generic/vmlinux.lds.h>
27/* needed for the processor specific cache alignment size */
28#include <asm/cache.h>
29#include <asm/page.h>
2fd83038 30#include <asm/asm-offsets.h>
8cf06fc9 31#include <asm/thread_info.h>
1da177e4
LT
32
33/* ld script to make hppa Linux kernel */
34#ifndef CONFIG_64BIT
35OUTPUT_FORMAT("elf32-hppa-linux")
36OUTPUT_ARCH(hppa)
37#else
38OUTPUT_FORMAT("elf64-hppa-linux")
39OUTPUT_ARCH(hppa:hppa2.0w)
40#endif
41
42ENTRY(_stext)
43#ifndef CONFIG_64BIT
44jiffies = jiffies_64 + 4;
45#else
46jiffies = jiffies_64;
47#endif
48SECTIONS
49{
be1b3d8c 50 . = KERNEL_BINARY_TEXT_START;
1da177e4 51
be1b3d8c
SR
52 _text = .; /* Text and read-only data */
53 .text ALIGN(16) : {
1138a72c 54 HEAD_TEXT
be1b3d8c
SR
55 TEXT_TEXT
56 SCHED_TEXT
57 LOCK_TEXT
d75f054a
HD
58 KPROBES_TEXT
59 IRQENTRY_TEXT
be1b3d8c
SR
60 *(.text.do_softirq)
61 *(.text.sys_exit)
62 *(.text.do_sigaltstack)
63 *(.text.do_fork)
64 *(.text.*)
65 *(.fixup)
66 *(.lock.text) /* out-of-line lock text */
67 *(.gnu.warning)
1da177e4 68 } = 0
be1b3d8c
SR
69 /* End of text section */
70 _etext = .;
1da177e4 71
a2d063ac
SR
72 /* Start of data section */
73 _sdata = .;
74
be1b3d8c 75 RODATA
1da177e4 76
be1b3d8c
SR
77 /* writeable */
78 /* Make sure this is page aligned so
79 * that we can properly leave these
80 * as writable
81 */
1c593571 82 . = ALIGN(PAGE_SIZE);
be1b3d8c 83 data_start = .;
81b4b98a 84
be1b3d8c
SR
85 /* unwind info */
86 .PARISC.unwind : {
87 __start___unwind = .;
88 *(.PARISC.unwind)
89 __stop___unwind = .;
90 }
2fd83038 91
33a932d1
HD
92 EXCEPTION_TABLE(16)
93 NOTES
94
be1b3d8c 95 /* Data */
57a8e116 96 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
1da177e4 97
be1b3d8c
SR
98 /* PA-RISC locks requires 16-byte alignment */
99 . = ALIGN(16);
a7df554e
DV
100 .data..lock_aligned : {
101 *(.data..lock_aligned)
be1b3d8c 102 }
1da177e4 103
be1b3d8c
SR
104 /* End of data section */
105 _edata = .;
1da177e4 106
be1b3d8c
SR
107 /* BSS */
108 __bss_start = .;
109 /* page table entries need to be PAGE_SIZE aligned */
1c593571 110 . = ALIGN(PAGE_SIZE);
d56a3c1a
DV
111 .data..vmpages : {
112 *(.data..vm0.pmd)
113 *(.data..vm0.pgd)
114 *(.data..vm0.pte)
be1b3d8c
SR
115 }
116 .bss : {
117 *(.bss)
118 *(COMMON)
2fd83038 119 }
be1b3d8c 120 __bss_stop = .;
2fd83038 121
1da177e4 122#ifdef CONFIG_64BIT
be1b3d8c
SR
123 . = ALIGN(16);
124 /* Linkage tables */
125 .opd : {
126 *(.opd)
127 } PROVIDE (__gp = .);
128 .plt : {
129 *(.plt)
130 }
131 .dlt : {
132 *(.dlt)
133 }
1da177e4
LT
134#endif
135
be1b3d8c
SR
136 /* reserve space for interrupt stack by aligning __init* to 16k */
137 . = ALIGN(16384);
138 __init_begin = .;
57a8e116 139 INIT_TEXT_SECTION(16384)
d7dd2ff1 140 . = ALIGN(PAGE_SIZE);
57a8e116 141 INIT_DATA_SECTION(16)
8cf06fc9
HD
142 /* we have to discard exit text and such at runtime, not link time */
143 .exit.text :
144 {
145 EXIT_TEXT
146 }
147 .exit.data :
148 {
149 EXIT_DATA
150 }
be1b3d8c 151
0415b00d 152 PERCPU_SECTION(L1_CACHE_BYTES)
1c593571 153 . = ALIGN(PAGE_SIZE);
be1b3d8c
SR
154 __init_end = .;
155 /* freed after init ends here */
156 _end = . ;
5fb7dc37 157
023bf6f1
TH
158 STABS_DEBUG
159 .note 0 : { *(.note) }
160
be1b3d8c 161 /* Sections to be discarded */
023bf6f1 162 DISCARDS
be1b3d8c 163 /DISCARD/ : {
1da177e4 164#ifdef CONFIG_64BIT
be1b3d8c
SR
165 /* temporary hack until binutils is fixed to not emit these
166 * for static binaries
167 */
168 *(.interp)
169 *(.dynsym)
170 *(.dynstr)
171 *(.dynamic)
172 *(.hash)
173 *(.gnu.hash)
1da177e4
LT
174#endif
175 }
1da177e4 176}
This page took 0.540606 seconds and 5 git commands to generate.