Skip to content

Commit f14df82

Browse files
author
Ingo Molnar
committed
Merge branch 'x86/vdso' into x86/core, to resolve conflict and to prepare for dependent changes
Conflicts: arch/x86/entry/vdso/Makefile We also want to change arch/x86/entry/vdso/Makefile in a followup commit, so merge the trees for this. Signed-off-by: Ingo Molnar <mingo@kernel.org>
2 parents b388e57 + 289d0a4 commit f14df82

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

arch/x86/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ install:
296296

297297
vdso-install-$(CONFIG_X86_64) += arch/x86/entry/vdso/vdso64.so.dbg
298298
vdso-install-$(CONFIG_X86_X32_ABI) += arch/x86/entry/vdso/vdsox32.so.dbg
299-
vdso-install-$(CONFIG_X86_32) += arch/x86/entry/vdso/vdso32.so.dbg
300-
vdso-install-$(CONFIG_IA32_EMULATION) += arch/x86/entry/vdso/vdso32.so.dbg
299+
vdso-install-$(CONFIG_COMPAT_32) += arch/x86/entry/vdso/vdso32.so.dbg
301300

302301
archprepare: checkbin
303302
checkbin:

arch/x86/entry/vdso/Makefile

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ OBJECT_FILES_NON_STANDARD := y
1818
# Prevents link failures: __sanitizer_cov_trace_pc() is not linked in.
1919
KCOV_INSTRUMENT := n
2020

21-
VDSO64-$(CONFIG_X86_64) := y
22-
VDSOX32-$(CONFIG_X86_X32_ABI) := y
23-
VDSO32-$(CONFIG_X86_32) := y
24-
VDSO32-$(CONFIG_IA32_EMULATION) := y
25-
2621
# files to link into the vdso
2722
vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o
2823
vobjs32-y := vdso32/note.o vdso32/system_call.o vdso32/sigreturn.o
@@ -38,31 +33,24 @@ KCSAN_SANITIZE_vma.o := y
3833
OBJECT_FILES_NON_STANDARD_extable.o := n
3934
OBJECT_FILES_NON_STANDARD_vdso-image-32.o := n
4035
OBJECT_FILES_NON_STANDARD_vdso-image-64.o := n
41-
OBJECT_FILES_NON_STANDARD_vdso32-setup.o := n
4236
OBJECT_FILES_NON_STANDARD_vma.o := n
4337

4438
# vDSO images to build
45-
vdso_img-$(VDSO64-y) += 64
46-
vdso_img-$(VDSOX32-y) += x32
47-
vdso_img-$(VDSO32-y) += 32
39+
obj-$(CONFIG_X86_64) += vdso-image-64.o
40+
obj-$(CONFIG_X86_X32_ABI) += vdso-image-x32.o
41+
obj-$(CONFIG_COMPAT_32) += vdso-image-32.o vdso32-setup.o
4842

49-
obj-$(VDSO32-y) += vdso32-setup.o
43+
OBJECT_FILES_NON_STANDARD_vdso32-setup.o := n
5044

51-
vobjs := $(foreach F,$(vobjs-y),$(obj)/$F)
52-
vobjs32 := $(foreach F,$(vobjs32-y),$(obj)/$F)
45+
vobjs := $(addprefix $(obj)/, $(vobjs-y))
46+
vobjs32 := $(addprefix $(obj)/, $(vobjs32-y))
5347

5448
$(obj)/vdso.o: $(obj)/vdso.so
5549

5650
targets += vdso.lds $(vobjs-y)
5751
targets += vdso32/vdso32.lds $(vobjs32-y)
5852

59-
# Build the vDSO image C files and link them in.
60-
vdso_img_objs := $(vdso_img-y:%=vdso-image-%.o)
61-
vdso_img_cfiles := $(vdso_img-y:%=vdso-image-%.c)
62-
vdso_img_sodbg := $(vdso_img-y:%=vdso%.so.dbg)
63-
obj-y += $(vdso_img_objs)
64-
targets += $(vdso_img_cfiles)
65-
targets += $(vdso_img_sodbg) $(vdso_img-y:%=vdso%.so)
53+
targets += $(foreach x, 64 x32 32, vdso-image-$(x).c vdso$(x).so vdso$(x).so.dbg)
6654

6755
CPPFLAGS_vdso.lds += -P -C
6856

@@ -126,7 +114,7 @@ VDSO_LDFLAGS_vdsox32.lds = -m elf32_x86_64 -soname linux-vdso.so.1 \
126114
vobjx32s-y := $(vobjs-y:.o=-x32.o)
127115

128116
# same thing, but in the output directory
129-
vobjx32s := $(foreach F,$(vobjx32s-y),$(obj)/$F)
117+
vobjx32s := $(addprefix $(obj)/, $(vobjx32s-y))
130118

131119
# Convert 64bit object file to x32 for x32 vDSO.
132120
quiet_cmd_x32 = X32 $@
@@ -193,5 +181,3 @@ GCOV_PROFILE := n
193181

194182
quiet_cmd_vdso_and_check = VDSO $@
195183
cmd_vdso_and_check = $(cmd_vdso); $(cmd_vdso_check)
196-
197-
clean-files := vdso32.so vdso32.so.dbg vdso64* vdso-image-*.c vdsox32.so*

0 commit comments

Comments
 (0)