@@ -36,6 +36,7 @@ $(foreach p,$(sysd-rules-targets),$(fore
echo 'weak_alias (__gettimeofday, gettimeofday)'; \
echo 'libc_hidden_weak (gettimeofday)'; \
) | $(compile-syscall) $(foreach p,$(patsubst %gettimeofday,%,$(basename $(@F))),$($(p)CPPFLAGS))
+
$(foreach p,$(sysd-rules-targets),$(objpfx)$(patsubst %,$p,gettimeofday).os): \
$(..)sysdeps/unix/make-syscalls.sh
$(make-target-directory)
@@ -48,8 +49,8 @@ $(foreach p,$(sysd-rules-targets),$(objp
echo ' return _dl_vdso_vsym ("__vdso_gettimeofday", &symver);'; \
echo '}'; \
echo 'asm (".type __gettimeofday, %gnu_indirect_function");'; \
- echo 'asm (".globl __GI___gettimeofday\n"'; \
- echo ' "__GI___gettimeofday = __gettimeofday");'; \
+ echo 'asm (".globl __GI___gettimeofday");'; \
+ echo 'asm ("__GI___gettimeofday = __gettimeofday");'; \
echo 'weak_alias (__gettimeofday, gettimeofday)'; \
echo 'libc_hidden_weak (gettimeofday)'; \
) | $(compile-stdin.c) $(foreach p,$(patsubst %gettimeofday,%,$(basename $(@F))),$($(p)CPPFLAGS))
@@ -123,6 +124,7 @@ $(foreach p,$(sysd-rules-targets),$(fore
echo '#define SYSCALL_ERRVAL 0'; \
echo '#include <syscall-template.S>'; \
) | $(compile-syscall) $(foreach p,$(patsubst %time,%,$(basename $(@F))),$($(p)CPPFLAGS))
+
$(foreach p,$(sysd-rules-targets),$(objpfx)$(patsubst %,$p,time).os): \
$(..)sysdeps/unix/make-syscalls.sh
$(make-target-directory)
@@ -135,8 +137,8 @@ $(foreach p,$(sysd-rules-targets),$(objp
echo ' return _dl_vdso_vsym ("__vdso_time", &symver);'; \
echo '}'; \
echo 'asm (".type time, %gnu_indirect_function");'; \
- echo 'asm (".globl __GI_time\n"'; \
- echo ' "__GI_time = time");'; \
+ echo 'asm (".globl __GI_time");'; \
+ echo 'asm ("__GI_time = time");'; \
) | $(compile-stdin.c) $(foreach p,$(patsubst %time,%,$(basename $(@F))),$($(p)CPPFLAGS))
endif