@@ -5,7 +5,7 @@ $(obj)/vsyscall-syscall.o: \
# Teach kbuild about targets
targets += $(foreach F,trapa,vsyscall-$F.o vsyscall-$F.so)
-targets += vsyscall-note.o vsyscall.lds
+targets += vsyscall-note.o vsyscall.lds vsyscall-dummy.o
# The DSO images are built using a special linker script
quiet_cmd_syscall = SYSCALL $@
@@ -32,7 +32,7 @@ $(obj)/vsyscall-dummy.o: $(src)/vsyscall.lds \
$(call if_changed,syscall)
quiet_cmd_syscall_syms = SYSCALL $@
- cmd_syscall_syms = $(LD) -r -R $(obj)/vsyscall-dummy.o -o $@
+ cmd_syscall_syms = $(LD) -r -o $@ -R $<
-$(obj)/vsyscall-syms.o: $(obj)/vsyscall-dummy.o
+$(obj)/vsyscall-syms.o: $(obj)/vsyscall-dummy.o FORCE
$(call if_changed,syscall_syms)