Re: [PATCH v4] vmlinux.lds: account for destructor sections

2016-07-01 Thread Dmitry Vyukov
On Fri, Jul 1, 2016 at 5:19 PM, Dmitry Vyukov wrote: > If CONFIG_KASAN is enabled and gcc is configured with > --disable-initfini-array and/or gold linker is used, > gcc emits .ctors/.dtors and .text.startup/.text.exit > sections instead of .init_array/.fini_array. > .dtors section is not explicit

[PATCH v4] vmlinux.lds: account for destructor sections

2016-07-01 Thread Dmitry Vyukov
If CONFIG_KASAN is enabled and gcc is configured with --disable-initfini-array and/or gold linker is used, gcc emits .ctors/.dtors and .text.startup/.text.exit sections instead of .init_array/.fini_array. .dtors section is not explicitly accounted in the linker script and messes vvar/percpu layout.