Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _ASM_GENERIC_SECTIONS_H_ |
2 | #define _ASM_GENERIC_SECTIONS_H_ | |
3 | ||
4 | /* References to section boundaries */ | |
5 | ||
6 | extern char _text[], _stext[], _etext[]; | |
7 | extern char _data[], _sdata[], _edata[]; | |
8 | extern char __bss_start[], __bss_stop[]; | |
9 | extern char __init_begin[], __init_end[]; | |
10 | extern char _sinittext[], _einittext[]; | |
11 | extern char _end[]; | |
3e5d8f97 | 12 | extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[]; |
d0aaff97 | 13 | extern char __kprobes_text_start[], __kprobes_text_end[]; |
ea714547 | 14 | extern char __entry_text_start[], __entry_text_end[]; |
2bc0414e | 15 | extern char __initdata_begin[], __initdata_end[]; |
a581c2a4 | 16 | extern char __start_rodata[], __end_rodata[]; |
1da177e4 | 17 | |
b99b87f7 PO |
18 | /* Start and end of .ctors section - used for constructor calls. */ |
19 | extern char __ctors_start[], __ctors_end[]; | |
20 | ||
deac93df JB |
21 | /* function descriptor handling (if any). Override |
22 | * in asm/sections.h */ | |
23 | #ifndef dereference_function_descriptor | |
24 | #define dereference_function_descriptor(p) (p) | |
25 | #endif | |
26 | ||
00afe029 MF |
27 | /* random extra sections (if any). Override |
28 | * in asm/sections.h */ | |
29 | #ifndef arch_is_kernel_text | |
30 | static inline int arch_is_kernel_text(unsigned long addr) | |
31 | { | |
32 | return 0; | |
33 | } | |
34 | #endif | |
35 | ||
36 | #ifndef arch_is_kernel_data | |
37 | static inline int arch_is_kernel_data(unsigned long addr) | |
38 | { | |
39 | return 0; | |
40 | } | |
41 | #endif | |
42 | ||
1da177e4 | 43 | #endif /* _ASM_GENERIC_SECTIONS_H_ */ |