blob: 3f44dcbbad4d5b3605d2b088c154d36db531cf00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
/* ld script to make FRV Linux kernel
* Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>;
*/
OUTPUT_FORMAT("elf32-frv", "elf32-frv", "elf32-frv")
OUTPUT_ARCH(frv)
ENTRY(_start)
#include <asm-generic/vmlinux.lds.h>
#include <asm/processor.h>
#include <asm/page.h>
#include <asm/cache.h>
#include <asm/thread_info.h>
jiffies = jiffies_64 + 4;
__page_offset = CONFIG_PAGE_OFFSET; /* start of area covered by struct pages */
__kernel_image_start = __page_offset; /* address at which kernel image resides */
SECTIONS
{
. = __kernel_image_start;
/* discardable initialisation code and data */
. = ALIGN(PAGE_SIZE); /* Init code and data */
__init_begin = .;
_sinittext = .;
.init.text : {
HEAD_TEXT
#ifndef CONFIG_DEBUG_INFO
INIT_TEXT
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
#endif
}
_einittext = .;
INIT_DATA_SECTION(8)
PERCPU_SECTION(L1_CACHE_BYTES)
. = ALIGN(PAGE_SIZE);
__init_end = .;
.trap : {
/* trap table management - read entry-table.S before modifying */
. = ALIGN(8192);
__trap_tables = .;
*(.trap.user)
*(.trap.kernel)
. = ALIGN(4096);
*(.trap.break)
}
/* Text and read-only data */
. = ALIGN(4);
_text = .;
_stext = .;
.text : {
*(.text..start)
*(.text..entry)
*(.text..break)
*(.text..tlbmiss)
TEXT_TEXT
SCHED_TEXT
CPUIDLE_TEXT
LOCK_TEXT
#ifdef CONFIG_DEBUG_INFO
INIT_TEXT
EXIT_TEXT
*(.exitcall.exit)
#endif
*(.fixup)
*(.gnu.warning)
*(.exitcall.exit)
} = 0x9090
_etext = .; /* End of text section */
RODATA
.rodata : {
*(.trap.vector)
/* this clause must not be modified - the ordering and adjacency are imperative */
__trap_fixup_tables = .;
*(.trap.fixup.user .trap.fixup.kernel)
}
EXCEPTION_TABLE(8)
_sdata = .;
.data : { /* Data */
INIT_TASK_DATA(THREAD_SIZE)
CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
DATA_DATA
*(.data.*)
EXIT_DATA
CONSTRUCTORS
}
_edata = .; /* End of data section */
BUG_TABLE
/* GP section */
. = ALIGN(L1_CACHE_BYTES);
_gp = . + 2048;
PROVIDE (gp = _gp);
.sdata : { *(.sdata .sdata.*) }
/* BSS */
. = ALIGN(L1_CACHE_BYTES);
__bss_start = .;
.sbss : { *(.sbss .sbss.*) }
.bss : { *(.bss .bss.*) }
.bss..stack : { *(.bss) }
__bss_stop = .;
_end = . ;
. = ALIGN(PAGE_SIZE);
__kernel_image_end = .;
STABS_DEBUG
DWARF_DEBUG
.comment 0 : { *(.comment) }
DISCARDS
}
__kernel_image_size_no_bss = __bss_start - __kernel_image_start;
|