2005-04-16 16:20:36 -06: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 04:41:35 -07:00
|
|
|
extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
|
2005-09-06 16:19:26 -06:00
|
|
|
extern char __kprobes_text_start[], __kprobes_text_end[];
|
2005-11-05 09:25:53 -07:00
|
|
|
extern char __initdata_begin[], __initdata_end[];
|
2006-07-01 05:36:30 -06:00
|
|
|
extern char __start_rodata[], __end_rodata[];
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2009-06-17 17:28:03 -06:00
|
|
|
/* Start and end of .ctors section - used for constructor calls. */
|
|
|
|
extern char __ctors_start[], __ctors_end[];
|
|
|
|
|
2008-09-03 19:43:36 -06:00
|
|
|
/* function descriptor handling (if any). Override
|
|
|
|
* in asm/sections.h */
|
|
|
|
#ifndef dereference_function_descriptor
|
|
|
|
#define dereference_function_descriptor(p) (p)
|
|
|
|
#endif
|
|
|
|
|
2009-09-22 17:44:14 -06: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-16 16:20:36 -06:00
|
|
|
#endif /* _ASM_GENERIC_SECTIONS_H_ */
|