|
|
25845f |
commit 2366713d874342c94f9362b0d6b2461e1c68dbc3
|
|
|
25845f |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
25845f |
Date: Thu Feb 21 22:21:52 2013 +0000
|
|
|
25845f |
|
|
|
25845f |
Remove remaining bounded-pointers support from i386 .S files.
|
|
|
25845f |
|
|
|
25845f |
Conflicts:
|
|
|
25845f |
sysdeps/i386/bp-asm.h
|
|
|
25845f |
|
|
|
25845f |
Copyright header change; file removed manually.
|
|
|
25845f |
|
|
|
25845f |
diff --git a/sysdeps/i386/add_n.S b/sysdeps/i386/add_n.S
|
|
|
25845f |
index df3ea2362c76247a..55e454f2091c67eb 100644
|
|
|
25845f |
--- a/sysdeps/i386/add_n.S
|
|
|
25845f |
+++ b/sysdeps/i386/add_n.S
|
|
|
25845f |
@@ -19,17 +19,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+8 /* space for 2 saved regs */
|
|
|
25845f |
+#define PARMS 4+8 /* space for 2 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define S2 S1+PTR_SIZE
|
|
|
25845f |
-#define SIZE S2+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define S2 S1+4
|
|
|
25845f |
+#define SIZE S2+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_add_n))
|
|
|
25845f |
+ENTRY (__mpn_add_n)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -110,4 +108,4 @@ L(oop): movl (%esi),%eax
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_add_n))
|
|
|
25845f |
+END (__mpn_add_n)
|
|
|
25845f |
diff --git a/sysdeps/i386/addmul_1.S b/sysdeps/i386/addmul_1.S
|
|
|
25845f |
index 006c08a92de4e303..286781efdb37d304 100644
|
|
|
25845f |
--- a/sysdeps/i386/addmul_1.S
|
|
|
25845f |
+++ b/sysdeps/i386/addmul_1.S
|
|
|
25845f |
@@ -19,13 +19,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S1+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define SIZE S1+4
|
|
|
25845f |
#define S2LIMB SIZE+4
|
|
|
25845f |
|
|
|
25845f |
#define res_ptr edi
|
|
|
25845f |
@@ -34,7 +32,7 @@
|
|
|
25845f |
#define s2_limb ebx
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_addmul_1))
|
|
|
25845f |
+ENTRY (__mpn_addmul_1)
|
|
|
25845f |
|
|
|
25845f |
pushl %res_ptr
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -85,4 +83,4 @@ L(oop):
|
|
|
25845f |
cfi_restore (res_ptr)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_addmul_1))
|
|
|
25845f |
+END (__mpn_addmul_1)
|
|
|
25845f |
diff --git a/sysdeps/i386/bp-asm.h b/sysdeps/i386/bp-asm.h
|
|
|
25845f |
deleted file mode 100644
|
|
|
25845f |
index 75e1a007cb3eca71..0000000000000000
|
|
|
25845f |
--- a/sysdeps/i386/bp-asm.h
|
|
|
25845f |
+++ /dev/null
|
|
|
25845f |
@@ -1,60 +0,0 @@
|
|
|
25845f |
-/* Bounded-pointer definitions for x86 assembler.
|
|
|
25845f |
- Copyright (C) 2000 Free Software Foundation, Inc.
|
|
|
25845f |
- Contributed by Greg McGary <greg@mcgary.org>
|
|
|
25845f |
- This file is part of the GNU C Library. Its master source is NOT part of
|
|
|
25845f |
- the C library, however. The master source lives in the GNU MP Library.
|
|
|
25845f |
-
|
|
|
25845f |
- The GNU C Library is free software; you can redistribute it and/or
|
|
|
25845f |
- modify it under the terms of the GNU Lesser General Public
|
|
|
25845f |
- License as published by the Free Software Foundation; either
|
|
|
25845f |
- version 2.1 of the License, or (at your option) any later version.
|
|
|
25845f |
-
|
|
|
25845f |
- The GNU C Library is distributed in the hope that it will be useful,
|
|
|
25845f |
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
25845f |
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
25845f |
- Lesser General Public License for more details.
|
|
|
25845f |
-
|
|
|
25845f |
- You should have received a copy of the GNU Lesser General Public
|
|
|
25845f |
- License along with the GNU C Library; if not, see
|
|
|
25845f |
- <http://www.gnu.org/licenses/>. */
|
|
|
25845f |
-
|
|
|
25845f |
-#ifndef _bp_asm_h_
|
|
|
25845f |
-# define _bp_asm_h_ 1
|
|
|
25845f |
-
|
|
|
25845f |
-# if __ASSEMBLER__
|
|
|
25845f |
-
|
|
|
25845f |
-# if __BOUNDED_POINTERS__
|
|
|
25845f |
-
|
|
|
25845f |
-/* Bounded pointers occupy three words. */
|
|
|
25845f |
-# define PTR_SIZE 12
|
|
|
25845f |
-/* Bounded pointer return values are passed back through a hidden
|
|
|
25845f |
- argument that points to caller-allocate space. The hidden arg
|
|
|
25845f |
- occupies one word on the stack. */
|
|
|
25845f |
-# define RTN_SIZE 4
|
|
|
25845f |
-/* Although the caller pushes the hidden arg, the callee is
|
|
|
25845f |
- responsible for popping it. */
|
|
|
25845f |
-# define RET_PTR ret $RTN_SIZE
|
|
|
25845f |
-/* Stack space overhead of procedure-call linkage: return address and
|
|
|
25845f |
- frame pointer. */
|
|
|
25845f |
-# define LINKAGE 8
|
|
|
25845f |
-/* Stack offset of return address after calling ENTER. */
|
|
|
25845f |
-# define PCOFF 4
|
|
|
25845f |
-
|
|
|
25845f |
-# else /* !__BOUNDED_POINTERS__ */
|
|
|
25845f |
-
|
|
|
25845f |
-/* Unbounded pointers occupy one word. */
|
|
|
25845f |
-# define PTR_SIZE 4
|
|
|
25845f |
-/* Unbounded pointer return values are passed back in the register %eax. */
|
|
|
25845f |
-# define RTN_SIZE 0
|
|
|
25845f |
-/* Use simple return instruction for unbounded pointer values. */
|
|
|
25845f |
-# define RET_PTR ret
|
|
|
25845f |
-/* Stack space overhead of procedure-call linkage: return address only. */
|
|
|
25845f |
-# define LINKAGE 4
|
|
|
25845f |
-/* Stack offset of return address after calling ENTER. */
|
|
|
25845f |
-# define PCOFF 0
|
|
|
25845f |
-
|
|
|
25845f |
-# endif /* !__BOUNDED_POINTERS__ */
|
|
|
25845f |
-
|
|
|
25845f |
-# endif /* __ASSEMBLER__ */
|
|
|
25845f |
-
|
|
|
25845f |
-#endif /* _bp_asm_h_ */
|
|
|
25845f |
diff --git a/sysdeps/i386/bsd-_setjmp.S b/sysdeps/i386/bsd-_setjmp.S
|
|
|
25845f |
index fe0224145643ea0b..3a57995fa9811274 100644
|
|
|
25845f |
--- a/sysdeps/i386/bsd-_setjmp.S
|
|
|
25845f |
+++ b/sysdeps/i386/bsd-_setjmp.S
|
|
|
25845f |
@@ -22,15 +22,13 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include <jmpbuf-offsets.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
#include <stap-probe.h>
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define JMPBUF PARMS
|
|
|
25845f |
-#define SIGMSK JMPBUF+PTR_SIZE
|
|
|
25845f |
+#define SIGMSK JMPBUF+4
|
|
|
25845f |
|
|
|
25845f |
-ENTRY (BP_SYM (_setjmp))
|
|
|
25845f |
+ENTRY (_setjmp)
|
|
|
25845f |
|
|
|
25845f |
xorl %eax, %eax
|
|
|
25845f |
movl JMPBUF(%esp), %edx
|
|
|
25845f |
@@ -44,7 +42,7 @@ ENTRY (BP_SYM (_setjmp))
|
|
|
25845f |
PTR_MANGLE (%ecx)
|
|
|
25845f |
#endif
|
|
|
25845f |
movl %ecx, (JB_SP*4)(%edx)
|
|
|
25845f |
- movl PCOFF(%esp), %ecx /* Save PC we are returning to now. */
|
|
|
25845f |
+ movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
|
|
25845f |
LIBC_PROBE (setjmp, 3, 4@%edx, -4@$0, 4@%ecx)
|
|
|
25845f |
#ifdef PTR_MANGLE
|
|
|
25845f |
PTR_MANGLE (%ecx)
|
|
|
25845f |
@@ -54,5 +52,5 @@ ENTRY (BP_SYM (_setjmp))
|
|
|
25845f |
|
|
|
25845f |
movl %eax, JB_SIZE(%edx) /* No signal mask set. */
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (_setjmp))
|
|
|
25845f |
+END (_setjmp)
|
|
|
25845f |
libc_hidden_def (_setjmp)
|
|
|
25845f |
diff --git a/sysdeps/i386/bsd-setjmp.S b/sysdeps/i386/bsd-setjmp.S
|
|
|
25845f |
index 25470f3904a8ca73..9f2eb9d99c0807d2 100644
|
|
|
25845f |
--- a/sysdeps/i386/bsd-setjmp.S
|
|
|
25845f |
+++ b/sysdeps/i386/bsd-setjmp.S
|
|
|
25845f |
@@ -22,15 +22,13 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include <jmpbuf-offsets.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
#include <stap-probe.h>
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define JMPBUF PARMS
|
|
|
25845f |
-#define SIGMSK JMPBUF+PTR_SIZE
|
|
|
25845f |
+#define SIGMSK JMPBUF+4
|
|
|
25845f |
|
|
|
25845f |
-ENTRY (BP_SYM (setjmp))
|
|
|
25845f |
+ENTRY (setjmp)
|
|
|
25845f |
/* Note that we have to use a non-exported symbol in the next
|
|
|
25845f |
jump since otherwise gas will emit it as a jump through the
|
|
|
25845f |
PLT which is what we cannot use here. */
|
|
|
25845f |
@@ -46,7 +44,7 @@ ENTRY (BP_SYM (setjmp))
|
|
|
25845f |
PTR_MANGLE (%ecx)
|
|
|
25845f |
#endif
|
|
|
25845f |
movl %ecx, (JB_SP*4)(%eax)
|
|
|
25845f |
- movl PCOFF(%esp), %ecx /* Save PC we are returning to now. */
|
|
|
25845f |
+ movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
|
|
25845f |
LIBC_PROBE (setjmp, 3, 4@%eax, -4@$1, 4@%ecx)
|
|
|
25845f |
#ifdef PTR_MANGLE
|
|
|
25845f |
PTR_MANGLE (%ecx)
|
|
|
25845f |
@@ -59,10 +57,10 @@ ENTRY (BP_SYM (setjmp))
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
pushl 8(%esp)
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
- call BP_SYM (__sigjmp_save)
|
|
|
25845f |
+ call __sigjmp_save
|
|
|
25845f |
popl %ecx
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
popl %edx
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (setjmp))
|
|
|
25845f |
+END (setjmp)
|
|
|
25845f |
diff --git a/sysdeps/i386/fpu/s_frexp.S b/sysdeps/i386/fpu/s_frexp.S
|
|
|
25845f |
index 6c5cd8fdfd9f825b..220eb3cb4bdedc0a 100644
|
|
|
25845f |
--- a/sysdeps/i386/fpu/s_frexp.S
|
|
|
25845f |
+++ b/sysdeps/i386/fpu/s_frexp.S
|
|
|
25845f |
@@ -18,8 +18,6 @@
|
|
|
25845f |
<http://www.gnu.org/licenses/>. */
|
|
|
25845f |
|
|
|
25845f |
#include <machine/asm.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
.section .rodata
|
|
|
25845f |
|
|
|
25845f |
@@ -34,13 +32,13 @@ two54: .byte 0, 0, 0, 0, 0, 0, 0x50, 0x43
|
|
|
25845f |
#define MO(op) op
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define VAL0 PARMS
|
|
|
25845f |
#define VAL1 VAL0+4
|
|
|
25845f |
#define EXPP VAL1+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__frexp))
|
|
|
25845f |
+ENTRY (__frexp)
|
|
|
25845f |
|
|
|
25845f |
movl VAL0(%esp), %ecx
|
|
|
25845f |
movl VAL1(%esp), %eax
|
|
|
25845f |
@@ -81,5 +79,5 @@ ENTRY (BP_SYM (__frexp))
|
|
|
25845f |
movl %ecx, (%eax)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__frexp))
|
|
|
25845f |
-weak_alias (BP_SYM (__frexp), BP_SYM (frexp))
|
|
|
25845f |
+END (__frexp)
|
|
|
25845f |
+weak_alias (__frexp, frexp)
|
|
|
25845f |
diff --git a/sysdeps/i386/fpu/s_frexpf.S b/sysdeps/i386/fpu/s_frexpf.S
|
|
|
25845f |
index 4fe2181873de7302..1515ec3d5d08fe5e 100644
|
|
|
25845f |
--- a/sysdeps/i386/fpu/s_frexpf.S
|
|
|
25845f |
+++ b/sysdeps/i386/fpu/s_frexpf.S
|
|
|
25845f |
@@ -18,8 +18,6 @@
|
|
|
25845f |
<http://www.gnu.org/licenses/>. */
|
|
|
25845f |
|
|
|
25845f |
#include <machine/asm.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
.section .rodata
|
|
|
25845f |
|
|
|
25845f |
@@ -34,12 +32,12 @@ two25: .byte 0, 0, 0, 0x4c
|
|
|
25845f |
#define MO(op) op
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define VAL PARMS
|
|
|
25845f |
#define EXPP VAL+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__frexpf))
|
|
|
25845f |
+ENTRY (__frexpf)
|
|
|
25845f |
|
|
|
25845f |
movl VAL(%esp), %eax
|
|
|
25845f |
xorl %ecx, %ecx
|
|
|
25845f |
@@ -78,5 +76,5 @@ ENTRY (BP_SYM (__frexpf))
|
|
|
25845f |
movl %ecx, (%eax)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__frexpf))
|
|
|
25845f |
-weak_alias (BP_SYM (__frexpf), BP_SYM (frexpf))
|
|
|
25845f |
+END (__frexpf)
|
|
|
25845f |
+weak_alias (__frexpf, frexpf)
|
|
|
25845f |
diff --git a/sysdeps/i386/fpu/s_frexpl.S b/sysdeps/i386/fpu/s_frexpl.S
|
|
|
25845f |
index 54d5010185792bd9..bd8064ac46104921 100644
|
|
|
25845f |
--- a/sysdeps/i386/fpu/s_frexpl.S
|
|
|
25845f |
+++ b/sysdeps/i386/fpu/s_frexpl.S
|
|
|
25845f |
@@ -18,8 +18,6 @@
|
|
|
25845f |
<http://www.gnu.org/licenses/>. */
|
|
|
25845f |
|
|
|
25845f |
#include <machine/asm.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
.section .rodata
|
|
|
25845f |
|
|
|
25845f |
@@ -34,14 +32,14 @@ two64: .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x43
|
|
|
25845f |
#define MO(op) op
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define VAL0 PARMS
|
|
|
25845f |
#define VAL1 VAL0+4
|
|
|
25845f |
#define VAL2 VAL1+4
|
|
|
25845f |
#define EXPP VAL2+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__frexpl))
|
|
|
25845f |
+ENTRY (__frexpl)
|
|
|
25845f |
|
|
|
25845f |
movl VAL0(%esp), %ecx
|
|
|
25845f |
movl VAL2(%esp), %eax
|
|
|
25845f |
@@ -83,5 +81,5 @@ ENTRY (BP_SYM (__frexpl))
|
|
|
25845f |
movl %ecx, (%eax)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__frexpl))
|
|
|
25845f |
-weak_alias (BP_SYM (__frexpl), BP_SYM (frexpl))
|
|
|
25845f |
+END (__frexpl)
|
|
|
25845f |
+weak_alias (__frexpl, frexpl)
|
|
|
25845f |
diff --git a/sysdeps/i386/fpu/s_remquo.S b/sysdeps/i386/fpu/s_remquo.S
|
|
|
25845f |
index e61ff5be7bc826df..341285db30448710 100644
|
|
|
25845f |
--- a/sysdeps/i386/fpu/s_remquo.S
|
|
|
25845f |
+++ b/sysdeps/i386/fpu/s_remquo.S
|
|
|
25845f |
@@ -5,16 +5,14 @@
|
|
|
25845f |
*/
|
|
|
25845f |
|
|
|
25845f |
#include <machine/asm.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define DVDND PARMS
|
|
|
25845f |
#define DVSOR DVDND+8
|
|
|
25845f |
#define QUOP DVSOR+8
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__remquo))
|
|
|
25845f |
+ENTRY (__remquo)
|
|
|
25845f |
|
|
|
25845f |
fldl DVSOR(%esp)
|
|
|
25845f |
fldl DVDND(%esp)
|
|
|
25845f |
@@ -43,5 +41,5 @@ ENTRY (BP_SYM (__remquo))
|
|
|
25845f |
1: movl %eax, (%ecx)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__remquo))
|
|
|
25845f |
-weak_alias (BP_SYM (__remquo), BP_SYM (remquo))
|
|
|
25845f |
+END (__remquo)
|
|
|
25845f |
+weak_alias (__remquo, remquo)
|
|
|
25845f |
diff --git a/sysdeps/i386/fpu/s_remquof.S b/sysdeps/i386/fpu/s_remquof.S
|
|
|
25845f |
index c2b351b859c28e7c..62063f068f59220a 100644
|
|
|
25845f |
--- a/sysdeps/i386/fpu/s_remquof.S
|
|
|
25845f |
+++ b/sysdeps/i386/fpu/s_remquof.S
|
|
|
25845f |
@@ -5,16 +5,14 @@
|
|
|
25845f |
*/
|
|
|
25845f |
|
|
|
25845f |
#include <machine/asm.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define DVDND PARMS
|
|
|
25845f |
#define DVSOR DVDND+4
|
|
|
25845f |
#define QUOP DVSOR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__remquof))
|
|
|
25845f |
+ENTRY (__remquof)
|
|
|
25845f |
|
|
|
25845f |
flds DVSOR(%esp)
|
|
|
25845f |
flds DVDND(%esp)
|
|
|
25845f |
@@ -43,5 +41,5 @@ ENTRY (BP_SYM (__remquof))
|
|
|
25845f |
1: movl %eax, (%ecx)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__remquof))
|
|
|
25845f |
-weak_alias (BP_SYM (__remquof), BP_SYM (remquof))
|
|
|
25845f |
+END (__remquof)
|
|
|
25845f |
+weak_alias (__remquof, remquof)
|
|
|
25845f |
diff --git a/sysdeps/i386/fpu/s_remquol.S b/sysdeps/i386/fpu/s_remquol.S
|
|
|
25845f |
index 2cbe43589609a2b8..f3d84fc7c2c22d73 100644
|
|
|
25845f |
--- a/sysdeps/i386/fpu/s_remquol.S
|
|
|
25845f |
+++ b/sysdeps/i386/fpu/s_remquol.S
|
|
|
25845f |
@@ -5,16 +5,14 @@
|
|
|
25845f |
*/
|
|
|
25845f |
|
|
|
25845f |
#include <machine/asm.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define DVDND PARMS
|
|
|
25845f |
#define DVSOR DVDND+12
|
|
|
25845f |
#define QUOP DVSOR+12
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__remquol))
|
|
|
25845f |
+ENTRY (__remquol)
|
|
|
25845f |
|
|
|
25845f |
fldt DVSOR(%esp)
|
|
|
25845f |
fldt DVDND(%esp)
|
|
|
25845f |
@@ -43,5 +41,5 @@ ENTRY (BP_SYM (__remquol))
|
|
|
25845f |
1: movl %eax, (%ecx)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__remquol))
|
|
|
25845f |
-weak_alias (BP_SYM (__remquol), BP_SYM (remquol))
|
|
|
25845f |
+END (__remquol)
|
|
|
25845f |
+weak_alias (__remquol, remquol)
|
|
|
25845f |
diff --git a/sysdeps/i386/i486/strcat.S b/sysdeps/i386/i486/strcat.S
|
|
|
25845f |
index b3212c8beb948411..d772b108d1c45e2d 100644
|
|
|
25845f |
--- a/sysdeps/i386/i486/strcat.S
|
|
|
25845f |
+++ b/sysdeps/i386/i486/strcat.S
|
|
|
25845f |
@@ -21,16 +21,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
-#define SRC DEST+PTR_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
+#define SRC DEST+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strcat))
|
|
|
25845f |
+ENTRY (strcat)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi /* Save callee-safe register. */
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -257,12 +255,11 @@ L(9): movb %al, (%ecx,%edx) /* store first byte of last word */
|
|
|
25845f |
|
|
|
25845f |
movb %ah, 3(%ecx,%edx) /* store fourth byte of last word */
|
|
|
25845f |
|
|
|
25845f |
-L(8): /* GKM FIXME: check high bounds */
|
|
|
25845f |
- movl DEST(%esp), %eax /* start address of destination is result */
|
|
|
25845f |
+L(8): movl DEST(%esp), %eax /* start address of destination is result */
|
|
|
25845f |
popl %edi /* restore saved register */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (strcat))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (strcat)
|
|
|
25845f |
libc_hidden_builtin_def (strcat)
|
|
|
25845f |
diff --git a/sysdeps/i386/i486/strlen.S b/sysdeps/i386/i486/strlen.S
|
|
|
25845f |
index 76c31098e84a1c93..371e202902603639 100644
|
|
|
25845f |
--- a/sysdeps/i386/i486/strlen.S
|
|
|
25845f |
+++ b/sysdeps/i386/i486/strlen.S
|
|
|
25845f |
@@ -20,14 +20,12 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define STR PARMS
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strlen))
|
|
|
25845f |
+ENTRY (strlen)
|
|
|
25845f |
|
|
|
25845f |
movl STR(%esp), %ecx
|
|
|
25845f |
movl %ecx, %eax /* duplicate it */
|
|
|
25845f |
@@ -130,5 +128,5 @@ L(3): testb %cl, %cl /* is first byte NUL? */
|
|
|
25845f |
L(2): subl STR(%esp), %eax /* compute difference to string start */
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (strlen))
|
|
|
25845f |
+END (strlen)
|
|
|
25845f |
libc_hidden_builtin_def (strlen)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/add_n.S b/sysdeps/i386/i586/add_n.S
|
|
|
25845f |
index a2b502d0d21bf9f5..e3f439412f7d4061 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/add_n.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/add_n.S
|
|
|
25845f |
@@ -19,17 +19,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define S2 S1+PTR_SIZE
|
|
|
25845f |
-#define SIZE S2+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define S2 S1+4
|
|
|
25845f |
+#define SIZE S2+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_add_n))
|
|
|
25845f |
+ENTRY (__mpn_add_n)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -142,4 +140,4 @@ L(end2):
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_add_n))
|
|
|
25845f |
+END (__mpn_add_n)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/addmul_1.S b/sysdeps/i386/i586/addmul_1.S
|
|
|
25845f |
index a9d0b08b5e8072ab..333951f8e5d6d3ec 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/addmul_1.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/addmul_1.S
|
|
|
25845f |
@@ -19,13 +19,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S1+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define SIZE S1+4
|
|
|
25845f |
#define S2LIMB SIZE+4
|
|
|
25845f |
|
|
|
25845f |
#define res_ptr edi
|
|
|
25845f |
@@ -34,7 +32,7 @@
|
|
|
25845f |
#define s2_limb ebx
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_addmul_1))
|
|
|
25845f |
+ENTRY (__mpn_addmul_1)
|
|
|
25845f |
|
|
|
25845f |
pushl %res_ptr
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -93,4 +91,4 @@ L(oop): adcl $0, %ebp
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
#undef size
|
|
|
25845f |
-END (BP_SYM (__mpn_addmul_1))
|
|
|
25845f |
+END (__mpn_addmul_1)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/bzero.S b/sysdeps/i386/i586/bzero.S
|
|
|
25845f |
index 220aa47c3f9c6d5c..84d2f709c16d0b46 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/bzero.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/bzero.S
|
|
|
25845f |
@@ -1,3 +1,3 @@
|
|
|
25845f |
#define memset __bzero
|
|
|
25845f |
#include <sysdeps/i386/i586/memset.S>
|
|
|
25845f |
-weak_alias (BP_SYM (__bzero), BP_SYM (bzero))
|
|
|
25845f |
+weak_alias (__bzero, bzero)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/lshift.S b/sysdeps/i386/i586/lshift.S
|
|
|
25845f |
index 23c5002d69f50f8f..2f25ed1d854e90c2 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/lshift.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/lshift.S
|
|
|
25845f |
@@ -18,17 +18,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S+PTR_SIZE
|
|
|
25845f |
+#define S RES+4
|
|
|
25845f |
+#define SIZE S+4
|
|
|
25845f |
#define CNT SIZE+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_lshift))
|
|
|
25845f |
+ENTRY (__mpn_lshift)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -254,4 +252,4 @@ L(L1): movl %edx,(%edi) /* store last limb */
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_lshift))
|
|
|
25845f |
+END (__mpn_lshift)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/memcpy.S b/sysdeps/i386/i586/memcpy.S
|
|
|
25845f |
index 07f5432d761c453d..baa8d11c44ccfd67 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/memcpy.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/memcpy.S
|
|
|
25845f |
@@ -19,19 +19,17 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
/* BEWARE: `#ifdef memcpy' means that memcpy is redefined as `mempcpy',
|
|
|
25845f |
and the return value is the byte after the last one copied in
|
|
|
25845f |
the destination. */
|
|
|
25845f |
#define MEMPCPY_P (defined memcpy)
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+8 /* space for 2 saved regs */
|
|
|
25845f |
+#define PARMS 4+8 /* space for 2 saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
-#define SRC DEST+PTR_SIZE
|
|
|
25845f |
-#define LEN SRC+PTR_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
+#define SRC DEST+4
|
|
|
25845f |
+#define LEN SRC+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
#if defined PIC && IS_IN (libc)
|
|
|
25845f |
@@ -41,7 +39,7 @@ ENTRY (__memcpy_chk)
|
|
|
25845f |
jb HIDDEN_JUMPTARGET (__chk_fail)
|
|
|
25845f |
END (__memcpy_chk)
|
|
|
25845f |
#endif
|
|
|
25845f |
-ENTRY (BP_SYM (memcpy))
|
|
|
25845f |
+ENTRY (memcpy)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -124,8 +122,8 @@ L(1): rep; movsb
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (memcpy))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (memcpy)
|
|
|
25845f |
#if !MEMPCPY_P
|
|
|
25845f |
libc_hidden_builtin_def (memcpy)
|
|
|
25845f |
#endif
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/mempcpy.S b/sysdeps/i386/i586/mempcpy.S
|
|
|
25845f |
index f492be7ca0722839..afc112d9d7986697 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/mempcpy.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/mempcpy.S
|
|
|
25845f |
@@ -2,6 +2,6 @@
|
|
|
25845f |
#define __memcpy_chk __mempcpy_chk
|
|
|
25845f |
#include <sysdeps/i386/i586/memcpy.S>
|
|
|
25845f |
|
|
|
25845f |
-libc_hidden_def (BP_SYM (__mempcpy))
|
|
|
25845f |
-weak_alias (BP_SYM (__mempcpy), BP_SYM (mempcpy))
|
|
|
25845f |
+libc_hidden_def (__mempcpy)
|
|
|
25845f |
+weak_alias (__mempcpy, mempcpy)
|
|
|
25845f |
libc_hidden_builtin_def (mempcpy)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/memset.S b/sysdeps/i386/i586/memset.S
|
|
|
25845f |
index 8234b99d734b24b0..c1b08e0f7357cc00 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/memset.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/memset.S
|
|
|
25845f |
@@ -20,19 +20,17 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
/* BEWARE: `#ifdef memset' means that memset is redefined as `bzero' */
|
|
|
25845f |
#define BZERO_P (defined memset)
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
#if BZERO_P
|
|
|
25845f |
-# define LEN DEST+PTR_SIZE
|
|
|
25845f |
+# define LEN DEST+4
|
|
|
25845f |
#else
|
|
|
25845f |
-# define CHR DEST+PTR_SIZE
|
|
|
25845f |
+# define CHR DEST+4
|
|
|
25845f |
# define LEN CHR+4
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
@@ -44,7 +42,7 @@ ENTRY (__memset_chk)
|
|
|
25845f |
jb HIDDEN_JUMPTARGET (__chk_fail)
|
|
|
25845f |
END (__memset_chk)
|
|
|
25845f |
#endif
|
|
|
25845f |
-ENTRY (BP_SYM (memset))
|
|
|
25845f |
+ENTRY (memset)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -117,7 +115,7 @@ L(2): shrl $2, %ecx /* convert byte count to longword count */
|
|
|
25845f |
#if BZERO_P
|
|
|
25845f |
ret
|
|
|
25845f |
#else
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
#endif
|
|
|
25845f |
-END (BP_SYM (memset))
|
|
|
25845f |
+END (memset)
|
|
|
25845f |
libc_hidden_builtin_def (memset)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/mul_1.S b/sysdeps/i386/i586/mul_1.S
|
|
|
25845f |
index c694afb42141b16f..f5f119c9a9125ba6 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/mul_1.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/mul_1.S
|
|
|
25845f |
@@ -19,13 +19,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S1+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define SIZE S1+4
|
|
|
25845f |
#define S2LIMB SIZE+4
|
|
|
25845f |
|
|
|
25845f |
#define res_ptr edi
|
|
|
25845f |
@@ -34,7 +32,7 @@
|
|
|
25845f |
#define s2_limb ebx
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_mul_1))
|
|
|
25845f |
+ENTRY (__mpn_mul_1)
|
|
|
25845f |
|
|
|
25845f |
pushl %res_ptr
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -89,4 +87,4 @@ L(oop): adcl $0, %ebp
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
#undef size
|
|
|
25845f |
-END (BP_SYM (__mpn_mul_1))
|
|
|
25845f |
+END (__mpn_mul_1)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/rshift.S b/sysdeps/i386/i586/rshift.S
|
|
|
25845f |
index ce3710391193dbac..2625cf9e04122d45 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/rshift.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/rshift.S
|
|
|
25845f |
@@ -18,17 +18,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S+PTR_SIZE
|
|
|
25845f |
+#define S RES+4
|
|
|
25845f |
+#define SIZE S+4
|
|
|
25845f |
#define CNT SIZE+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_rshift))
|
|
|
25845f |
+ENTRY (__mpn_rshift)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -254,4 +252,4 @@ L(L1): movl %edx,(%edi) /* store last limb */
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_rshift))
|
|
|
25845f |
+END (__mpn_rshift)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/strchr.S b/sysdeps/i386/i586/strchr.S
|
|
|
25845f |
index 35259fb085840180..3821331851bf843d 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/strchr.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/strchr.S
|
|
|
25845f |
@@ -20,8 +20,6 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
/* This version is especially optimized for the i586 (and following?)
|
|
|
25845f |
processors. This is mainly done by using the two pipelines. The
|
|
|
25845f |
@@ -36,13 +34,13 @@
|
|
|
25845f |
/* The magic value which is used throughout in the whole code. */
|
|
|
25845f |
#define magic 0xfefefeff
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define CHR STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define CHR STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strchr))
|
|
|
25845f |
+ENTRY (strchr)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi /* Save callee-safe registers. */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
@@ -301,7 +299,7 @@ L(out): popl %ebp /* restore saved registers */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
|
|
|
25845f |
cfi_adjust_cfa_offset (16)
|
|
|
25845f |
cfi_rel_offset (edi, 12)
|
|
|
25845f |
@@ -343,8 +341,8 @@ L(4): subl $4, %eax /* adjust pointer */
|
|
|
25845f |
|
|
|
25845f |
L(3): xorl %eax, %eax
|
|
|
25845f |
jmp L(out)
|
|
|
25845f |
-END (BP_SYM (strchr))
|
|
|
25845f |
+END (strchr)
|
|
|
25845f |
|
|
|
25845f |
#undef index
|
|
|
25845f |
-weak_alias (BP_SYM (strchr), BP_SYM (index))
|
|
|
25845f |
+weak_alias (strchr, index)
|
|
|
25845f |
libc_hidden_builtin_def (strchr)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/strcpy.S b/sysdeps/i386/i586/strcpy.S
|
|
|
25845f |
index edd21f135d46a732..56659182a784bb44 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/strcpy.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/strcpy.S
|
|
|
25845f |
@@ -19,13 +19,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+12 /* space for 3 saved regs */
|
|
|
25845f |
+#define PARMS 4+12 /* space for 3 saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
-#define SRC DEST+PTR_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
+#define SRC DEST+4
|
|
|
25845f |
|
|
|
25845f |
#ifndef USE_AS_STPCPY
|
|
|
25845f |
# define STRCPY strcpy
|
|
|
25845f |
@@ -34,7 +32,7 @@
|
|
|
25845f |
#define magic 0xfefefeff
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (STRCPY))
|
|
|
25845f |
+ENTRY (STRCPY)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -149,7 +147,6 @@ L(4): movb %dl, (%edi)
|
|
|
25845f |
L(end): movb %ah, (%edi)
|
|
|
25845f |
|
|
|
25845f |
L(end2):
|
|
|
25845f |
- /* GKM FIXME: check high bounds */
|
|
|
25845f |
#ifdef USE_AS_STPCPY
|
|
|
25845f |
movl %edi, %eax
|
|
|
25845f |
#else
|
|
|
25845f |
@@ -165,8 +162,8 @@ L(end2):
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (STRCPY))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (STRCPY)
|
|
|
25845f |
#ifndef USE_AS_STPCPY
|
|
|
25845f |
libc_hidden_builtin_def (strcpy)
|
|
|
25845f |
#endif
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/strlen.S b/sysdeps/i386/i586/strlen.S
|
|
|
25845f |
index 323cb950790174e6..6b5fee3acf360bc4 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/strlen.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/strlen.S
|
|
|
25845f |
@@ -20,8 +20,6 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
/* This version is especially optimized for the i586 (and following?)
|
|
|
25845f |
processors. This is mainly done by using the two pipelines. The
|
|
|
25845f |
@@ -36,11 +34,11 @@
|
|
|
25845f |
/* The magic value which is used throughout in the whole code. */
|
|
|
25845f |
#define magic 0xfefefeff
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define STR PARMS
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strlen))
|
|
|
25845f |
+ENTRY (strlen)
|
|
|
25845f |
|
|
|
25845f |
movl STR(%esp), %eax
|
|
|
25845f |
movl $3, %edx /* load mask (= 3) */
|
|
|
25845f |
@@ -180,5 +178,5 @@ L(2): subl STR(%esp), %eax /* now compute the length as difference
|
|
|
25845f |
between start and terminating NUL
|
|
|
25845f |
character */
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (strlen))
|
|
|
25845f |
+END (strlen)
|
|
|
25845f |
libc_hidden_builtin_def (strlen)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/sub_n.S b/sysdeps/i386/i586/sub_n.S
|
|
|
25845f |
index 07bddca9a8ce7fe8..68442a688ac796a3 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/sub_n.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/sub_n.S
|
|
|
25845f |
@@ -19,17 +19,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define S2 S1+PTR_SIZE
|
|
|
25845f |
-#define SIZE S2+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define S2 S1+4
|
|
|
25845f |
+#define SIZE S2+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_sub_n))
|
|
|
25845f |
+ENTRY (__mpn_sub_n)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -142,4 +140,4 @@ L(end2):
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_sub_n))
|
|
|
25845f |
+END (__mpn_sub_n)
|
|
|
25845f |
diff --git a/sysdeps/i386/i586/submul_1.S b/sysdeps/i386/i586/submul_1.S
|
|
|
25845f |
index a028d7089798ceb7..b553d25804bc5091 100644
|
|
|
25845f |
--- a/sysdeps/i386/i586/submul_1.S
|
|
|
25845f |
+++ b/sysdeps/i386/i586/submul_1.S
|
|
|
25845f |
@@ -19,13 +19,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S1+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define SIZE S1+4
|
|
|
25845f |
#define S2LIMB SIZE+4
|
|
|
25845f |
|
|
|
25845f |
#define res_ptr edi
|
|
|
25845f |
@@ -34,7 +32,7 @@
|
|
|
25845f |
#define s2_limb ebx
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_submul_1))
|
|
|
25845f |
+ENTRY (__mpn_submul_1)
|
|
|
25845f |
|
|
|
25845f |
pushl %res_ptr
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -93,4 +91,4 @@ L(oop): adcl $0, %ebp
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
#undef size
|
|
|
25845f |
-END (BP_SYM (__mpn_submul_1))
|
|
|
25845f |
+END (__mpn_submul_1)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/add_n.S b/sysdeps/i386/i686/add_n.S
|
|
|
25845f |
index f645a21c1cad52ab..2ccf0215549cda2b 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/add_n.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/add_n.S
|
|
|
25845f |
@@ -19,21 +19,19 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+8 /* space for 2 saved regs */
|
|
|
25845f |
+#define PARMS 4+8 /* space for 2 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define S2 S1+PTR_SIZE
|
|
|
25845f |
-#define SIZE S2+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define S2 S1+4
|
|
|
25845f |
+#define SIZE S2+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
#ifdef PIC
|
|
|
25845f |
L(1): addl (%esp), %eax
|
|
|
25845f |
ret
|
|
|
25845f |
#endif
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_add_n))
|
|
|
25845f |
+ENTRY (__mpn_add_n)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -109,4 +107,4 @@ L(oop): movl (%esi),%eax
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_add_n))
|
|
|
25845f |
+END (__mpn_add_n)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/bzero.S b/sysdeps/i386/i686/bzero.S
|
|
|
25845f |
index c1e4a6d50e5e8d99..34b0faa91b964303 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/bzero.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/bzero.S
|
|
|
25845f |
@@ -1,3 +1,3 @@
|
|
|
25845f |
#define memset __bzero
|
|
|
25845f |
#include <sysdeps/i386/i686/memset.S>
|
|
|
25845f |
-weak_alias (BP_SYM (__bzero), BP_SYM (bzero))
|
|
|
25845f |
+weak_alias (__bzero, bzero)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/memcmp.S b/sysdeps/i386/i686/memcmp.S
|
|
|
25845f |
index f45a22400242cb02..77cfb42b821fee78 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/memcmp.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/memcmp.S
|
|
|
25845f |
@@ -18,13 +18,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* Preserve EBX. */
|
|
|
25845f |
+#define PARMS 4+4 /* Preserve EBX. */
|
|
|
25845f |
#define BLK1 PARMS
|
|
|
25845f |
-#define BLK2 BLK1+PTR_SIZE
|
|
|
25845f |
-#define LEN BLK2+PTR_SIZE
|
|
|
25845f |
+#define BLK2 BLK1+4
|
|
|
25845f |
+#define LEN BLK2+4
|
|
|
25845f |
#define ENTRANCE pushl %ebx; cfi_adjust_cfa_offset (4); \
|
|
|
25845f |
cfi_rel_offset (ebx, 0)
|
|
|
25845f |
#define RETURN popl %ebx; cfi_adjust_cfa_offset (-4); \
|
|
|
25845f |
@@ -44,7 +42,7 @@
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
ALIGN (4)
|
|
|
25845f |
-ENTRY (BP_SYM (memcmp))
|
|
|
25845f |
+ENTRY (memcmp)
|
|
|
25845f |
ENTRANCE
|
|
|
25845f |
|
|
|
25845f |
movl BLK1(%esp), %eax
|
|
|
25845f |
@@ -366,7 +364,7 @@ L(set):
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (esi)
|
|
|
25845f |
RETURN
|
|
|
25845f |
-END (BP_SYM (memcmp))
|
|
|
25845f |
+END (memcmp)
|
|
|
25845f |
|
|
|
25845f |
.section .rodata
|
|
|
25845f |
ALIGN (2)
|
|
|
25845f |
@@ -406,5 +404,5 @@ L(table_32bytes) :
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
#undef bcmp
|
|
|
25845f |
-weak_alias (BP_SYM (memcmp), BP_SYM (bcmp))
|
|
|
25845f |
-libc_hidden_builtin_def (BP_SYM (memcmp))
|
|
|
25845f |
+weak_alias (memcmp, bcmp)
|
|
|
25845f |
+libc_hidden_builtin_def (memcmp)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/memcpy.S b/sysdeps/i386/i686/memcpy.S
|
|
|
25845f |
index 68f7e40031b1b4db..fae614e682c50995 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/memcpy.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/memcpy.S
|
|
|
25845f |
@@ -20,14 +20,12 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
-#define SRC DEST+PTR_SIZE
|
|
|
25845f |
-#define LEN SRC+PTR_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
+#define SRC DEST+4
|
|
|
25845f |
+#define LEN SRC+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
#if defined PIC && IS_IN (libc)
|
|
|
25845f |
@@ -37,7 +35,7 @@ ENTRY_CHK (__memcpy_chk)
|
|
|
25845f |
jb HIDDEN_JUMPTARGET (__chk_fail)
|
|
|
25845f |
END_CHK (__memcpy_chk)
|
|
|
25845f |
#endif
|
|
|
25845f |
-ENTRY (BP_SYM (memcpy))
|
|
|
25845f |
+ENTRY (memcpy)
|
|
|
25845f |
|
|
|
25845f |
movl %edi, %eax
|
|
|
25845f |
movl DEST(%esp), %edi
|
|
|
25845f |
@@ -81,7 +79,7 @@ ENTRY (BP_SYM (memcpy))
|
|
|
25845f |
movl %edx, %esi
|
|
|
25845f |
movl DEST(%esp), %eax
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
|
|
|
25845f |
/* When we come here the pointers do not have the same
|
|
|
25845f |
alignment or the length is too short. No need to optimize for
|
|
|
25845f |
@@ -96,5 +94,5 @@ ENTRY (BP_SYM (memcpy))
|
|
|
25845f |
2: rep
|
|
|
25845f |
movsl
|
|
|
25845f |
jmp .Lend
|
|
|
25845f |
-END (BP_SYM (memcpy))
|
|
|
25845f |
+END (memcpy)
|
|
|
25845f |
libc_hidden_builtin_def (memcpy)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/memmove.S b/sysdeps/i386/i686/memmove.S
|
|
|
25845f |
index 683f45fc44fc4f4f..50cf1cf222b922e3 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/memmove.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/memmove.S
|
|
|
25845f |
@@ -20,22 +20,20 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* one spilled register */
|
|
|
25845f |
+#define PARMS 4+4 /* one spilled register */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
|
|
|
25845f |
#ifdef USE_AS_BCOPY
|
|
|
25845f |
-# define SRC RTN+RTN_SIZE
|
|
|
25845f |
-# define DEST SRC+PTR_SIZE
|
|
|
25845f |
-# define LEN DEST+PTR_SIZE
|
|
|
25845f |
+# define SRC RTN
|
|
|
25845f |
+# define DEST SRC+4
|
|
|
25845f |
+# define LEN DEST+4
|
|
|
25845f |
#else
|
|
|
25845f |
-# define DEST RTN+RTN_SIZE
|
|
|
25845f |
-# define SRC DEST+PTR_SIZE
|
|
|
25845f |
-# define LEN SRC+PTR_SIZE
|
|
|
25845f |
+# define DEST RTN
|
|
|
25845f |
+# define SRC DEST+4
|
|
|
25845f |
+# define LEN SRC+4
|
|
|
25845f |
|
|
|
25845f |
# if defined PIC && IS_IN (libc)
|
|
|
25845f |
ENTRY_CHK (__memmove_chk)
|
|
|
25845f |
@@ -46,7 +44,7 @@ END_CHK (__memmove_chk)
|
|
|
25845f |
# endif
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
-ENTRY (BP_SYM (memmove))
|
|
|
25845f |
+ENTRY (memmove)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -82,7 +80,7 @@ ENTRY (BP_SYM (memmove))
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
cfi_rel_offset (edi, 0)
|
|
|
25845f |
@@ -115,8 +113,8 @@ ENTRY (BP_SYM (memmove))
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (memmove))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (memmove)
|
|
|
25845f |
#ifndef USE_AS_BCOPY
|
|
|
25845f |
libc_hidden_builtin_def (memmove)
|
|
|
25845f |
#endif
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/mempcpy.S b/sysdeps/i386/i686/mempcpy.S
|
|
|
25845f |
index facff870e3f8f9de..c4b9d9dce361d0f0 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/mempcpy.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/mempcpy.S
|
|
|
25845f |
@@ -20,14 +20,12 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
-#define SRC DEST+PTR_SIZE
|
|
|
25845f |
-#define LEN SRC+PTR_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
+#define SRC DEST+4
|
|
|
25845f |
+#define LEN SRC+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
#if defined PIC && IS_IN (libc)
|
|
|
25845f |
@@ -37,7 +35,7 @@ ENTRY_CHK (__mempcpy_chk)
|
|
|
25845f |
jb HIDDEN_JUMPTARGET (__chk_fail)
|
|
|
25845f |
END_CHK (__mempcpy_chk)
|
|
|
25845f |
#endif
|
|
|
25845f |
-ENTRY (BP_SYM (__mempcpy))
|
|
|
25845f |
+ENTRY (__mempcpy)
|
|
|
25845f |
|
|
|
25845f |
movl LEN(%esp), %ecx
|
|
|
25845f |
movl %edi, %eax
|
|
|
25845f |
@@ -60,8 +58,8 @@ ENTRY (BP_SYM (__mempcpy))
|
|
|
25845f |
movl %edx, %esi
|
|
|
25845f |
cfi_restore (esi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (__mempcpy))
|
|
|
25845f |
-libc_hidden_def (BP_SYM (__mempcpy))
|
|
|
25845f |
-weak_alias (BP_SYM (__mempcpy), BP_SYM (mempcpy))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (__mempcpy)
|
|
|
25845f |
+libc_hidden_def (__mempcpy)
|
|
|
25845f |
+weak_alias (__mempcpy, mempcpy)
|
|
|
25845f |
libc_hidden_builtin_def (mempcpy)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/memset.S b/sysdeps/i386/i686/memset.S
|
|
|
25845f |
index 7db25497117b6258..b9cb50d1bbf12f3d 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/memset.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/memset.S
|
|
|
25845f |
@@ -20,20 +20,18 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
/* BEWARE: `#ifdef memset' means that memset is redefined as `bzero' */
|
|
|
25845f |
#define BZERO_P (defined memset)
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#if BZERO_P
|
|
|
25845f |
# define DEST PARMS
|
|
|
25845f |
-# define LEN DEST+PTR_SIZE
|
|
|
25845f |
+# define LEN DEST+4
|
|
|
25845f |
#else
|
|
|
25845f |
# define RTN PARMS
|
|
|
25845f |
-# define DEST RTN+RTN_SIZE
|
|
|
25845f |
-# define CHR DEST+PTR_SIZE
|
|
|
25845f |
+# define DEST RTN
|
|
|
25845f |
+# define CHR DEST+4
|
|
|
25845f |
# define LEN CHR+4
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
@@ -45,7 +43,7 @@ ENTRY_CHK (__memset_chk)
|
|
|
25845f |
jb HIDDEN_JUMPTARGET (__chk_fail)
|
|
|
25845f |
END_CHK (__memset_chk)
|
|
|
25845f |
#endif
|
|
|
25845f |
-ENTRY (BP_SYM (memset))
|
|
|
25845f |
+ENTRY (memset)
|
|
|
25845f |
|
|
|
25845f |
cld
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
@@ -96,9 +94,9 @@ ENTRY (BP_SYM (memset))
|
|
|
25845f |
#if BZERO_P
|
|
|
25845f |
ret
|
|
|
25845f |
#else
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
#endif
|
|
|
25845f |
-END (BP_SYM (memset))
|
|
|
25845f |
+END (memset)
|
|
|
25845f |
libc_hidden_builtin_def (memset)
|
|
|
25845f |
|
|
|
25845f |
#if defined PIC && IS_IN (libc) && !BZERO_P
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/strcmp.S b/sysdeps/i386/i686/strcmp.S
|
|
|
25845f |
index 0423aac297358c77..70c356e721c6c8b8 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/strcmp.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/strcmp.S
|
|
|
25845f |
@@ -19,15 +19,13 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define STR1 PARMS
|
|
|
25845f |
-#define STR2 STR1+PTR_SIZE
|
|
|
25845f |
+#define STR2 STR1+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strcmp))
|
|
|
25845f |
+ENTRY (strcmp)
|
|
|
25845f |
|
|
|
25845f |
movl STR1(%esp), %ecx
|
|
|
25845f |
movl STR2(%esp), %edx
|
|
|
25845f |
@@ -50,5 +48,5 @@ L(neq): movl $1, %eax
|
|
|
25845f |
cmovbl %ecx, %eax
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (strcmp))
|
|
|
25845f |
+END (strcmp)
|
|
|
25845f |
libc_hidden_builtin_def (strcmp)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/strtok.S b/sysdeps/i386/i686/strtok.S
|
|
|
25845f |
index 372352e32a84f81d..cc5df557113b44c1 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/strtok.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/strtok.S
|
|
|
25845f |
@@ -20,8 +20,6 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
/* This file can be used for three variants of the strtok function:
|
|
|
25845f |
|
|
|
25845f |
@@ -58,15 +56,15 @@ save_ptr:
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
#if !defined USE_AS_STRTOK_R && defined PIC
|
|
|
25845f |
-# define PARMS LINKAGE+256+4 /* space for table and saved PIC register */
|
|
|
25845f |
+# define PARMS 4+256+4 /* space for table and saved PIC register */
|
|
|
25845f |
#else
|
|
|
25845f |
-# define PARMS LINKAGE+256 /* space for table */
|
|
|
25845f |
+# define PARMS 4+256 /* space for table */
|
|
|
25845f |
#endif
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define DELIM STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define DELIM STR+4
|
|
|
25845f |
#ifdef USE_AS_STRTOK_R
|
|
|
25845f |
-# define SAVE DELIM+PTR_SIZE
|
|
|
25845f |
+# define SAVE DELIM+4
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
@@ -76,7 +74,7 @@ save_ptr:
|
|
|
25845f |
ret
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
-ENTRY (BP_SYM (FUNCTION))
|
|
|
25845f |
+ENTRY (FUNCTION)
|
|
|
25845f |
|
|
|
25845f |
#if !defined USE_AS_STRTOK_R && defined PIC
|
|
|
25845f |
pushl %ebx /* Save PIC register. */
|
|
|
25845f |
@@ -233,7 +231,7 @@ L(epilogue):
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (ebx)
|
|
|
25845f |
#endif
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
|
|
|
25845f |
L(returnNULL):
|
|
|
25845f |
xorl %eax, %eax
|
|
|
25845f |
@@ -243,4 +241,4 @@ L(returnNULL):
|
|
|
25845f |
movl %edx, SAVE_PTR
|
|
|
25845f |
jmp L(epilogue)
|
|
|
25845f |
|
|
|
25845f |
-END (BP_SYM (FUNCTION))
|
|
|
25845f |
+END (FUNCTION)
|
|
|
25845f |
diff --git a/sysdeps/i386/i686/strtok_r.S b/sysdeps/i386/i686/strtok_r.S
|
|
|
25845f |
index 1c24ca85f5f084d7..353e076ba7bfe5d7 100644
|
|
|
25845f |
--- a/sysdeps/i386/i686/strtok_r.S
|
|
|
25845f |
+++ b/sysdeps/i386/i686/strtok_r.S
|
|
|
25845f |
@@ -1,5 +1,5 @@
|
|
|
25845f |
#define FUNCTION __strtok_r
|
|
|
25845f |
#define USE_AS_STRTOK_R 1
|
|
|
25845f |
#include <sysdeps/i386/i686/strtok.S>
|
|
|
25845f |
-weak_alias (BP_SYM (__strtok_r), BP_SYM (strtok_r))
|
|
|
25845f |
-strong_alias (BP_SYM (__strtok_r), BP_SYM (__GI___strtok_r))
|
|
|
25845f |
+weak_alias (__strtok_r, strtok_r)
|
|
|
25845f |
+strong_alias (__strtok_r, __GI___strtok_r)
|
|
|
25845f |
diff --git a/sysdeps/i386/lshift.S b/sysdeps/i386/lshift.S
|
|
|
25845f |
index b40d4ddd3a0e7fd7..7f70a85d6836b816 100644
|
|
|
25845f |
--- a/sysdeps/i386/lshift.S
|
|
|
25845f |
+++ b/sysdeps/i386/lshift.S
|
|
|
25845f |
@@ -18,17 +18,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+12 /* space for 3 saved regs */
|
|
|
25845f |
+#define PARMS 4+12 /* space for 3 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S+PTR_SIZE
|
|
|
25845f |
+#define S RES+4
|
|
|
25845f |
+#define SIZE S+4
|
|
|
25845f |
#define CNT SIZE+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_lshift))
|
|
|
25845f |
+ENTRY (__mpn_lshift)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -102,4 +100,4 @@ L(end): shll %cl,%ebx /* compute least significant limb */
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_lshift))
|
|
|
25845f |
+END (__mpn_lshift)
|
|
|
25845f |
diff --git a/sysdeps/i386/memchr.S b/sysdeps/i386/memchr.S
|
|
|
25845f |
index 88651e527650b26b..c8ba5f0e9eb76d09 100644
|
|
|
25845f |
--- a/sysdeps/i386/memchr.S
|
|
|
25845f |
+++ b/sysdeps/i386/memchr.S
|
|
|
25845f |
@@ -28,17 +28,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+8 /* space for 2 saved regs */
|
|
|
25845f |
+#define PARMS 4+8 /* space for 2 saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define CHR STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define CHR STR+4
|
|
|
25845f |
#define LEN CHR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__memchr))
|
|
|
25845f |
+ENTRY (__memchr)
|
|
|
25845f |
|
|
|
25845f |
/* Save callee-safe registers used in this function. */
|
|
|
25845f |
pushl %esi
|
|
|
25845f |
@@ -317,8 +315,8 @@ L(9): popl %edi /* pop saved registers */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (esi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (__memchr))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (__memchr)
|
|
|
25845f |
|
|
|
25845f |
-weak_alias (BP_SYM (__memchr), BP_SYM (memchr))
|
|
|
25845f |
+weak_alias (__memchr, memchr)
|
|
|
25845f |
libc_hidden_builtin_def (memchr)
|
|
|
25845f |
diff --git a/sysdeps/i386/memcmp.S b/sysdeps/i386/memcmp.S
|
|
|
25845f |
index 1d5535a29dd12b33..89512f0ed139f22e 100644
|
|
|
25845f |
--- a/sysdeps/i386/memcmp.S
|
|
|
25845f |
+++ b/sysdeps/i386/memcmp.S
|
|
|
25845f |
@@ -18,16 +18,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#define BLK1 PARMS
|
|
|
25845f |
-#define BLK2 BLK1+PTR_SIZE
|
|
|
25845f |
-#define LEN BLK2+PTR_SIZE
|
|
|
25845f |
+#define BLK2 BLK1+4
|
|
|
25845f |
+#define LEN BLK2+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (memcmp))
|
|
|
25845f |
+ENTRY (memcmp)
|
|
|
25845f |
|
|
|
25845f |
pushl %esi /* Save callee-safe registers. */
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -68,8 +66,8 @@ L(1): popl %esi /* Restore registers. */
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (memcmp))
|
|
|
25845f |
+END (memcmp)
|
|
|
25845f |
|
|
|
25845f |
#undef bcmp
|
|
|
25845f |
-weak_alias (BP_SYM (memcmp), BP_SYM (bcmp))
|
|
|
25845f |
-libc_hidden_builtin_def (BP_SYM (memcmp))
|
|
|
25845f |
+weak_alias (memcmp, bcmp)
|
|
|
25845f |
+libc_hidden_builtin_def (memcmp)
|
|
|
25845f |
diff --git a/sysdeps/i386/mul_1.S b/sysdeps/i386/mul_1.S
|
|
|
25845f |
index 71f8dceb188057d9..6ed3a3a5a4ade481 100644
|
|
|
25845f |
--- a/sysdeps/i386/mul_1.S
|
|
|
25845f |
+++ b/sysdeps/i386/mul_1.S
|
|
|
25845f |
@@ -19,13 +19,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S1+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define SIZE S1+4
|
|
|
25845f |
#define S2LIMB SIZE+4
|
|
|
25845f |
|
|
|
25845f |
#define res_ptr edi
|
|
|
25845f |
@@ -34,7 +32,7 @@
|
|
|
25845f |
#define s2_limb ebx
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_mul_1))
|
|
|
25845f |
+ENTRY (__mpn_mul_1)
|
|
|
25845f |
|
|
|
25845f |
pushl %res_ptr
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -85,4 +83,4 @@ L(oop):
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
#undef size
|
|
|
25845f |
-END (BP_SYM (__mpn_mul_1))
|
|
|
25845f |
+END (__mpn_mul_1)
|
|
|
25845f |
diff --git a/sysdeps/i386/rawmemchr.S b/sysdeps/i386/rawmemchr.S
|
|
|
25845f |
index 3ce497485e439c02..4988df295c212cd3 100644
|
|
|
25845f |
--- a/sysdeps/i386/rawmemchr.S
|
|
|
25845f |
+++ b/sysdeps/i386/rawmemchr.S
|
|
|
25845f |
@@ -28,16 +28,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define CHR STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define CHR STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__rawmemchr))
|
|
|
25845f |
+ENTRY (__rawmemchr)
|
|
|
25845f |
|
|
|
25845f |
/* Save callee-safe register used in this function. */
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
@@ -217,8 +215,8 @@ L(9):
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (__rawmemchr))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (__rawmemchr)
|
|
|
25845f |
|
|
|
25845f |
-libc_hidden_def (BP_SYM (__rawmemchr))
|
|
|
25845f |
-weak_alias (BP_SYM (__rawmemchr), BP_SYM (rawmemchr))
|
|
|
25845f |
+libc_hidden_def (__rawmemchr)
|
|
|
25845f |
+weak_alias (__rawmemchr, rawmemchr)
|
|
|
25845f |
diff --git a/sysdeps/i386/rshift.S b/sysdeps/i386/rshift.S
|
|
|
25845f |
index 48f7c4f89dc408d3..eba15a2b7acf089d 100644
|
|
|
25845f |
--- a/sysdeps/i386/rshift.S
|
|
|
25845f |
+++ b/sysdeps/i386/rshift.S
|
|
|
25845f |
@@ -18,17 +18,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+12 /* space for 3 saved regs */
|
|
|
25845f |
+#define PARMS 4+12 /* space for 3 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S+PTR_SIZE
|
|
|
25845f |
+#define S RES+4
|
|
|
25845f |
+#define SIZE S+4
|
|
|
25845f |
#define CNT SIZE+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_rshift))
|
|
|
25845f |
+ENTRY (__mpn_rshift)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -104,4 +102,4 @@ L(end): shrl %cl,%ebx /* compute most significant limb */
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_rshift))
|
|
|
25845f |
+END (__mpn_rshift)
|
|
|
25845f |
diff --git a/sysdeps/i386/setjmp.S b/sysdeps/i386/setjmp.S
|
|
|
25845f |
index 8e7a4df25bd2ff8d..56e6631c489362fb 100644
|
|
|
25845f |
--- a/sysdeps/i386/setjmp.S
|
|
|
25845f |
+++ b/sysdeps/i386/setjmp.S
|
|
|
25845f |
@@ -19,15 +19,13 @@
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include <jmpbuf-offsets.h>
|
|
|
25845f |
#include <asm-syntax.h>
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
#include <stap-probe.h>
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define JMPBUF PARMS
|
|
|
25845f |
-#define SIGMSK JMPBUF+PTR_SIZE
|
|
|
25845f |
+#define SIGMSK JMPBUF+4
|
|
|
25845f |
|
|
|
25845f |
-ENTRY (BP_SYM (__sigsetjmp))
|
|
|
25845f |
+ENTRY (__sigsetjmp)
|
|
|
25845f |
|
|
|
25845f |
movl JMPBUF(%esp), %eax
|
|
|
25845f |
|
|
|
25845f |
@@ -40,7 +38,7 @@ ENTRY (BP_SYM (__sigsetjmp))
|
|
|
25845f |
PTR_MANGLE (%ecx)
|
|
|
25845f |
#endif
|
|
|
25845f |
movl %ecx, (JB_SP*4)(%eax)
|
|
|
25845f |
- movl PCOFF(%esp), %ecx /* Save PC we are returning to now. */
|
|
|
25845f |
+ movl 0(%esp), %ecx /* Save PC we are returning to now. */
|
|
|
25845f |
LIBC_PROBE (setjmp, 3, 4@%eax, -4@SIGMSK(%esp), 4@%ecx)
|
|
|
25845f |
#ifdef PTR_MANGLE
|
|
|
25845f |
PTR_MANGLE (%ecx)
|
|
|
25845f |
@@ -56,4 +54,4 @@ ENTRY (BP_SYM (__sigsetjmp))
|
|
|
25845f |
/* Make a tail call to __sigjmp_save; it takes the same args. */
|
|
|
25845f |
jmp __sigjmp_save
|
|
|
25845f |
#endif
|
|
|
25845f |
-END (BP_SYM (__sigsetjmp))
|
|
|
25845f |
+END (__sigsetjmp)
|
|
|
25845f |
diff --git a/sysdeps/i386/start.S b/sysdeps/i386/start.S
|
|
|
25845f |
index 990f3715d59fd6ea..4afb95205181e3f2 100644
|
|
|
25845f |
--- a/sysdeps/i386/start.S
|
|
|
25845f |
+++ b/sysdeps/i386/start.S
|
|
|
25845f |
@@ -52,8 +52,6 @@
|
|
|
25845f |
NULL
|
|
|
25845f |
*/
|
|
|
25845f |
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-
|
|
|
25845f |
.text
|
|
|
25845f |
.globl _start
|
|
|
25845f |
.type _start,@function
|
|
|
25845f |
@@ -97,11 +95,11 @@ _start:
|
|
|
25845f |
pushl %ecx /* Push second argument: argv. */
|
|
|
25845f |
pushl %esi /* Push first argument: argc. */
|
|
|
25845f |
|
|
|
25845f |
- pushl BP_SYM (main)@GOT(%ebx)
|
|
|
25845f |
+ pushl main@GOT(%ebx)
|
|
|
25845f |
|
|
|
25845f |
/* Call the user's main function, and exit with its value.
|
|
|
25845f |
But let the libc call main. */
|
|
|
25845f |
- call BP_SYM (__libc_start_main)@PLT
|
|
|
25845f |
+ call __libc_start_main@PLT
|
|
|
25845f |
#else
|
|
|
25845f |
/* Push address of our own entry points to .fini and .init. */
|
|
|
25845f |
pushl $__libc_csu_fini
|
|
|
25845f |
@@ -110,11 +108,11 @@ _start:
|
|
|
25845f |
pushl %ecx /* Push second argument: argv. */
|
|
|
25845f |
pushl %esi /* Push first argument: argc. */
|
|
|
25845f |
|
|
|
25845f |
- pushl $BP_SYM (main)
|
|
|
25845f |
+ pushl $main
|
|
|
25845f |
|
|
|
25845f |
/* Call the user's main function, and exit with its value.
|
|
|
25845f |
But let the libc call main. */
|
|
|
25845f |
- call BP_SYM (__libc_start_main)
|
|
|
25845f |
+ call __libc_start_main
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
hlt /* Crash if somehow `exit' does return. */
|
|
|
25845f |
diff --git a/sysdeps/i386/stpcpy.S b/sysdeps/i386/stpcpy.S
|
|
|
25845f |
index 3a01be3174ef0863..14573416254865c1 100644
|
|
|
25845f |
--- a/sysdeps/i386/stpcpy.S
|
|
|
25845f |
+++ b/sysdeps/i386/stpcpy.S
|
|
|
25845f |
@@ -24,16 +24,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
-#define SRC DEST+PTR_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
+#define SRC DEST+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__stpcpy))
|
|
|
25845f |
+ENTRY (__stpcpy)
|
|
|
25845f |
|
|
|
25845f |
movl DEST(%esp), %eax
|
|
|
25845f |
movl SRC(%esp), %ecx
|
|
|
25845f |
@@ -83,9 +81,9 @@ L(4): incl %eax
|
|
|
25845f |
L(3): incl %eax
|
|
|
25845f |
L(2):
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (__stpcpy))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (__stpcpy)
|
|
|
25845f |
|
|
|
25845f |
-weak_alias (BP_SYM (__stpcpy), BP_SYM (stpcpy))
|
|
|
25845f |
+weak_alias (__stpcpy, stpcpy)
|
|
|
25845f |
libc_hidden_def (__stpcpy)
|
|
|
25845f |
libc_hidden_builtin_def (stpcpy)
|
|
|
25845f |
diff --git a/sysdeps/i386/stpncpy.S b/sysdeps/i386/stpncpy.S
|
|
|
25845f |
index 7f3ca8c3b775b42f..870176640450258c 100644
|
|
|
25845f |
--- a/sysdeps/i386/stpncpy.S
|
|
|
25845f |
+++ b/sysdeps/i386/stpncpy.S
|
|
|
25845f |
@@ -25,17 +25,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define DEST RTN+RTN_SIZE
|
|
|
25845f |
-#define SRC DEST+PTR_SIZE
|
|
|
25845f |
-#define LEN SRC+PTR_SIZE
|
|
|
25845f |
+#define DEST RTN
|
|
|
25845f |
+#define SRC DEST+4
|
|
|
25845f |
+#define LEN SRC+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__stpncpy))
|
|
|
25845f |
+ENTRY (__stpncpy)
|
|
|
25845f |
|
|
|
25845f |
pushl %esi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -142,8 +140,8 @@ L(9): popl %esi /* restore saved register content */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (esi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (__stpncpy))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (__stpncpy)
|
|
|
25845f |
|
|
|
25845f |
-libc_hidden_def (BP_SYM (__stpncpy))
|
|
|
25845f |
-weak_alias (BP_SYM (__stpncpy), BP_SYM (stpncpy))
|
|
|
25845f |
+libc_hidden_def (__stpncpy)
|
|
|
25845f |
+weak_alias (__stpncpy, stpncpy)
|
|
|
25845f |
diff --git a/sysdeps/i386/strchr.S b/sysdeps/i386/strchr.S
|
|
|
25845f |
index aff95b9b7ee4c35c..0def0d2e8c4549ee 100644
|
|
|
25845f |
--- a/sysdeps/i386/strchr.S
|
|
|
25845f |
+++ b/sysdeps/i386/strchr.S
|
|
|
25845f |
@@ -22,16 +22,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define CHR STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define CHR STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strchr))
|
|
|
25845f |
+ENTRY (strchr)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi /* Save callee-safe registers used here. */
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -246,7 +244,7 @@ L(2): /* Return NULL. */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
cfi_rel_offset (edi, 0)
|
|
|
25845f |
@@ -286,8 +284,8 @@ L(6):
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (strchr))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (strchr)
|
|
|
25845f |
|
|
|
25845f |
-weak_alias (BP_SYM (strchr), BP_SYM (index))
|
|
|
25845f |
+weak_alias (strchr, index)
|
|
|
25845f |
libc_hidden_builtin_def (strchr)
|
|
|
25845f |
diff --git a/sysdeps/i386/strchrnul.S b/sysdeps/i386/strchrnul.S
|
|
|
25845f |
index 2aa7d82cc8af1dfc..6d2da6d6b1f1d306 100644
|
|
|
25845f |
--- a/sysdeps/i386/strchrnul.S
|
|
|
25845f |
+++ b/sysdeps/i386/strchrnul.S
|
|
|
25845f |
@@ -22,16 +22,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+4 /* space for 1 saved reg */
|
|
|
25845f |
+#define PARMS 4+4 /* space for 1 saved reg */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define CHR STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define CHR STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__strchrnul))
|
|
|
25845f |
+ENTRY (__strchrnul)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi /* Save callee-safe registers used here. */
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -274,7 +272,7 @@ L(6): popl %edi /* restore saved register content */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (__strchrnul))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (__strchrnul)
|
|
|
25845f |
|
|
|
25845f |
-weak_alias (BP_SYM (__strchrnul), BP_SYM (strchrnul))
|
|
|
25845f |
+weak_alias (__strchrnul, strchrnul)
|
|
|
25845f |
diff --git a/sysdeps/i386/strcspn.S b/sysdeps/i386/strcspn.S
|
|
|
25845f |
index 40b5207809f74530..78becc3862d0cf15 100644
|
|
|
25845f |
--- a/sysdeps/i386/strcspn.S
|
|
|
25845f |
+++ b/sysdeps/i386/strcspn.S
|
|
|
25845f |
@@ -22,15 +22,13 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define STR PARMS
|
|
|
25845f |
-#define STOP STR+PTR_SIZE
|
|
|
25845f |
+#define STOP STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strcspn))
|
|
|
25845f |
+ENTRY (strcspn)
|
|
|
25845f |
|
|
|
25845f |
movl STR(%esp), %edx
|
|
|
25845f |
movl STOP(%esp), %eax
|
|
|
25845f |
@@ -238,5 +236,5 @@ L(4): addl $256, %esp /* remove stopset */
|
|
|
25845f |
characters, so compute distance to first
|
|
|
25845f |
non-valid character */
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (strcspn))
|
|
|
25845f |
+END (strcspn)
|
|
|
25845f |
libc_hidden_builtin_def (strcspn)
|
|
|
25845f |
diff --git a/sysdeps/i386/strpbrk.S b/sysdeps/i386/strpbrk.S
|
|
|
25845f |
index ae35ba44f6a624a7..0ecd6dae9fcaa701 100644
|
|
|
25845f |
--- a/sysdeps/i386/strpbrk.S
|
|
|
25845f |
+++ b/sysdeps/i386/strpbrk.S
|
|
|
25845f |
@@ -22,16 +22,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define STOP STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define STOP STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strpbrk))
|
|
|
25845f |
+ENTRY (strpbrk)
|
|
|
25845f |
|
|
|
25845f |
movl STR(%esp), %edx
|
|
|
25845f |
movl STOP(%esp), %eax
|
|
|
25845f |
@@ -240,6 +238,6 @@ L(4): addl $256, %esp /* remove stopset */
|
|
|
25845f |
jnz L(7) /* no => return pointer */
|
|
|
25845f |
xorl %eax, %eax
|
|
|
25845f |
|
|
|
25845f |
-L(7): RET_PTR
|
|
|
25845f |
-END (BP_SYM (strpbrk))
|
|
|
25845f |
+L(7): ret
|
|
|
25845f |
+END (strpbrk)
|
|
|
25845f |
libc_hidden_builtin_def (strpbrk)
|
|
|
25845f |
diff --git a/sysdeps/i386/strrchr.S b/sysdeps/i386/strrchr.S
|
|
|
25845f |
index 57931c165831aa55..1fed985db81f6da2 100644
|
|
|
25845f |
--- a/sysdeps/i386/strrchr.S
|
|
|
25845f |
+++ b/sysdeps/i386/strrchr.S
|
|
|
25845f |
@@ -21,16 +21,14 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+8 /* space for 2 saved regs */
|
|
|
25845f |
+#define PARMS 4+8 /* space for 2 saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define CHR STR+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define CHR STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strrchr))
|
|
|
25845f |
+ENTRY (strrchr)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi /* Save callee-safe registers used here. */
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -329,8 +327,8 @@ L(2): popl %esi /* restore saved register content */
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
-END (BP_SYM (strrchr))
|
|
|
25845f |
+ ret
|
|
|
25845f |
+END (strrchr)
|
|
|
25845f |
|
|
|
25845f |
-weak_alias (BP_SYM (strrchr), BP_SYM (rindex))
|
|
|
25845f |
+weak_alias (strrchr, rindex)
|
|
|
25845f |
libc_hidden_builtin_def (strrchr)
|
|
|
25845f |
diff --git a/sysdeps/i386/strspn.S b/sysdeps/i386/strspn.S
|
|
|
25845f |
index 2b5c2a4c670bdfa2..aec4f290a332b2cf 100644
|
|
|
25845f |
--- a/sysdeps/i386/strspn.S
|
|
|
25845f |
+++ b/sysdeps/i386/strspn.S
|
|
|
25845f |
@@ -22,15 +22,13 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define STR PARMS
|
|
|
25845f |
-#define SKIP STR+PTR_SIZE
|
|
|
25845f |
+#define SKIP STR+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (strspn))
|
|
|
25845f |
+ENTRY (strspn)
|
|
|
25845f |
|
|
|
25845f |
movl STR(%esp), %edx
|
|
|
25845f |
movl SKIP(%esp), %eax
|
|
|
25845f |
@@ -238,5 +236,5 @@ L(4): addl $256, %esp /* remove stopset */
|
|
|
25845f |
characters, so compute distance to first
|
|
|
25845f |
non-valid character */
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (strspn))
|
|
|
25845f |
+END (strspn)
|
|
|
25845f |
libc_hidden_builtin_def (strspn)
|
|
|
25845f |
diff --git a/sysdeps/i386/strtok.S b/sysdeps/i386/strtok.S
|
|
|
25845f |
index eb586928eb19bf21..d852027b870b0530 100644
|
|
|
25845f |
--- a/sysdeps/i386/strtok.S
|
|
|
25845f |
+++ b/sysdeps/i386/strtok.S
|
|
|
25845f |
@@ -20,8 +20,6 @@
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
/* This file can be used for three variants of the strtok function:
|
|
|
25845f |
|
|
|
25845f |
@@ -57,14 +55,14 @@ save_ptr:
|
|
|
25845f |
# define FUNCTION strtok
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define RTN PARMS
|
|
|
25845f |
-#define STR RTN+RTN_SIZE
|
|
|
25845f |
-#define DELIM STR+PTR_SIZE
|
|
|
25845f |
-#define SAVE DELIM+PTR_SIZE
|
|
|
25845f |
+#define STR RTN
|
|
|
25845f |
+#define DELIM STR+4
|
|
|
25845f |
+#define SAVE DELIM+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (FUNCTION))
|
|
|
25845f |
+ENTRY (FUNCTION)
|
|
|
25845f |
|
|
|
25845f |
movl STR(%esp), %edx
|
|
|
25845f |
movl DELIM(%esp), %eax
|
|
|
25845f |
@@ -347,7 +345,7 @@ L(epilogue):
|
|
|
25845f |
cfi_adjust_cfa_offset (-4)
|
|
|
25845f |
cfi_restore (ebx)
|
|
|
25845f |
#endif
|
|
|
25845f |
- RET_PTR
|
|
|
25845f |
+ ret
|
|
|
25845f |
|
|
|
25845f |
L(returnNULL):
|
|
|
25845f |
xorl %eax, %eax
|
|
|
25845f |
@@ -357,4 +355,4 @@ L(returnNULL):
|
|
|
25845f |
movl %edx, SAVE_PTR
|
|
|
25845f |
jmp L(epilogue)
|
|
|
25845f |
|
|
|
25845f |
-END (BP_SYM (FUNCTION))
|
|
|
25845f |
+END (FUNCTION)
|
|
|
25845f |
diff --git a/sysdeps/i386/strtok_r.S b/sysdeps/i386/strtok_r.S
|
|
|
25845f |
index f4a6a2c409ed1e22..508729370a17069b 100644
|
|
|
25845f |
--- a/sysdeps/i386/strtok_r.S
|
|
|
25845f |
+++ b/sysdeps/i386/strtok_r.S
|
|
|
25845f |
@@ -1,5 +1,5 @@
|
|
|
25845f |
#define FUNCTION __strtok_r
|
|
|
25845f |
#define USE_AS_STRTOK_R 1
|
|
|
25845f |
#include <sysdeps/i386/strtok.S>
|
|
|
25845f |
-weak_alias (BP_SYM (__strtok_r), BP_SYM (strtok_r))
|
|
|
25845f |
-strong_alias (BP_SYM (__strtok_r), BP_SYM (__GI___strtok_r))
|
|
|
25845f |
+weak_alias (__strtok_r, strtok_r)
|
|
|
25845f |
+strong_alias (__strtok_r, __GI___strtok_r)
|
|
|
25845f |
diff --git a/sysdeps/i386/sub_n.S b/sysdeps/i386/sub_n.S
|
|
|
25845f |
index 2a09256f9c71f93a..1c6592db037cf19e 100644
|
|
|
25845f |
--- a/sysdeps/i386/sub_n.S
|
|
|
25845f |
+++ b/sysdeps/i386/sub_n.S
|
|
|
25845f |
@@ -20,17 +20,15 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+8 /* space for 2 saved regs */
|
|
|
25845f |
+#define PARMS 4+8 /* space for 2 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define S2 S1+PTR_SIZE
|
|
|
25845f |
-#define SIZE S2+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define S2 S1+4
|
|
|
25845f |
+#define SIZE S2+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_sub_n))
|
|
|
25845f |
+ENTRY (__mpn_sub_n)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -111,4 +109,4 @@ L(oop): movl (%esi),%eax
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_sub_n))
|
|
|
25845f |
+END (__mpn_sub_n)
|
|
|
25845f |
diff --git a/sysdeps/i386/submul_1.S b/sysdeps/i386/submul_1.S
|
|
|
25845f |
index c7054e0f6bd48a5e..9e03f504cf5070cd 100644
|
|
|
25845f |
--- a/sysdeps/i386/submul_1.S
|
|
|
25845f |
+++ b/sysdeps/i386/submul_1.S
|
|
|
25845f |
@@ -19,13 +19,11 @@
|
|
|
25845f |
|
|
|
25845f |
#include "sysdep.h"
|
|
|
25845f |
#include "asm-syntax.h"
|
|
|
25845f |
-#include "bp-sym.h"
|
|
|
25845f |
-#include "bp-asm.h"
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE+16 /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+16 /* space for 4 saved regs */
|
|
|
25845f |
#define RES PARMS
|
|
|
25845f |
-#define S1 RES+PTR_SIZE
|
|
|
25845f |
-#define SIZE S1+PTR_SIZE
|
|
|
25845f |
+#define S1 RES+4
|
|
|
25845f |
+#define SIZE S1+4
|
|
|
25845f |
#define S2LIMB SIZE+4
|
|
|
25845f |
|
|
|
25845f |
#define res_ptr edi
|
|
|
25845f |
@@ -34,7 +32,7 @@
|
|
|
25845f |
#define s2_limb ebx
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mpn_submul_1))
|
|
|
25845f |
+ENTRY (__mpn_submul_1)
|
|
|
25845f |
|
|
|
25845f |
pushl %edi
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -85,4 +83,4 @@ L(oop):
|
|
|
25845f |
cfi_restore (edi)
|
|
|
25845f |
|
|
|
25845f |
ret
|
|
|
25845f |
-END (BP_SYM (__mpn_submul_1))
|
|
|
25845f |
+END (__mpn_submul_1)
|
|
|
25845f |
diff --git a/sysdeps/unix/i386/sysdep.S b/sysdeps/unix/i386/sysdep.S
|
|
|
25845f |
index 1795ace4136abdde..aee9655fe9497f9f 100644
|
|
|
25845f |
--- a/sysdeps/unix/i386/sysdep.S
|
|
|
25845f |
+++ b/sysdeps/unix/i386/sysdep.S
|
|
|
25845f |
@@ -19,8 +19,6 @@
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
#define _ERRNO_H
|
|
|
25845f |
#include <bits/errno.h>
|
|
|
25845f |
-#include <bp-asm.h>
|
|
|
25845f |
-#include <bp-sym.h>
|
|
|
25845f |
|
|
|
25845f |
#if IS_IN (rtld)
|
|
|
25845f |
# include <dl-sysdep.h> /* Defines RTLD_PRIVATE_ERRNO. */
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S
|
|
|
25845f |
index 1aa2a1f828b944a6..da57c8e5df43ab54 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/i386/clone.S
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/i386/clone.S
|
|
|
25845f |
@@ -23,20 +23,18 @@
|
|
|
25845f |
#define _ERRNO_H 1
|
|
|
25845f |
#include <bits/errno.h>
|
|
|
25845f |
#include <asm-syntax.h>
|
|
|
25845f |
-#include <bp-sym.h>
|
|
|
25845f |
-#include <bp-asm.h>
|
|
|
25845f |
|
|
|
25845f |
/* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg,
|
|
|
25845f |
pid_t *ptid, struct user_desc *tls, pid_t *ctid); */
|
|
|
25845f |
|
|
|
25845f |
-#define PARMS LINKAGE /* no space for saved regs */
|
|
|
25845f |
+#define PARMS 4 /* no space for saved regs */
|
|
|
25845f |
#define FUNC PARMS
|
|
|
25845f |
#define STACK FUNC+4
|
|
|
25845f |
-#define FLAGS STACK+PTR_SIZE
|
|
|
25845f |
+#define FLAGS STACK+4
|
|
|
25845f |
#define ARG FLAGS+4
|
|
|
25845f |
-#define PTID ARG+PTR_SIZE
|
|
|
25845f |
-#define TLS PTID+PTR_SIZE
|
|
|
25845f |
-#define CTID TLS+PTR_SIZE
|
|
|
25845f |
+#define PTID ARG+4
|
|
|
25845f |
+#define TLS PTID+4
|
|
|
25845f |
+#define CTID TLS+4
|
|
|
25845f |
|
|
|
25845f |
#define __NR_clone 120
|
|
|
25845f |
#define SYS_clone 120
|
|
|
25845f |
@@ -45,7 +43,7 @@
|
|
|
25845f |
#define CLONE_THREAD 0x00010000
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__clone))
|
|
|
25845f |
+ENTRY (__clone)
|
|
|
25845f |
/* Sanity check arguments. */
|
|
|
25845f |
movl $-EINVAL,%eax
|
|
|
25845f |
movl FUNC(%esp),%ecx /* no NULL function pointers */
|
|
|
25845f |
@@ -156,6 +154,6 @@ L(nomoregetpid):
|
|
|
25845f |
cfi_endproc;
|
|
|
25845f |
|
|
|
25845f |
cfi_startproc
|
|
|
25845f |
-PSEUDO_END (BP_SYM (__clone))
|
|
|
25845f |
+PSEUDO_END (__clone)
|
|
|
25845f |
|
|
|
25845f |
-weak_alias (BP_SYM (__clone), BP_SYM (clone))
|
|
|
25845f |
+weak_alias (__clone, clone)
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/i386/mmap64.S b/sysdeps/unix/sysv/linux/i386/mmap64.S
|
|
|
25845f |
index 8855109ff935a666..6765cd87000e27b8 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/i386/mmap64.S
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/i386/mmap64.S
|
|
|
25845f |
@@ -16,8 +16,6 @@
|
|
|
25845f |
<http://www.gnu.org/licenses/>. */
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
-#include <bp-sym.h>
|
|
|
25845f |
-#include <bp-asm.h>
|
|
|
25845f |
|
|
|
25845f |
#include <kernel-features.h>
|
|
|
25845f |
|
|
|
25845f |
@@ -25,9 +23,9 @@
|
|
|
25845f |
#define ENOSYS 38
|
|
|
25845f |
|
|
|
25845f |
#define SVRSP 16 /* saved register space */
|
|
|
25845f |
-#define PARMS LINKAGE+SVRSP /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+SVRSP /* space for 4 saved regs */
|
|
|
25845f |
#define ADDR PARMS
|
|
|
25845f |
-#define LEN ADDR+PTR_SIZE
|
|
|
25845f |
+#define LEN ADDR+4
|
|
|
25845f |
#define PROT LEN+4
|
|
|
25845f |
#define FLAGS PROT+4
|
|
|
25845f |
#define FD FLAGS+4
|
|
|
25845f |
@@ -35,7 +33,7 @@
|
|
|
25845f |
#define OFFHI OFFLO+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__mmap64))
|
|
|
25845f |
+ENTRY (__mmap64)
|
|
|
25845f |
|
|
|
25845f |
/* Save registers. */
|
|
|
25845f |
pushl %ebp
|
|
|
25845f |
@@ -115,6 +113,6 @@ L(einval):
|
|
|
25845f |
movl $-EINVAL, %eax
|
|
|
25845f |
jmp SYSCALL_ERROR_LABEL
|
|
|
25845f |
|
|
|
25845f |
-PSEUDO_END (BP_SYM (__mmap64))
|
|
|
25845f |
+PSEUDO_END (__mmap64)
|
|
|
25845f |
|
|
|
25845f |
-weak_alias (BP_SYM (__mmap64), BP_SYM (mmap64))
|
|
|
25845f |
+weak_alias (__mmap64, mmap64)
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/i386/posix_fadvise64.S b/sysdeps/unix/sysv/linux/i386/posix_fadvise64.S
|
|
|
25845f |
index 00e6a4194d557645..1f29d8c37f61abd6 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/i386/posix_fadvise64.S
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/i386/posix_fadvise64.S
|
|
|
25845f |
@@ -16,15 +16,13 @@
|
|
|
25845f |
<http://www.gnu.org/licenses/>. */
|
|
|
25845f |
|
|
|
25845f |
#include <sysdep.h>
|
|
|
25845f |
-#include <bp-sym.h>
|
|
|
25845f |
-#include <bp-asm.h>
|
|
|
25845f |
|
|
|
25845f |
#define EINVAL 22
|
|
|
25845f |
#define ENOSYS 38
|
|
|
25845f |
#define EOVERFLOW 75
|
|
|
25845f |
|
|
|
25845f |
#define SVRSP 16 /* saved register space */
|
|
|
25845f |
-#define PARMS LINKAGE+SVRSP /* space for 4 saved regs */
|
|
|
25845f |
+#define PARMS 4+SVRSP /* space for 4 saved regs */
|
|
|
25845f |
#define FD PARMS
|
|
|
25845f |
#define OFFLO FD+4
|
|
|
25845f |
#define OFFHI OFFLO+4
|
|
|
25845f |
@@ -33,7 +31,7 @@
|
|
|
25845f |
#define FLAGS LENHI+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (__posix_fadvise64_l64))
|
|
|
25845f |
+ENTRY (__posix_fadvise64_l64)
|
|
|
25845f |
|
|
|
25845f |
/* Save registers. */
|
|
|
25845f |
pushl %ebp
|
|
|
25845f |
@@ -81,7 +79,7 @@ ENTRY (BP_SYM (__posix_fadvise64_l64))
|
|
|
25845f |
/* Successful; return the syscall's value. */
|
|
|
25845f |
ret
|
|
|
25845f |
|
|
|
25845f |
-END (BP_SYM (__posix_fadvise64_l64))
|
|
|
25845f |
+END (__posix_fadvise64_l64)
|
|
|
25845f |
|
|
|
25845f |
.section .text.compat, "ax"
|
|
|
25845f |
ENTRY (__posix_fadvise64_l32)
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/i386/semtimedop.S b/sysdeps/unix/sysv/linux/i386/semtimedop.S
|
|
|
25845f |
index 785be2efc9dd93c5..1acf775b80a20b53 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/i386/semtimedop.S
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/i386/semtimedop.S
|
|
|
25845f |
@@ -21,14 +21,14 @@
|
|
|
25845f |
#define SYSOP_semtimedop 4
|
|
|
25845f |
|
|
|
25845f |
#define SVRSP 12 /* saved register space */
|
|
|
25845f |
-#define PARMS LINKAGE+SVRSP /* space for 3 saved regs */
|
|
|
25845f |
+#define PARMS 4+SVRSP /* space for 3 saved regs */
|
|
|
25845f |
#define SEMID PARMS
|
|
|
25845f |
#define SOPS SEMID+4
|
|
|
25845f |
-#define NSOPS SOPS+PTR_SIZE
|
|
|
25845f |
+#define NSOPS SOPS+4
|
|
|
25845f |
#define TIMEOUT NSOPS+4
|
|
|
25845f |
|
|
|
25845f |
.text
|
|
|
25845f |
-ENTRY (BP_SYM (semtimedop))
|
|
|
25845f |
+ENTRY (semtimedop)
|
|
|
25845f |
|
|
|
25845f |
pushl %ebp
|
|
|
25845f |
cfi_adjust_cfa_offset (4)
|
|
|
25845f |
@@ -70,4 +70,4 @@ ENTRY (BP_SYM (semtimedop))
|
|
|
25845f |
#ifdef PIC
|
|
|
25845f |
.align 4
|
|
|
25845f |
#endif
|
|
|
25845f |
-PSEUDO_END (BP_SYM (semtimedop))
|
|
|
25845f |
+PSEUDO_END (semtimedop)
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
|
|
|
25845f |
index b99b67c830184e95..dfbdb2084491af90 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/i386/sysdep.h
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
|
|
|
25845f |
@@ -21,8 +21,6 @@
|
|
|
25845f |
|
|
|
25845f |
/* There is some commonality. */
|
|
|
25845f |
#include <sysdeps/unix/i386/sysdep.h>
|
|
|
25845f |
-#include <bp-sym.h>
|
|
|
25845f |
-#include <bp-asm.h>
|
|
|
25845f |
/* Defines RTLD_PRIVATE_ERRNO and USE_DL_SYSINFO. */
|
|
|
25845f |
#include <dl-sysdep.h>
|
|
|
25845f |
#include <tls.h>
|