Makefile (4f2c0a4acffbec01079c28f839422e64ddeff004) | Makefile (83e913f52aba69149261742aa9ea4ceea7bf182d) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Building vDSO images for x86. 4# 5 6# do not instrument on vdso because KASAN is not compatible with user mode 7KASAN_SANITIZE := n 8 --- 47 unchanged lines hidden (view full) --- 56CFLAGS_REMOVE_vdso-note.o = -pg -fprofile-arcs -ftest-coverage 57CFLAGS_REMOVE_um_vdso.o = -pg -fprofile-arcs -ftest-coverage 58 59# 60# The DSO images are built using a special linker script. 61# 62quiet_cmd_vdso = VDSO $@ 63 cmd_vdso = $(CC) -nostdlib -o $@ \ | 1# SPDX-License-Identifier: GPL-2.0 2# 3# Building vDSO images for x86. 4# 5 6# do not instrument on vdso because KASAN is not compatible with user mode 7KASAN_SANITIZE := n 8 --- 47 unchanged lines hidden (view full) --- 56CFLAGS_REMOVE_vdso-note.o = -pg -fprofile-arcs -ftest-coverage 57CFLAGS_REMOVE_um_vdso.o = -pg -fprofile-arcs -ftest-coverage 58 59# 60# The DSO images are built using a special linker script. 61# 62quiet_cmd_vdso = VDSO $@ 63 cmd_vdso = $(CC) -nostdlib -o $@ \ |
64 $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \ | 64 $(CC_FLAGS_LTO) $(VDSO_LDFLAGS) $(VDSO_LDFLAGS_$(filter %.lds,$(^F))) \ |
65 -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \ 66 sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@' 67 68VDSO_LDFLAGS = -fPIC -shared -Wl,--hash-style=sysv -z noexecstack 69GCOV_PROFILE := n 70 71# 72# Install the unstripped copy of vdso*.so listed in $(vdso-install-y). 73# 74quiet_cmd_vdso_install = INSTALL $@ 75 cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@ 76$(vdso-install-y): %.so: $(obj)/%.so.dbg FORCE 77 @mkdir -p $(MODLIB)/vdso 78 $(call cmd,vdso_install) 79 80PHONY += vdso_install $(vdso-install-y) 81vdso_install: $(vdso-install-y) | 65 -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \ 66 sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@' 67 68VDSO_LDFLAGS = -fPIC -shared -Wl,--hash-style=sysv -z noexecstack 69GCOV_PROFILE := n 70 71# 72# Install the unstripped copy of vdso*.so listed in $(vdso-install-y). 73# 74quiet_cmd_vdso_install = INSTALL $@ 75 cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@ 76$(vdso-install-y): %.so: $(obj)/%.so.dbg FORCE 77 @mkdir -p $(MODLIB)/vdso 78 $(call cmd,vdso_install) 79 80PHONY += vdso_install $(vdso-install-y) 81vdso_install: $(vdso-install-y) |