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