[PATCH v9 15/17] kernel: add support for .init_array.* constructors

2015-01-21 Thread Andrey Ryabinin
KASan uses constructors for initializing redzones for global variables. Actually KASan doesn't need priorities for constructors, so they were removed from GCC 5.0, but GCC 4.9.2 still generates constructors with priorities. Signed-off-by: Andrey Ryabinin --- include/asm-generic/vmlinux.lds.h |

[PATCH v9 15/17] kernel: add support for .init_array.* constructors

2015-01-21 Thread Andrey Ryabinin
KASan uses constructors for initializing redzones for global variables. Actually KASan doesn't need priorities for constructors, so they were removed from GCC 5.0, but GCC 4.9.2 still generates constructors with priorities. Signed-off-by: Andrey Ryabinin a.ryabi...@samsung.com ---