From 1fc9a892e88a895af7c0083c065b31ec9dcf97e2 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Mon, 14 Jan 2002 23:32:53 +0000 Subject: Do not create sys_aliases.c for elf systems; tested at some extent by art@ and drahn@. --- lib/libc_r/sys/Makefile.inc | 20 +++++++------------- lib/libpthread/sys/Makefile.inc | 20 +++++++------------- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/lib/libc_r/sys/Makefile.inc b/lib/libc_r/sys/Makefile.inc index 1348feea96f..27b5ca46ab7 100644 --- a/lib/libc_r/sys/Makefile.inc +++ b/lib/libc_r/sys/Makefile.inc @@ -1,5 +1,5 @@ -# $Id: Makefile.inc,v 1.7 2001/08/15 23:50:34 fgsch Exp $ -# $OpenBSD: Makefile.inc,v 1.7 2001/08/15 23:50:34 fgsch Exp $ +# $Id: Makefile.inc,v 1.8 2002/01/14 23:32:52 fgsch Exp $ +# $OpenBSD: Makefile.inc,v 1.8 2002/01/14 23:32:52 fgsch Exp $ .PATH: ${LIBC_RSRCDIR}/sys ${LIBC_RSRCDIR}/arch/${MACHINE_ARCH} @@ -13,7 +13,7 @@ SRCS+= uthread_machdep_asm.S SRCS+= uthread_machdep.c .endif -.if (${LIB} == "c_r") +.if (${LIB} == "c_r") && (${ELF_TOOLCHAIN} == "no") # # All syscalls are renamed as _thread_sys_{syscall}. @@ -36,15 +36,9 @@ CLEANFILES += _sys_aliases.c _sys_aliases.c: ${LIBC_RSRCDIR}/Makefile ${LIBCSRCDIR}/sys/Makefile.inc echo '#include ' > ${.TARGET} -.if ${MACHINE} == "alpha" - # This kludge will disappear when we shift to -lpthread - echo '#define __indr_reference(old,new)' \ - '__asm__(".globl "#new";"#new": jmp $$31,"#old)' > ${.TARGET} - -.endif for fn in ${ASM:R} ${PSEUDO:R} ""; do \ - case $$fn in ${HIDDEN_SYSCALLS:.o=|}"") : stays hidden ;; \ - *) echo "__indr_reference(_thread_sys_$$fn,$$fn);";; \ - esac; \ - done >> ${.TARGET} + case $$fn in ${HIDDEN_SYSCALLS:.o=|}"") : stays hidden ;; \ + *) echo "__indr_reference(_thread_sys_$$fn,$$fn);";; \ + esac; \ + done >> ${.TARGET} .endif diff --git a/lib/libpthread/sys/Makefile.inc b/lib/libpthread/sys/Makefile.inc index 1348feea96f..27b5ca46ab7 100644 --- a/lib/libpthread/sys/Makefile.inc +++ b/lib/libpthread/sys/Makefile.inc @@ -1,5 +1,5 @@ -# $Id: Makefile.inc,v 1.7 2001/08/15 23:50:34 fgsch Exp $ -# $OpenBSD: Makefile.inc,v 1.7 2001/08/15 23:50:34 fgsch Exp $ +# $Id: Makefile.inc,v 1.8 2002/01/14 23:32:52 fgsch Exp $ +# $OpenBSD: Makefile.inc,v 1.8 2002/01/14 23:32:52 fgsch Exp $ .PATH: ${LIBC_RSRCDIR}/sys ${LIBC_RSRCDIR}/arch/${MACHINE_ARCH} @@ -13,7 +13,7 @@ SRCS+= uthread_machdep_asm.S SRCS+= uthread_machdep.c .endif -.if (${LIB} == "c_r") +.if (${LIB} == "c_r") && (${ELF_TOOLCHAIN} == "no") # # All syscalls are renamed as _thread_sys_{syscall}. @@ -36,15 +36,9 @@ CLEANFILES += _sys_aliases.c _sys_aliases.c: ${LIBC_RSRCDIR}/Makefile ${LIBCSRCDIR}/sys/Makefile.inc echo '#include ' > ${.TARGET} -.if ${MACHINE} == "alpha" - # This kludge will disappear when we shift to -lpthread - echo '#define __indr_reference(old,new)' \ - '__asm__(".globl "#new";"#new": jmp $$31,"#old)' > ${.TARGET} - -.endif for fn in ${ASM:R} ${PSEUDO:R} ""; do \ - case $$fn in ${HIDDEN_SYSCALLS:.o=|}"") : stays hidden ;; \ - *) echo "__indr_reference(_thread_sys_$$fn,$$fn);";; \ - esac; \ - done >> ${.TARGET} + case $$fn in ${HIDDEN_SYSCALLS:.o=|}"") : stays hidden ;; \ + *) echo "__indr_reference(_thread_sys_$$fn,$$fn);";; \ + esac; \ + done >> ${.TARGET} .endif -- cgit v1.2.3