2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _ASM_GENERIC_SECTIONS_H_
|
|
|
|
#define _ASM_GENERIC_SECTIONS_H_
|
|
|
|
|
|
|
|
/* References to section boundaries */
|
|
|
|
|
|
|
|
extern char _text[], _stext[], _etext[];
|
|
|
|
extern char _data[], _sdata[], _edata[];
|
|
|
|
extern char __bss_start[], __bss_stop[];
|
|
|
|
extern char __init_begin[], __init_end[];
|
|
|
|
extern char _sinittext[], _einittext[];
|
|
|
|
extern char _end[];
|
2009-01-13 19:41:35 +08:00
|
|
|
extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
|
2005-09-07 06:19:26 +08:00
|
|
|
extern char __kprobes_text_start[], __kprobes_text_end[];
|
2011-03-08 02:10:39 +08:00
|
|
|
extern char __entry_text_start[], __entry_text_end[];
|
2005-11-06 00:25:53 +08:00
|
|
|
extern char __initdata_begin[], __initdata_end[];
|
2006-07-01 19:36:30 +08:00
|
|
|
extern char __start_rodata[], __end_rodata[];
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2009-06-18 07:28:03 +08:00
|
|
|
/* Start and end of .ctors section - used for constructor calls. */
|
|
|
|
extern char __ctors_start[], __ctors_end[];
|
|
|
|
|
2008-09-04 09:43:36 +08:00
|
|
|
/* function descriptor handling (if any). Override
|
|
|
|
* in asm/sections.h */
|
|
|
|
#ifndef dereference_function_descriptor
|
|
|
|
#define dereference_function_descriptor(p) (p)
|
|
|
|
#endif
|
|
|
|
|
2009-09-23 07:44:14 +08:00
|
|
|
/* random extra sections (if any). Override
|
|
|
|
* in asm/sections.h */
|
|
|
|
#ifndef arch_is_kernel_text
|
|
|
|
static inline int arch_is_kernel_text(unsigned long addr)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef arch_is_kernel_data
|
|
|
|
static inline int arch_is_kernel_data(unsigned long addr)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif /* _ASM_GENERIC_SECTIONS_H_ */
|