2005-04-17 05:20:36 +07: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 18:41:35 +07:00
|
|
|
extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
|
2005-09-07 05:19:26 +07:00
|
|
|
extern char __kprobes_text_start[], __kprobes_text_end[];
|
2011-03-08 01:10:39 +07:00
|
|
|
extern char __entry_text_start[], __entry_text_end[];
|
2005-11-05 23:25:53 +07:00
|
|
|
extern char __initdata_begin[], __initdata_end[];
|
2006-07-01 18:36:30 +07:00
|
|
|
extern char __start_rodata[], __end_rodata[];
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-06-18 06:28:03 +07:00
|
|
|
/* Start and end of .ctors section - used for constructor calls. */
|
|
|
|
extern char __ctors_start[], __ctors_end[];
|
|
|
|
|
2008-09-04 08:43:36 +07: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 06:44:14 +07: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 05:20:36 +07:00
|
|
|
#endif /* _ASM_GENERIC_SECTIONS_H_ */
|