kbuild: introduce __init_refok/__initdata_refok to supress section mismatch warnings
[safe/jmp/linux-2.6] / include / asm-generic / vmlinux.lds.h
index 52e2d69..8307b1b 100644 (file)
@@ -11,7 +11,8 @@
 
 /* .data section */
 #define DATA_DATA                                                      \
-       *(.data)
+       *(.data)                                                        \
+       *(.data.init.refok)
 
 #define RODATA                                                         \
        . = ALIGN(4096);                                                \
  * during second ld run in second ld pass when generating System.map */
 #define TEXT_TEXT                                                      \
                ALIGN_FUNCTION();                                       \
-               *(.text)
+               *(.text)                                                \
+               *(.text.init.refok)
 
 /* sched.text is aling to function alignment to secure we have same
  * address even at second ld pass when generating System.map */