diff options
author | Jan Beulich <jbeulich@novell.com> | 2009-03-12 06:58:33 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-09 16:37:43 -0400 |
commit | fd6c3a8dc44329d3aff9a578b5120982f63711ee (patch) | |
tree | ba7b7a183d0db95a4ddb33e83a075f963a2028e3 /include/asm-generic | |
parent | 6d9923219c6cd1df360f8823253717623f3ad348 (diff) |
initconst adjustments
- add .init.rodata to INIT_DATA, and group all initconst flavors
together
- move strings generated from __setup_param() into .init.rodata
- add .*init.rodata to modpost's sets of init sections
- make modpost warn about references between meminit and cpuinit
as well as memexit and cpuexit sections (as CPU and memory
hotplug are independently selectable features)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 89853bcd27a6..3edb11499743 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -336,10 +336,11 @@ | |||
336 | #define INIT_DATA \ | 336 | #define INIT_DATA \ |
337 | *(.init.data) \ | 337 | *(.init.data) \ |
338 | DEV_DISCARD(init.data) \ | 338 | DEV_DISCARD(init.data) \ |
339 | DEV_DISCARD(init.rodata) \ | ||
340 | CPU_DISCARD(init.data) \ | 339 | CPU_DISCARD(init.data) \ |
341 | CPU_DISCARD(init.rodata) \ | ||
342 | MEM_DISCARD(init.data) \ | 340 | MEM_DISCARD(init.data) \ |
341 | *(.init.rodata) \ | ||
342 | DEV_DISCARD(init.rodata) \ | ||
343 | CPU_DISCARD(init.rodata) \ | ||
343 | MEM_DISCARD(init.rodata) | 344 | MEM_DISCARD(init.rodata) |
344 | 345 | ||
345 | #define INIT_TEXT \ | 346 | #define INIT_TEXT \ |