Skip to content

Commit cd2f45b

Browse files
0x7f454c46KAGA-KOKO
authored andcommitted
x86/vdso/Makefile: Add vobjs32
Treat ia32/i386 objects in array the same as 64-bit vdso objects. Co-developed-by: Andrei Vagin <[email protected]> Signed-off-by: Andrei Vagin <[email protected]> Signed-off-by: Dmitry Safonov <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Andy Lutomirski <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 833e55b commit cd2f45b

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

arch/x86/entry/vdso/Makefile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ VDSO32-$(CONFIG_IA32_EMULATION) := y
2424

2525
# files to link into the vdso
2626
vobjs-y := vdso-note.o vclock_gettime.o vgetcpu.o
27+
vobjs32-y := vdso32/note.o vdso32/system_call.o vdso32/sigreturn.o
28+
vobjs32-y += vdso32/vclock_gettime.o
2729

2830
# files to link into kernel
2931
obj-y += vma.o
@@ -37,10 +39,12 @@ vdso_img-$(VDSO32-y) += 32
3739
obj-$(VDSO32-y) += vdso32-setup.o
3840

3941
vobjs := $(foreach F,$(vobjs-y),$(obj)/$F)
42+
vobjs32 := $(foreach F,$(vobjs32-y),$(obj)/$F)
4043

4144
$(obj)/vdso.o: $(obj)/vdso.so
4245

4346
targets += vdso.lds $(vobjs-y)
47+
targets += vdso32/vdso32.lds $(vobjs32-y)
4448

4549
# Build the vDSO image C files and link them in.
4650
vdso_img_objs := $(vdso_img-y:%=vdso-image-%.o)
@@ -130,10 +134,6 @@ $(obj)/vdsox32.so.dbg: $(obj)/vdsox32.lds $(vobjx32s) FORCE
130134
CPPFLAGS_vdso32/vdso32.lds = $(CPPFLAGS_vdso.lds)
131135
VDSO_LDFLAGS_vdso32.lds = -m elf_i386 -soname linux-gate.so.1
132136

133-
targets += vdso32/vdso32.lds
134-
targets += vdso32/note.o vdso32/system_call.o vdso32/sigreturn.o
135-
targets += vdso32/vclock_gettime.o
136-
137137
KBUILD_AFLAGS_32 := $(filter-out -m64,$(KBUILD_AFLAGS)) -DBUILD_VDSO
138138
$(obj)/vdso32.so.dbg: KBUILD_AFLAGS = $(KBUILD_AFLAGS_32)
139139
$(obj)/vdso32.so.dbg: asflags-$(CONFIG_X86_64) += -m32
@@ -158,12 +158,7 @@ endif
158158

159159
$(obj)/vdso32.so.dbg: KBUILD_CFLAGS = $(KBUILD_CFLAGS_32)
160160

161-
$(obj)/vdso32.so.dbg: FORCE \
162-
$(obj)/vdso32/vdso32.lds \
163-
$(obj)/vdso32/vclock_gettime.o \
164-
$(obj)/vdso32/note.o \
165-
$(obj)/vdso32/system_call.o \
166-
$(obj)/vdso32/sigreturn.o
161+
$(obj)/vdso32.so.dbg: $(obj)/vdso32/vdso32.lds $(vobjs32) FORCE
167162
$(call if_changed,vdso_and_check)
168163

169164
#

0 commit comments

Comments
 (0)