kernel: add support for .init_array.* constructors
[sfrench/cifs-2.6.git] / scripts / module-common.lds
index bec15f908fc6d9191dd776370ece97bb2976976f..73a2c7da0e551dc29d421334061bb9ebad9e8a78 100644 (file)
@@ -16,4 +16,7 @@ SECTIONS {
        __kcrctab_unused        0 : { *(SORT(___kcrctab_unused+*)) }
        __kcrctab_unused_gpl    0 : { *(SORT(___kcrctab_unused_gpl+*)) }
        __kcrctab_gpl_future    0 : { *(SORT(___kcrctab_gpl_future+*)) }
+
+       . = ALIGN(8);
+       .init_array             0 : { *(SORT(.init_array.*)) *(.init_array) }
 }