diff options
| -rw-r--r-- | arch/x86/vdso/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile index fd14be1d1472..9206ac7961a5 100644 --- a/arch/x86/vdso/Makefile +++ b/arch/x86/vdso/Makefile | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | # Building vDSO images for x86. | 2 | # Building vDSO images for x86. |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | KBUILD_CFLAGS += $(DISABLE_LTO) | ||
| 6 | |||
| 5 | VDSO64-$(CONFIG_X86_64) := y | 7 | VDSO64-$(CONFIG_X86_64) := y |
| 6 | VDSOX32-$(CONFIG_X86_X32_ABI) := y | 8 | VDSOX32-$(CONFIG_X86_X32_ABI) := y |
| 7 | VDSO32-$(CONFIG_X86_32) := y | 9 | VDSO32-$(CONFIG_X86_32) := y |
| @@ -35,7 +37,8 @@ export CPPFLAGS_vdso.lds += -P -C | |||
| 35 | 37 | ||
| 36 | VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \ | 38 | VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \ |
| 37 | -Wl,--no-undefined \ | 39 | -Wl,--no-undefined \ |
| 38 | -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 | 40 | -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 \ |
| 41 | $(DISABLE_LTO) | ||
| 39 | 42 | ||
| 40 | $(obj)/vdso.o: $(src)/vdso.S $(obj)/vdso.so | 43 | $(obj)/vdso.o: $(src)/vdso.S $(obj)/vdso.so |
| 41 | 44 | ||
| @@ -127,7 +130,7 @@ vdso32.so-$(VDSO32-y) += sysenter | |||
| 127 | vdso32-images = $(vdso32.so-y:%=vdso32-%.so) | 130 | vdso32-images = $(vdso32.so-y:%=vdso32-%.so) |
| 128 | 131 | ||
| 129 | CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds) | 132 | CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds) |
| 130 | VDSO_LDFLAGS_vdso32.lds = -m32 -Wl,-soname=linux-gate.so.1 | 133 | VDSO_LDFLAGS_vdso32.lds = -m32 -Wl,-m,elf_i386 -Wl,-soname=linux-gate.so.1 |
| 131 | 134 | ||
| 132 | # This makes sure the $(obj) subdirectory exists even though vdso32/ | 135 | # This makes sure the $(obj) subdirectory exists even though vdso32/ |
| 133 | # is not a kbuild sub-make subdirectory. | 136 | # is not a kbuild sub-make subdirectory. |
| @@ -181,7 +184,8 @@ quiet_cmd_vdso = VDSO $@ | |||
| 181 | -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \ | 184 | -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \ |
| 182 | sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@' | 185 | sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@' |
| 183 | 186 | ||
| 184 | VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) | 187 | VDSO_LDFLAGS = -fPIC -shared $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) \ |
| 188 | $(LTO_CFLAGS) | ||
| 185 | GCOV_PROFILE := n | 189 | GCOV_PROFILE := n |
| 186 | 190 | ||
| 187 | # | 191 | # |
