Skip to content

Commit 3f5e26c

Browse files
Jan Beulichsravnborg
authored andcommitted
adjust init section definitions
Add rodata equivalents for assembly use, and fix the section attributes used by __REFCONST. Signed-off-by: Jan Beulich <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
1 parent bd8f89f commit 3f5e26c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/linux/init.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,25 @@
112112
#define __FINIT .previous
113113

114114
#define __INITDATA .section ".init.data","aw"
115+
#define __INITRODATA .section ".init.rodata","a"
115116
#define __FINITDATA .previous
116117

117118
#define __DEVINIT .section ".devinit.text", "ax"
118119
#define __DEVINITDATA .section ".devinit.data", "aw"
120+
#define __DEVINITRODATA .section ".devinit.rodata", "a"
119121

120122
#define __CPUINIT .section ".cpuinit.text", "ax"
121123
#define __CPUINITDATA .section ".cpuinit.data", "aw"
124+
#define __CPUINITRODATA .section ".cpuinit.rodata", "a"
122125

123126
#define __MEMINIT .section ".meminit.text", "ax"
124127
#define __MEMINITDATA .section ".meminit.data", "aw"
128+
#define __MEMINITRODATA .section ".meminit.rodata", "a"
125129

126130
/* silence warnings when references are OK */
127131
#define __REF .section ".ref.text", "ax"
128132
#define __REFDATA .section ".ref.data", "aw"
129-
#define __REFCONST .section ".ref.rodata", "aw"
133+
#define __REFCONST .section ".ref.rodata", "a"
130134

131135
#ifndef __ASSEMBLY__
132136
/*

0 commit comments

Comments
 (0)