OpenCloudOS-Kernel/kernel/gcov
Johannes Berg 786b2384bf um: Enable CONFIG_CONSTRUCTORS
We do need to call the constructors for *modules*, and
at least for KASAN in the future, we must call even the
kernel constructors only later when the kernel has been
initialized.

Instead of relying on libc to call them, emit an empty
section for libc and let the kernel's CONSTRUCTORS code
do the rest of the job.

Tested that it indeed doesn't work in modules, and does
work after the fixes in both, with a few functions with
__attribute__((constructor)) in both dynamic and static
builds.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2019-09-15 21:37:13 +02:00
..
Kconfig um: Enable CONFIG_CONSTRUCTORS 2019-09-15 21:37:13 +02:00
Makefile gcov: clang support 2019-05-14 19:52:51 -07:00
base.c gcov: clang support 2019-05-14 19:52:51 -07:00
clang.c gcov: clang support 2019-05-14 19:52:51 -07:00
fs.c gcov: no need to check return value of debugfs_create functions 2019-06-03 16:18:12 +02:00
gcc_3_4.c gcov: clang support 2019-05-14 19:52:51 -07:00
gcc_4_7.c gcov: clang support 2019-05-14 19:52:51 -07:00
gcc_base.c gcov: clang: move common GCC code into gcc_base.c 2019-05-14 19:52:51 -07:00
gcov.h gcov: clang support 2019-05-14 19:52:51 -07:00