diff options
-rw-r--r-- | arch/um/kernel/gmon_syms.c | 15 | ||||
-rw-r--r-- | arch/x86/um/vdso/Makefile | 4 |
2 files changed, 2 insertions, 17 deletions
diff --git a/arch/um/kernel/gmon_syms.c b/arch/um/kernel/gmon_syms.c index 72eccd2a4113..e9bcf247bcee 100644 --- a/arch/um/kernel/gmon_syms.c +++ b/arch/um/kernel/gmon_syms.c | |||
@@ -7,18 +7,3 @@ | |||
7 | 7 | ||
8 | extern void __bb_init_func(void *) __attribute__((weak)); | 8 | extern void __bb_init_func(void *) __attribute__((weak)); |
9 | EXPORT_SYMBOL(__bb_init_func); | 9 | EXPORT_SYMBOL(__bb_init_func); |
10 | |||
11 | /* | ||
12 | * This is defined (and referred to in profiling stub code) only by some GCC | ||
13 | * versions in libgcov. | ||
14 | * | ||
15 | * Since SuSE backported the fix, we cannot handle it depending on GCC version. | ||
16 | * So, unconditionally export it. But also give it a weak declaration, which | ||
17 | * will be overridden by any other one. | ||
18 | */ | ||
19 | |||
20 | extern void __gcov_init(void *) __attribute__((weak)); | ||
21 | EXPORT_SYMBOL(__gcov_init); | ||
22 | |||
23 | extern void __gcov_merge_add(void *) __attribute__((weak)); | ||
24 | EXPORT_SYMBOL(__gcov_merge_add); | ||
diff --git a/arch/x86/um/vdso/Makefile b/arch/x86/um/vdso/Makefile index 5dffe6d46686..6c803ca49b5d 100644 --- a/arch/x86/um/vdso/Makefile +++ b/arch/x86/um/vdso/Makefile | |||
@@ -46,8 +46,8 @@ $(vobjs): KBUILD_CFLAGS += $(CFL) | |||
46 | # | 46 | # |
47 | # vDSO code runs in userspace and -pg doesn't help with profiling anyway. | 47 | # vDSO code runs in userspace and -pg doesn't help with profiling anyway. |
48 | # | 48 | # |
49 | CFLAGS_REMOVE_vdso-note.o = -pg | 49 | CFLAGS_REMOVE_vdso-note.o = -pg -fprofile-arcs -ftest-coverage |
50 | CFLAGS_REMOVE_um_vdso.o = -pg | 50 | CFLAGS_REMOVE_um_vdso.o = -pg -fprofile-arcs -ftest-coverage |
51 | 51 | ||
52 | targets += vdso-syms.lds | 52 | targets += vdso-syms.lds |
53 | obj-$(VDSO64-y) += vdso-syms.lds | 53 | obj-$(VDSO64-y) += vdso-syms.lds |