aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-02-14 11:08:47 +0000
committerBruce Evans <bde@FreeBSD.org>1997-02-14 11:08:47 +0000
commit35997c43cb6730a4a01e8cd64a7fe0acb43ca524 (patch)
tree307209b4bee526478b0cb4ad3f4b14faf1bc1ff6 /lib/libc
parent971ab02ae2963dd6874020ad3ef0516f68b48fe1 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/i386/DEFS.h24
-rw-r--r--lib/libc/i386/SYS.h22
2 files changed, 23 insertions, 23 deletions
diff --git a/lib/libc/i386/DEFS.h b/lib/libc/i386/DEFS.h
index 2ec3019f91cd..e3a70eee0e1f 100644
--- a/lib/libc/i386/DEFS.h
+++ b/lib/libc/i386/DEFS.h
@@ -35,11 +35,31 @@
*
* from: @(#)DEFS.h 5.1 (Berkeley) 4/23/90
*
- * $Id: DEFS.h,v 1.2 1994/08/05 01:17:56 wollman Exp $
+ * $Id: DEFS.h,v 1.3 1996/05/05 07:56:02 peter Exp $
*/
#include <sys/cdefs.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
+
/*
* CNAME and HIDENAME manage the relationship between symbol names in C
* and the equivalent assembly language names. CNAME is given a name as
@@ -57,7 +77,7 @@
/* XXX should use align 4,0x90 for -m486. */
-#define _START_ENTRY .align 2,0x90;
+#define _START_ENTRY .text; .align 2,0x90;
#if 0
/* Data is not used, except perhaps by non-g prof, which we don't support. */
#define _MID_ENTRY .data; .align 2; 8:; .long 0; \
diff --git a/lib/libc/i386/SYS.h b/lib/libc/i386/SYS.h
index 214aa11f4b63..60cfed8bc938 100644
--- a/lib/libc/i386/SYS.h
+++ b/lib/libc/i386/SYS.h
@@ -35,32 +35,12 @@
*
* from: @(#)SYS.h 5.5 (Berkeley) 5/7/91
*
- * $Id: SYS.h,v 1.6 1996/08/22 04:25:00 julian Exp $
+ * $Id: SYS.h,v 1.7 1996/10/31 17:50:45 dyson Exp $
*/
#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