Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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[]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | extern char _end[]; |
Tejun Heo | 3e5d8f9 | 2009-01-13 20:41:35 +0900 | [diff] [blame] | 12 | extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[]; |
Prasanna S Panchamukhi | d0aaff9 | 2005-09-06 15:19:26 -0700 | [diff] [blame] | 13 | extern char __kprobes_text_start[], __kprobes_text_end[]; |
Andi Kleen | 2bc0414 | 2005-11-05 17:25:53 +0100 | [diff] [blame] | 14 | extern char __initdata_begin[], __initdata_end[]; |
Heiko Carstens | a581c2a | 2006-07-01 04:36:30 -0700 | [diff] [blame] | 15 | extern char __start_rodata[], __end_rodata[]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Peter Oberparleiter | b99b87f | 2009-06-17 16:28:03 -0700 | [diff] [blame] | 17 | /* Start and end of .ctors section - used for constructor calls. */ |
| 18 | extern char __ctors_start[], __ctors_end[]; |
| 19 | |
James Bottomley | deac93d | 2008-09-03 20:43:36 -0500 | [diff] [blame] | 20 | /* function descriptor handling (if any). Override |
| 21 | * in asm/sections.h */ |
| 22 | #ifndef dereference_function_descriptor |
| 23 | #define dereference_function_descriptor(p) (p) |
| 24 | #endif |
| 25 | |
Mike Frysinger | 00afe02 | 2009-09-22 16:44:14 -0700 | [diff] [blame] | 26 | /* random extra sections (if any). Override |
| 27 | * in asm/sections.h */ |
| 28 | #ifndef arch_is_kernel_text |
| 29 | static inline int arch_is_kernel_text(unsigned long addr) |
| 30 | { |
| 31 | return 0; |
| 32 | } |
| 33 | #endif |
| 34 | |
| 35 | #ifndef arch_is_kernel_data |
| 36 | static inline int arch_is_kernel_data(unsigned long addr) |
| 37 | { |
| 38 | return 0; |
| 39 | } |
| 40 | #endif |
| 41 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | #endif /* _ASM_GENERIC_SECTIONS_H_ */ |