summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys/cerror.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/i386/sys/cerror.S')
-rw-r--r--lib/libc/i386/sys/cerror.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/i386/sys/cerror.S b/lib/libc/i386/sys/cerror.S
index 129cc1b..ad3a033 100644
--- a/lib/libc/i386/sys/cerror.S
+++ b/lib/libc/i386/sys/cerror.S
@@ -48,13 +48,14 @@ __FBSDID("$FreeBSD$");
.globl CNAME(__error)
.type CNAME(__error),@function
HIDENAME(cerror):
- pushl %eax
#ifdef PIC
- /* The caller must execute the PIC prologue before jumping to cerror. */
+ PIC_PROLOGUE
+ pushl %eax
call PIC_PLT(CNAME(__error))
popl %ecx
PIC_EPILOGUE
#else
+ pushl %eax
call CNAME(__error)
popl %ecx
#endif
OpenPOWER on IntegriCloud