diff options
author | Bruce Evans <bde@FreeBSD.org> | 1997-02-14 10:57:07 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1997-02-14 10:57:07 +0000 |
commit | b416939d71823e5214a9086634a438b38b176a67 (patch) | |
tree | 1028f0950d8f99b6d1a52efab13cccf7d834022d /lib/libc/i386/SYS.h | |
parent | 6e768644e121b2f6b21cdeb7a474c7bf6e9a0fe8 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=22715
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 ac65687fdb7b..a1bcab00e8b7 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 |