Makefile (c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2) Makefile (893ab00439a45513cae55781fc8e3b7108ee1cda)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Building vDSO images for x86.
4#
5
6# Prevents link failures: __sanitizer_cov_trace_pc() is not linked in.
7KCOV_INSTRUMENT := n
8

--- 28 unchanged lines hidden (view full) ---

37$(obj)/%.so: $(obj)/%.so.dbg FORCE
38 $(call if_changed,objcopy)
39
40#
41# Don't omit frame pointers for ease of userspace debugging, but do
42# optimize sibling calls.
43#
44CFL := $(PROFILING) -mcmodel=small -fPIC -O2 -fasynchronous-unwind-tables -m64 \
1# SPDX-License-Identifier: GPL-2.0
2#
3# Building vDSO images for x86.
4#
5
6# Prevents link failures: __sanitizer_cov_trace_pc() is not linked in.
7KCOV_INSTRUMENT := n
8

--- 28 unchanged lines hidden (view full) ---

37$(obj)/%.so: $(obj)/%.so.dbg FORCE
38 $(call if_changed,objcopy)
39
40#
41# Don't omit frame pointers for ease of userspace debugging, but do
42# optimize sibling calls.
43#
44CFL := $(PROFILING) -mcmodel=small -fPIC -O2 -fasynchronous-unwind-tables -m64 \
45 $(filter -g%,$(KBUILD_CFLAGS)) $(call cc-option, -fno-stack-protector) \
45 $(filter -g%,$(KBUILD_CFLAGS)) -fno-stack-protector \
46 -fno-omit-frame-pointer -foptimize-sibling-calls
47
48$(vobjs): KBUILD_CFLAGS += $(CFL)
49
50#
51# vDSO code runs in userspace and -pg doesn't help with profiling anyway.
52#
53CFLAGS_REMOVE_vdso-note.o = -pg -fprofile-arcs -ftest-coverage

--- 25 unchanged lines hidden ---
46 -fno-omit-frame-pointer -foptimize-sibling-calls
47
48$(vobjs): KBUILD_CFLAGS += $(CFL)
49
50#
51# vDSO code runs in userspace and -pg doesn't help with profiling anyway.
52#
53CFLAGS_REMOVE_vdso-note.o = -pg -fprofile-arcs -ftest-coverage

--- 25 unchanged lines hidden ---