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