adjust init section definitions

Add rodata equivalents for assembly use, and fix the section attributes
used by __REFCONST.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

authored by Jan Beulich and committed by Sam Ravnborg 3f5e26ce bd8f89ff

+5 -1
+5 -1
include/linux/init.h
··· 112 112 #define __FINIT .previous 113 113 114 114 #define __INITDATA .section ".init.data","aw" 115 + #define __INITRODATA .section ".init.rodata","a" 115 116 #define __FINITDATA .previous 116 117 117 118 #define __DEVINIT .section ".devinit.text", "ax" 118 119 #define __DEVINITDATA .section ".devinit.data", "aw" 120 + #define __DEVINITRODATA .section ".devinit.rodata", "a" 119 121 120 122 #define __CPUINIT .section ".cpuinit.text", "ax" 121 123 #define __CPUINITDATA .section ".cpuinit.data", "aw" 124 + #define __CPUINITRODATA .section ".cpuinit.rodata", "a" 122 125 123 126 #define __MEMINIT .section ".meminit.text", "ax" 124 127 #define __MEMINITDATA .section ".meminit.data", "aw" 128 + #define __MEMINITRODATA .section ".meminit.rodata", "a" 125 129 126 130 /* silence warnings when references are OK */ 127 131 #define __REF .section ".ref.text", "ax" 128 132 #define __REFDATA .section ".ref.data", "aw" 129 - #define __REFCONST .section ".ref.rodata", "aw" 133 + #define __REFCONST .section ".ref.rodata", "a" 130 134 131 135 #ifndef __ASSEMBLY__ 132 136 /*