Merge branch 'linux-3.10.y' of git://git.kernel.org/pub/scm/linux/kernel/git/stable...
[firefly-linux-kernel-4.4.55.git] / include / asm-generic / sections.h
1 #ifndef _ASM_GENERIC_SECTIONS_H_
2 #define _ASM_GENERIC_SECTIONS_H_
3
4 /* References to section boundaries */
5
6 #include <linux/compiler.h>
7
8 extern char _text[], _stext[], _etext[];
9 extern char _data[], _sdata[], _edata[];
10 extern char __bss_start[], __bss_stop[];
11 extern char __init_begin[], __init_end[];
12 extern char _sinittext[], _einittext[];
13 extern char _end[];
14 extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
15 extern char __kprobes_text_start[], __kprobes_text_end[];
16 extern char __entry_text_start[], __entry_text_end[];
17 extern char __initdata_begin[], __initdata_end[];
18 extern char __start_rodata[], __end_rodata[];
19
20 /* Start and end of .ctors section - used for constructor calls. */
21 extern char __ctors_start[], __ctors_end[];
22
23 extern __visible const void __nosave_begin, __nosave_end;
24
25 /* function descriptor handling (if any).  Override
26  * in asm/sections.h */
27 #ifndef dereference_function_descriptor
28 #define dereference_function_descriptor(p) (p)
29 #endif
30
31 /* random extra sections (if any).  Override
32  * in asm/sections.h */
33 #ifndef arch_is_kernel_text
34 static inline int arch_is_kernel_text(unsigned long addr)
35 {
36         return 0;
37 }
38 #endif
39
40 #ifndef arch_is_kernel_data
41 static inline int arch_is_kernel_data(unsigned long addr)
42 {
43         return 0;
44 }
45 #endif
46
47 #endif /* _ASM_GENERIC_SECTIONS_H_ */