sections.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _ASM_GENERIC_SECTIONS_H_
  2. #define _ASM_GENERIC_SECTIONS_H_
  3. /* References to section boundaries */
  4. extern char _text[], _stext[], _etext[];
  5. extern char _data[], _sdata[], _edata[];
  6. extern char __bss_start[], __bss_stop[];
  7. extern char __init_begin[], __init_end[];
  8. extern char _sinittext[], _einittext[];
  9. extern char _end[];
  10. extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
  11. extern char __kprobes_text_start[], __kprobes_text_end[];
  12. extern char __entry_text_start[], __entry_text_end[];
  13. extern char __initdata_begin[], __initdata_end[];
  14. extern char __start_rodata[], __end_rodata[];
  15. /* Start and end of .ctors section - used for constructor calls. */
  16. extern char __ctors_start[], __ctors_end[];
  17. /* function descriptor handling (if any). Override
  18. * in asm/sections.h */
  19. #ifndef dereference_function_descriptor
  20. #define dereference_function_descriptor(p) (p)
  21. #endif
  22. /* random extra sections (if any). Override
  23. * in asm/sections.h */
  24. #ifndef arch_is_kernel_text
  25. static inline int arch_is_kernel_text(unsigned long addr)
  26. {
  27. return 0;
  28. }
  29. #endif
  30. #ifndef arch_is_kernel_data
  31. static inline int arch_is_kernel_data(unsigned long addr)
  32. {
  33. return 0;
  34. }
  35. #endif
  36. #endif /* _ASM_GENERIC_SECTIONS_H_ */