diff options
author | jb <jb@FreeBSD.org> | 1998-05-05 22:06:16 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-05 22:06:16 +0000 |
commit | 87e29f1d789b217edd1b179bca04e34774f9339f (patch) | |
tree | cc4fb116447c409bf83048157289789bef618eaf /lib/libc/i386 | |
parent | 6efb9333277f98f4da06bfea7f64cc68eed0ca8c (diff) | |
download | FreeBSD-src-87e29f1d789b217edd1b179bca04e34774f9339f.zip FreeBSD-src-87e29f1d789b217edd1b179bca04e34774f9339f.tar.gz |
Build the syscalls (in libc, not libc_r) with weak symbols so that
libpthread can override them as required.
Diffstat (limited to 'lib/libc/i386')
-rw-r--r-- | lib/libc/i386/SYS.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/i386/SYS.h b/lib/libc/i386/SYS.h index 593b2ed..f11fa86 100644 --- a/lib/libc/i386/SYS.h +++ b/lib/libc/i386/SYS.h @@ -35,17 +35,23 @@ * * from: @(#)SYS.h 5.5 (Berkeley) 5/7/91 * - * $Id: SYS.h,v 1.10 1997/02/22 14:58:30 peter Exp $ + * $Id: SYS.h,v 1.11 1997/04/19 17:05:30 bde Exp $ */ #include <sys/syscall.h> #include "DEFS.h" #define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \ - ENTRY(x); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b + ENTRY(__CONCAT(_,x)); \ + .weak CNAME(x); \ + .set CNAME(x),CNAME(__CONCAT(_,x)); \ + lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b #define RSYSCALL(x) SYSCALL(x); ret -#define PSEUDO(x,y) ENTRY(x); lea __CONCAT(SYS_,y), %eax; KERNCALL; ret +#define PSEUDO(x,y) ENTRY(__CONCAT(_,x)); \ + .weak CNAME(x); \ + .set CNAME(x),CNAME(__CONCAT(_,x)); \ + lea __CONCAT(SYS_,y), %eax; KERNCALL; ret /* gas messes up offset -- although we don't currently need it, do for BCS */ #define LCALL(x,y) .byte 0x9a ; .long y; .word x |