There is no reason for any of it to be modified. Additionally, link
.init.setup beside the other constant .init data.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
[jb: reduce alignments to 8]
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
.init.data : {
*(.init.rodata)
*(.init.rodata.str*)
+
+ . = ALIGN(8);
+ __setup_start = .;
+ *(.init.setup)
+ __setup_end = .;
+
*(.init.data)
*(.init.data.rel)
*(.init.data.rel.*)
__ctors_end = .;
} :text
. = ALIGN(32);
- .init.setup : {
- __setup_start = .;
- *(.init.setup)
- __setup_end = .;
- } :text
.init.proc.info : {
__proc_info_start = .;
*(.init.proc.info)
.init.data : {
*(.init.rodata)
*(.init.rodata.str*)
+
+ . = ALIGN(8);
+ __setup_start = .;
+ *(.init.setup)
+ __setup_end = .;
+
*(.init.data)
*(.init.data.rel)
*(.init.data.rel.*)
__ctors_end = .;
} :text
. = ALIGN(32);
- .init.setup : {
- __setup_start = .;
- *(.init.setup)
- __setup_end = .;
- } :text
.initcall.init : {
__initcall_start = .;
*(.initcallpresmp.init)
extern struct kernel_param __setup_start, __setup_end;
-#define __setup_str static __initdata __attribute__((__aligned__(1))) char
-#define __kparam static __initsetup struct kernel_param
+#define __setup_str static const __initconst __attribute__((__aligned__(1))) char
+#define __kparam static const __initsetup struct kernel_param
#define custom_param(_name, _var) \
__setup_str __setup_str_##_var[] = _name; \