aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/sections.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/sections.h')
-rw-r--r--include/asm-generic/sections.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h
index c1a1216e29ce..f1a24b5c3b90 100644
--- a/include/asm-generic/sections.h
+++ b/include/asm-generic/sections.h
@@ -3,6 +3,26 @@
3 3
4/* References to section boundaries */ 4/* References to section boundaries */
5 5
6/*
7 * Usage guidelines:
8 * _text, _data: architecture specific, don't use them in arch-independent code
9 * [_stext, _etext]: contains .text.* sections, may also contain .rodata.*
10 * and/or .init.* sections
11 * [_sdata, _edata]: contains .data.* sections, may also contain .rodata.*
12 * and/or .init.* sections.
13 * [__start_rodata, __end_rodata]: contains .rodata.* sections
14 * [__init_begin, __init_end]: contains .init.* sections, but .init.text.*
15 * may be out of this range on some architectures.
16 * [_sinittext, _einittext]: contains .init.text.* sections
17 * [__bss_start, __bss_stop]: contains BSS sections
18 *
19 * Following global variables are optional and may be unavailable on some
20 * architectures and/or kernel configurations.
21 * _text, _data
22 * __kprobes_text_start, __kprobes_text_end
23 * __entry_text_start, __entry_text_end
24 * __ctors_start, __ctors_end
25 */
6extern char _text[], _stext[], _etext[]; 26extern char _text[], _stext[], _etext[];
7extern char _data[], _sdata[], _edata[]; 27extern char _data[], _sdata[], _edata[];
8extern char __bss_start[], __bss_stop[]; 28extern char __bss_start[], __bss_stop[];
@@ -12,7 +32,6 @@ extern char _end[];
12extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[]; 32extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
13extern char __kprobes_text_start[], __kprobes_text_end[]; 33extern char __kprobes_text_start[], __kprobes_text_end[];
14extern char __entry_text_start[], __entry_text_end[]; 34extern char __entry_text_start[], __entry_text_end[];
15extern char __initdata_begin[], __initdata_end[];
16extern char __start_rodata[], __end_rodata[]; 35extern char __start_rodata[], __end_rodata[];
17 36
18/* Start and end of .ctors section - used for constructor calls. */ 37/* Start and end of .ctors section - used for constructor calls. */