1
2
3
4
5
6
7
8#ifndef _ASM_GENERIC_SECTIONS_H_
9#define _ASM_GENERIC_SECTIONS_H_
10
11#include <linux/types.h>
12
13
14
15extern char _text[], _stext[], _etext[];
16extern char _data[], _sdata[], _edata[];
17extern char __bss_start[], __bss_stop[];
18extern char __init_begin[], __init_end[];
19extern char _sinittext[], _einittext[];
20extern char _end[], _init[];
21extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
22extern char __kprobes_text_start[], __kprobes_text_end[];
23extern char __entry_text_start[], __entry_text_end[];
24extern char __initdata_begin[], __initdata_end[];
25extern char __start_rodata[], __end_rodata[];
26extern char __efi_helloworld_begin[];
27extern char __efi_helloworld_end[];
28extern char __efi_var_file_begin[];
29extern char __efi_var_file_end[];
30
31
32extern char __priv_data_start[], __priv_data_end[];
33
34
35extern char __ctors_start[], __ctors_end[];
36
37
38
39#ifndef dereference_function_descriptor
40#define dereference_function_descriptor(p) (p)
41#endif
42
43
44
45#ifndef arch_is_kernel_text
46static inline int arch_is_kernel_text(unsigned long addr)
47{
48 return 0;
49}
50#endif
51
52#ifndef arch_is_kernel_data
53static inline int arch_is_kernel_data(unsigned long addr)
54{
55 return 0;
56}
57#endif
58
59
60
61
62extern char __text_start[];
63
64
65extern char __image_copy_end[];
66
67
68
69
70
71extern void _start(void);
72
73
74
75
76#ifdef CONFIG_ARM
77
78extern char __bss_start[];
79extern char __bss_end[];
80extern char __image_copy_start[];
81extern char __image_copy_end[];
82extern char _image_binary_end[];
83extern char __rel_dyn_start[];
84extern char __rel_dyn_end[];
85
86#else
87
88
89extern ulong __data_end;
90extern ulong __rel_dyn_start;
91extern ulong __rel_dyn_end;
92extern ulong __bss_end;
93extern ulong _image_binary_end;
94
95extern ulong _TEXT_BASE;
96
97#endif
98
99#endif
100