diff options
author | bde <bde@FreeBSD.org> | 1997-02-14 10:57:07 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-02-14 10:57:07 +0000 |
commit | 10b3d5abf856f043c36cba06071549cb6c93a0ca (patch) | |
tree | 1028f0950d8f99b6d1a52efab13cccf7d834022d /lib/libc/i386/SYS.h | |
parent | 6a98120bf12e969772a97c58983f18fe332010a6 (diff) | |
download | FreeBSD-src-10b3d5abf856f043c36cba06071549cb6c93a0ca.zip FreeBSD-src-10b3d5abf856f043c36cba06071549cb6c93a0ca.tar.gz |
Moved definitions of PIC macros from SYS.h to DEFS.h so that SYS.h
doesn't need to be included in files that have nothing to do with
syscalls.
Added missing `.text' to START_ENTRY so that ENTRY() works when
invoked in the data section.
Diffstat (limited to 'lib/libc/i386/SYS.h')
-rw-r--r-- | lib/libc/i386/SYS.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/libc/i386/SYS.h b/lib/libc/i386/SYS.h index ac65687..a1bcab0 100644 --- a/lib/libc/i386/SYS.h +++ b/lib/libc/i386/SYS.h @@ -41,26 +41,6 @@ #include <sys/syscall.h> #include "DEFS.h" -#ifdef PIC -#define PIC_PROLOGUE \ - pushl %ebx; \ - call 1f; \ -1: \ - popl %ebx; \ - addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx -#define PIC_EPILOGUE \ - popl %ebx -#define PIC_PLT(x) x@PLT -#define PIC_GOT(x) x@GOT(%ebx) -#define PIC_GOTOFF(x) x@GOTOFF(%ebx) -#else -#define PIC_PROLOGUE -#define PIC_EPILOGUE -#define PIC_PLT(x) x -#define PIC_GOT(x) x -#define PIC_GOTOFF(x) x -#endif - #define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); ENTRY(x); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b #define RSYSCALL(x) SYSCALL(x); ret |