Blame SOURCES/glibc-rh1505492-bounded-15.patch

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