From: Frantisek Hrbata Date: Mon, 14 Oct 2013 07:38:46 +0000 (+1030) Subject: kernel: add support for init_array constructors X-Git-Tag: v3.13-rc1~83^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3057df732c304622aee77c450761746939a2dc;p=pandora-kernel.git kernel: add support for init_array constructors This adds the .init_array section as yet another section with constructors. This is needed because gcc could add __gcov_init calls to .init_array or .ctors section, depending on gcc (and binutils) version . v2: - reuse mod->ctors for .init_array section for modules, because gcc uses .ctors or .init_array, but not both at the same time v3: - fail to load if that does happen somehow. Signed-off-by: Frantisek Hrbata Signed-off-by: Rusty Russell --- Reading git-diff-tree failed