Makefile (a108772d03d8bdb43258218b00bfe43bbe1e8800) | Makefile (bd71558d585ac61cfd799db7f25e78dca404dd7a) |
---|---|
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 --- 51 unchanged lines hidden (view full) --- 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))) \ 65 -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \ 66 sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@' 67 | 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 --- 51 unchanged lines hidden (view full) --- 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))) \ 65 -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \ 66 sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@' 67 |
68VDSO_LDFLAGS = -fPIC -shared -Wl,--hash-style=sysv | 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) | 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) |