diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-01-20 08:15:03 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-01-28 17:21:17 -0500 |
commit | 01ba2bdc6b639764745ff678caf3fb9e5bcd745a (patch) | |
tree | c6e7f1925687485c331189a2d55ff4f2bb0a09df /include | |
parent | 6c5bd235bfd0b92188915465c7dfb377c1a4d451 (diff) |
all archs: consolidate init and exit sections in vmlinux.lds.h
This patch consolidate all definitions of .init.text, .init.data
and .exit.text, .exit.data section definitions in
the generic vmlinux.lds.h.
This is a preparational patch - alone it does not buy
us much good.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 9f584cc5c5fb..ae0166e83490 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -183,6 +183,13 @@ | |||
183 | *(.kprobes.text) \ | 183 | *(.kprobes.text) \ |
184 | VMLINUX_SYMBOL(__kprobes_text_end) = .; | 184 | VMLINUX_SYMBOL(__kprobes_text_end) = .; |
185 | 185 | ||
186 | /* init and exit section handling */ | ||
187 | #define INIT_TEXT *(.init.text) | ||
188 | #define INIT_DATA *(.init.data) | ||
189 | #define EXIT_TEXT *(.exit.text) | ||
190 | #define EXIT_DATA *(.exit.data) | ||
191 | |||
192 | |||
186 | /* DWARF debug sections. | 193 | /* DWARF debug sections. |
187 | Symbols in the DWARF debugging sections are relative to | 194 | Symbols in the DWARF debugging sections are relative to |
188 | the beginning of the section so we begin them at 0. */ | 195 | the beginning of the section so we begin them at 0. */ |