00db10
commit 2d67d91ac08aa2f793d220ad8712541fefa0ba79
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Wed Mar 6 00:10:21 2013 +0000
00db10
00db10
    Remove powerpc64 bounded-pointers code.
00db10
00db10
Conflicts:
00db10
	sysdeps/generic/bp-sym.h
00db10
	  (Copyright header change; file deleted manually.)
00db10
	sysdeps/powerpc/powerpc64/bp-asm.h
00db10
	sysdeps/powerpc/powerpc64/memset.S
00db10
	sysdeps/powerpc/powerpc64/power4/memset.S
00db10
	sysdeps/powerpc/powerpc64/power6/memset.S
00db10
	sysdeps/powerpc/powerpc64/power7/memchr.S
00db10
	sysdeps/powerpc/powerpc64/power7/memcmp.S
00db10
	sysdeps/powerpc/powerpc64/power7/memrchr.S
00db10
	sysdeps/powerpc/powerpc64/power7/memset.S
00db10
	sysdeps/powerpc/powerpc64/power7/strnlen.S
00db10
	sysdeps/powerpc/powerpc64/setjmp-common.S
00db10
	sysdeps/powerpc/powerpc64/stpcpy.S
00db10
	sysdeps/powerpc/powerpc64/strcmp.S
00db10
	sysdeps/powerpc/powerpc64/strcpy.S
00db10
	sysdeps/powerpc/powerpc64/strlen.S
00db10
	  (Resolved textual conflicts due to previous backports.)
00db10
00db10
diff --git a/sysdeps/generic/bp-sym.h b/sysdeps/generic/bp-sym.h
00db10
deleted file mode 100644
00db10
index f581e5fc59dfedd9..0000000000000000
00db10
--- a/sysdeps/generic/bp-sym.h
00db10
+++ /dev/null
00db10
@@ -1,25 +0,0 @@
00db10
-/* Bounded-pointer symbol modifier.
00db10
-   Copyright (C) 2000 Free Software Foundation, Inc.
00db10
-   This file is part of the GNU C Library.
00db10
-   Contributed by Greg McGary <greg@mcgary.org>
00db10
-
00db10
-   The GNU C Library is free software; you can redistribute it and/or
00db10
-   modify it under the terms of the GNU Lesser General Public
00db10
-   License as published by the Free Software Foundation; either
00db10
-   version 2.1 of the License, or (at your option) any later version.
00db10
-
00db10
-   The GNU C Library is distributed in the hope that it will be useful,
00db10
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
00db10
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00db10
-   Lesser General Public License for more details.
00db10
-
00db10
-   You should have received a copy of the GNU Lesser General Public
00db10
-   License along with the GNU C Library; if not, see
00db10
-   <http://www.gnu.org/licenses/>.  */
00db10
-
00db10
-#define BP_SYM(name) _BP_SYM (name)
00db10
-#if __BOUNDED_POINTERS__
00db10
-# define _BP_SYM(name) __BP_##name
00db10
-#else
00db10
-# define _BP_SYM(name) name
00db10
-#endif
00db10
diff --git a/sysdeps/powerpc/powerpc64/__longjmp-common.S b/sysdeps/powerpc/powerpc64/__longjmp-common.S
00db10
index 95caaa77c322562a..da65c6f1bbdb6dc3 100644
00db10
--- a/sysdeps/powerpc/powerpc64/__longjmp-common.S
00db10
+++ b/sysdeps/powerpc/powerpc64/__longjmp-common.S
00db10
@@ -24,8 +24,6 @@
00db10
 #else
00db10
 # include <jmpbuf-offsets.h>
00db10
 #endif
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 #ifndef __NO_VMX__
00db10
 	.section	".toc","aw"
00db10
@@ -45,9 +43,8 @@
00db10
 #endif
00db10
 
00db10
 	.machine	"altivec"
00db10
-ENTRY (BP_SYM (__longjmp))
00db10
+ENTRY (__longjmp)
00db10
 	CALL_MCOUNT 2
00db10
-	CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
00db10
 #ifndef __NO_VMX__
00db10
 	ld    r5,.LC__dl_hwcap@toc(r2)
00db10
 # ifdef SHARED
00db10
@@ -178,4 +175,4 @@ L(no_vmx):
00db10
 	lfd fp31,((JB_FPRS+17)*8)(r3)
00db10
 	mr r3,r4
00db10
 	blr
00db10
-END (BP_SYM (__longjmp))
00db10
+END (__longjmp)
00db10
diff --git a/sysdeps/powerpc/powerpc64/a2/memcpy.S b/sysdeps/powerpc/powerpc64/a2/memcpy.S
00db10
index 4ffe19a0e6b04d2f..f640feb45ce306c6 100644
00db10
--- a/sysdeps/powerpc/powerpc64/a2/memcpy.S
00db10
+++ b/sysdeps/powerpc/powerpc64/a2/memcpy.S
00db10
@@ -18,8 +18,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 #define PREFETCH_AHEAD 4        /* no cache lines SRC prefetching ahead  */
00db10
 #define ZERO_AHEAD 2            /* no cache lines DST zeroing ahead  */
00db10
@@ -32,7 +30,7 @@
00db10
 
00db10
 
00db10
 	.machine  a2
00db10
-EALIGN (BP_SYM (memcpy), 5, 0)
00db10
+EALIGN (memcpy, 5, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 	dcbt    0,r4            /* Prefetch ONE SRC cacheline  */
00db10
@@ -522,5 +520,5 @@ L(endloop2_128):
00db10
 	b       L(lessthancacheline)
00db10
 
00db10
 
00db10
-END_GEN_TB (BP_SYM (memcpy),TB_TOCLESS)
00db10
+END_GEN_TB (memcpy,TB_TOCLESS)
00db10
 libc_hidden_builtin_def (memcpy)
00db10
diff --git a/sysdeps/powerpc/powerpc64/bp-asm.h b/sysdeps/powerpc/powerpc64/bp-asm.h
00db10
deleted file mode 100644
00db10
index f1ec72204b685801..0000000000000000
00db10
--- a/sysdeps/powerpc/powerpc64/bp-asm.h
00db10
+++ /dev/null
00db10
@@ -1,113 +0,0 @@
00db10
-/* Bounded-pointer definitions for PowerPC64 assembler.
00db10
-   Copyright (C) 2000, 2002 Free Software Foundation, Inc.
00db10
-   Contributed by Greg McGary <greg@mcgary.org>
00db10
-
00db10
-   This file is part of the GNU C Library.  Its master source is NOT part of
00db10
-   the C library, however.  The master source lives in the GNU MP Library.
00db10
-
00db10
-   The GNU C Library is free software; you can redistribute it and/or
00db10
-   modify it under the terms of the GNU Library General Public License as
00db10
-   published by the Free Software Foundation; either version 2 of the
00db10
-   License, or (at your option) any later version.
00db10
-
00db10
-   The GNU C Library is distributed in the hope that it will be useful,
00db10
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
00db10
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00db10
-   Library General Public License for more details.
00db10
-
00db10
-   You should have received a copy of the GNU Library General Public
00db10
-   License along with the GNU C Library; see the file COPYING.LIB.  If
00db10
-   not, see <http://www.gnu.org/licenses/>.  */
00db10
-
00db10
-#if __BOUNDED_POINTERS__
00db10
-
00db10
-/* Byte offsets of BP components.  */
00db10
-# define oVALUE	0
00db10
-# define oLOW	4
00db10
-# define oHIGH	8
00db10
-
00db10
-/* Don't check bounds, just convert the BP register to its simple
00db10
-   pointer value.  */
00db10
-
00db10
-# define DISCARD_BOUNDS(rBP)			\
00db10
-	ld	rBP, oVALUE(rBP)
00db10
-
00db10
-/* Check low bound, with the side effect that the BP register is converted
00db10
-   its simple pointer value.  Move the high bound into a register for
00db10
-   later use.  */
00db10
-
00db10
-# define CHECK_BOUNDS_LOW(rBP, rLOW, rHIGH)	\
00db10
-	ld	rHIGH, oHIGH(rBP);		\
00db10
-	ld	rLOW, oLOW(rBP);		\
00db10
-	ld	rBP, oVALUE(rBP);		\
00db10
-	tdllt	rBP, rLOW
00db10
-
00db10
-/* Check the high bound, which is in a register, using the given
00db10
-   conditional trap instruction.  */
00db10
-
00db10
-# define CHECK_BOUNDS_HIGH(rVALUE, rHIGH, TWLcc) \
00db10
-	TWLcc	rVALUE, rHIGH
00db10
-
00db10
-/* Check the high bound, which is stored at the return-value's high
00db10
-   bound slot, using the given conditional trap instruction.  */
00db10
-
00db10
-# define CHECK_BOUNDS_HIGH_RTN(rVALUE, rHIGH, TWLcc)	\
00db10
-	ld	rHIGH, oHIGH(rRTN);			\
00db10
-	TWLcc	rVALUE, rHIGH
00db10
-
00db10
-/* Check both bounds, with the side effect that the BP register is
00db10
-   converted to its simple pointer value.  */
00db10
-
00db10
-# define CHECK_BOUNDS_BOTH(rBP, rLOW, rHIGH)	\
00db10
-	CHECK_BOUNDS_LOW(rBP, rLOW, rHIGH);	\
00db10
-	tdlge	rBP, rHIGH
00db10
-
00db10
-/* Check bounds on a memory region of given length, with the side
00db10
-   effect that the BP register is converted to its simple pointer
00db10
-   value.  */
00db10
-
00db10
-# define CHECK_BOUNDS_BOTH_WIDE(rBP, rLOW, rHIGH, rLENGTH)	\
00db10
-	CHECK_BOUNDS_LOW (rBP, rLOW, rHIGH);			\
00db10
-	sub	rHIGH, rHIGH, rLENGTH;				\
00db10
-	tdlgt	rBP, rHIGH
00db10
-
00db10
-# define CHECK_BOUNDS_BOTH_WIDE_LIT(rBP, rLOW, rHIGH, LENGTH)	\
00db10
-	CHECK_BOUNDS_LOW (rBP, rLOW, rHIGH);			\
00db10
-	subi	rHIGH, rHIGH, LENGTH;				\
00db10
-	tdlgt	rBP, rHIGH
00db10
-
00db10
-/* Store a pointer value register into the return-value's pointer
00db10
-   value slot.  */
00db10
-
00db10
-# define STORE_RETURN_VALUE(rVALUE)		\
00db10
-	std	rVALUE, oVALUE(rRTN)
00db10
-
00db10
-/* Store a low and high bounds into the return-value's pointer bounds
00db10
-   slots.  */
00db10
-
00db10
-# define STORE_RETURN_BOUNDS(rLOW, rHIGH)	\
00db10
-	std	rLOW, oLOW(rRTN);		\
00db10
-	std	rHIGH, oHIGH(rRTN)
00db10
-
00db10
-/* Stuff zero value/low/high into the BP addressed by rRTN.  */
00db10
-
00db10
-# define RETURN_NULL_BOUNDED_POINTER		\
00db10
-	li	r4, 0;				\
00db10
-	STORE_RETURN_VALUE (r4);		\
00db10
-	STORE_RETURN_BOUNDS (r4, r4)
00db10
-
00db10
-#else
00db10
-
00db10
-# define DISCARD_BOUNDS(rBP)
00db10
-# define CHECK_BOUNDS_LOW(rBP, rLOW, rHIGH)
00db10
-# define CHECK_BOUNDS_HIGH(rVALUE, rHIGH, TWLcc)
00db10
-# define CHECK_BOUNDS_HIGH_RTN(rVALUE, rHIGH, TWLcc)
00db10
-# define CHECK_BOUNDS_BOTH(rBP, rLOW, rHIGH)
00db10
-# define CHECK_BOUNDS_BOTH_WIDE(rBP, rLOW, rHIGH, rLENGTH)
00db10
-# define CHECK_BOUNDS_BOTH_WIDE_LIT(rBP, rLOW, rHIGH, LENGTH)
00db10
-# define STORE_RETURN_VALUE(rVALUE)
00db10
-# define STORE_RETURN_BOUNDS(rLOW, rHIGH)
00db10
-
00db10
-# define RETURN_NULL_BOUNDED_POINTER li rRTN, 0
00db10
-
00db10
-#endif
00db10
diff --git a/sysdeps/powerpc/powerpc64/cell/memcpy.S b/sysdeps/powerpc/powerpc64/cell/memcpy.S
00db10
index 5c2019498af23df0..ad2b506f1e5fba74 100644
00db10
--- a/sysdeps/powerpc/powerpc64/cell/memcpy.S
00db10
+++ b/sysdeps/powerpc/powerpc64/cell/memcpy.S
00db10
@@ -17,8 +17,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 #define PREFETCH_AHEAD 6	/* no cache lines SRC prefetching ahead  */
00db10
 #define ZERO_AHEAD 4		/* no cache lines DST zeroing ahead  */
00db10
@@ -41,7 +39,7 @@
00db10
 
00db10
 .align  7
00db10
 
00db10
-EALIGN (BP_SYM (memcpy), 5, 0)
00db10
+EALIGN (memcpy, 5, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 	dcbt	0,r4		/* Prefetch ONE SRC cacheline  */
00db10
@@ -240,5 +238,5 @@ EALIGN (BP_SYM (memcpy), 5, 0)
00db10
 	stb	r0,0(r6)
00db10
 1:	blr
00db10
 
00db10
-END_GEN_TB (BP_SYM (memcpy),TB_TOCLESS)
00db10
+END_GEN_TB (memcpy,TB_TOCLESS)
00db10
 libc_hidden_builtin_def (memcpy)
00db10
diff --git a/sysdeps/powerpc/powerpc64/memcpy.S b/sysdeps/powerpc/powerpc64/memcpy.S
00db10
index 680560e3513be8e0..7652fe380d62d45c 100644
00db10
--- a/sysdeps/powerpc/powerpc64/memcpy.S
00db10
+++ b/sysdeps/powerpc/powerpc64/memcpy.S
00db10
@@ -17,8 +17,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* __ptr_t [r3] memcpy (__ptr_t dst [r3], __ptr_t src [r4], size_t len [r5]);
00db10
    Returns 'dst'.
00db10
@@ -35,7 +33,7 @@
00db10
    posible when both source and destination are doubleword aligned.
00db10
    Each case has a optimized unrolled loop.   */
00db10
 
00db10
-EALIGN (BP_SYM (memcpy), 5, 0)
00db10
+EALIGN (memcpy, 5, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
     cmpldi cr1,5,31
00db10
@@ -391,5 +389,5 @@ EALIGN (BP_SYM (memcpy), 5, 0)
00db10
     ld 31,-8(1)
00db10
     ld 3,-16(1)
00db10
     blr
00db10
-END_GEN_TB (BP_SYM (memcpy),TB_TOCLESS)
00db10
+END_GEN_TB (memcpy,TB_TOCLESS)
00db10
 libc_hidden_builtin_def (memcpy)
00db10
diff --git a/sysdeps/powerpc/powerpc64/memset.S b/sysdeps/powerpc/powerpc64/memset.S
00db10
index caba3564a136c9b1..9177dfc71800487f 100644
00db10
--- a/sysdeps/powerpc/powerpc64/memset.S
00db10
+++ b/sysdeps/powerpc/powerpc64/memset.S
00db10
@@ -18,8 +18,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 	.section	".toc","aw"
00db10
 .LC0:
00db10
@@ -34,22 +32,15 @@
00db10
    cache line (256 bits). There is a special case for setting cache lines
00db10
    to 0, to take advantage of the dcbz instruction.  */
00db10
 
00db10
-EALIGN (BP_SYM (memset), 5, 0)
00db10
+EALIGN (memset, 5, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 #define rTMP	r0
00db10
 #define rRTN	r3	/* Initial value of 1st argument.  */
00db10
-#if __BOUNDED_POINTERS__
00db10
-# define rMEMP0	r4	/* Original value of 1st arg.  */
00db10
-# define rCHR	r5	/* Char to set in each byte.  */
00db10
-# define rLEN	r6	/* Length of region to set.  */
00db10
-# define rMEMP	r10	/* Address at which we are storing.  */
00db10
-#else
00db10
-# define rMEMP0	r3	/* Original value of 1st arg.  */
00db10
-# define rCHR	r4	/* Char to set in each byte.  */
00db10
-# define rLEN	r5	/* Length of region to set.  */
00db10
-# define rMEMP	r6	/* Address at which we are storing.  */
00db10
-#endif
00db10
+#define rMEMP0	r3	/* Original value of 1st arg.  */
00db10
+#define rCHR	r4	/* Char to set in each byte.  */
00db10
+#define rLEN	r5	/* Length of region to set.  */
00db10
+#define rMEMP	r6	/* Address at which we are storing.  */
00db10
 #define rALIGN	r7	/* Number of bytes we are setting now (when aligning). */
00db10
 #define rMEMP2	r8
00db10
 
00db10
@@ -57,14 +48,6 @@ EALIGN (BP_SYM (memset), 5, 0)
00db10
 #define rCLS	r8	/* Cache line size obtained from static.  */
00db10
 #define rCLM	r9	/* Cache line size mask to check for cache alignment.  */
00db10
 L(_memset):
00db10
-#if __BOUNDED_POINTERS__
00db10
-	cmpldi	cr1, rRTN, 0
00db10
-	CHECK_BOUNDS_BOTH_WIDE (rMEMP0, rTMP, rTMP2, rLEN)
00db10
-	beq	cr1, L(b0)
00db10
-	STORE_RETURN_VALUE (rMEMP0)
00db10
-	STORE_RETURN_BOUNDS (rTMP, rTMP2)
00db10
-L(b0):
00db10
-#endif
00db10
 /* Take care of case for size <= 4.  */
00db10
 	cmpldi	cr1, rLEN, 8
00db10
 	andi.	rALIGN, rMEMP0, 7
00db10
@@ -262,27 +245,18 @@ L(medium_27f):
00db10
 L(medium_28t):
00db10
 	std	rCHR, -8(rMEMP)
00db10
 	blr
00db10
-END_GEN_TB (BP_SYM (memset),TB_TOCLESS)
00db10
+END_GEN_TB (memset,TB_TOCLESS)
00db10
 libc_hidden_builtin_def (memset)
00db10
 
00db10
 #ifndef NO_BZERO_IMPL
00db10
 /* Copied from bzero.S to prevent the linker from inserting a stub
00db10
    between bzero and memset.  */
00db10
-ENTRY (BP_SYM (__bzero))
00db10
+ENTRY (__bzero)
00db10
 	CALL_MCOUNT 3
00db10
-#if __BOUNDED_POINTERS__
00db10
-	mr	r6,r4
00db10
-	li	r5,0
00db10
-	mr	r4,r3
00db10
-	/* Tell memset that we don't want a return value.  */
00db10
-	li	r3,0
00db10
-	b	L(_memset)
00db10
-#else
00db10
 	mr	r5,r4
00db10
 	li	r4,0
00db10
 	b	L(_memset)
00db10
-#endif
00db10
-END_GEN_TB (BP_SYM (__bzero),TB_TOCLESS)
00db10
+END_GEN_TB (__bzero,TB_TOCLESS)
00db10
 
00db10
-weak_alias (BP_SYM (__bzero), BP_SYM (bzero))
00db10
+weak_alias (__bzero, bzero)
00db10
 #endif
00db10
diff --git a/sysdeps/powerpc/powerpc64/power4/memset.S b/sysdeps/powerpc/powerpc64/power4/memset.S
00db10
index 55e4013f1c7062c6..cfb731ddf49b64f4 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power4/memset.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power4/memset.S
00db10
@@ -18,8 +18,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* __ptr_t [r3] memset (__ptr_t s [r3], int c [r4], size_t n [r5]));
00db10
    Returns 's'.
00db10
@@ -29,22 +27,15 @@
00db10
    to 0, to take advantage of the dcbz instruction.  */
00db10
 
00db10
 	.machine power4
00db10
-EALIGN (BP_SYM (memset), 5, 0)
00db10
+EALIGN (memset, 5, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 #define rTMP	r0
00db10
 #define rRTN	r3	/* Initial value of 1st argument.  */
00db10
-#if __BOUNDED_POINTERS__
00db10
-# define rMEMP0	r4	/* Original value of 1st arg.  */
00db10
-# define rCHR	r5	/* Char to set in each byte.  */
00db10
-# define rLEN	r6	/* Length of region to set.  */
00db10
-# define rMEMP	r10	/* Address at which we are storing.  */
00db10
-#else
00db10
-# define rMEMP0	r3	/* Original value of 1st arg.  */
00db10
-# define rCHR	r4	/* Char to set in each byte.  */
00db10
-# define rLEN	r5	/* Length of region to set.  */
00db10
-# define rMEMP	r6	/* Address at which we are storing.  */
00db10
-#endif
00db10
+#define rMEMP0	r3	/* Original value of 1st arg.  */
00db10
+#define rCHR	r4	/* Char to set in each byte.  */
00db10
+#define rLEN	r5	/* Length of region to set.  */
00db10
+#define rMEMP	r6	/* Address at which we are storing.  */
00db10
 #define rALIGN	r7	/* Number of bytes we are setting now (when aligning). */
00db10
 #define rMEMP2	r8
00db10
 
00db10
@@ -52,14 +43,6 @@ EALIGN (BP_SYM (memset), 5, 0)
00db10
 #define rCLS	r8	/* Cache line size obtained from static.  */
00db10
 #define rCLM	r9	/* Cache line size mask to check for cache alignment.  */
00db10
 L(_memset):
00db10
-#if __BOUNDED_POINTERS__
00db10
-	cmpldi	cr1, rRTN, 0
00db10
-	CHECK_BOUNDS_BOTH_WIDE (rMEMP0, rTMP, rTMP2, rLEN)
00db10
-	beq	cr1, L(b0)
00db10
-	STORE_RETURN_VALUE (rMEMP0)
00db10
-	STORE_RETURN_BOUNDS (rTMP, rTMP2)
00db10
-L(b0):
00db10
-#endif
00db10
 /* Take care of case for size <= 4.  */
00db10
 	cmpldi	cr1, rLEN, 8
00db10
 	andi.	rALIGN, rMEMP0, 7
00db10
@@ -250,27 +233,18 @@ L(medium_27f):
00db10
 L(medium_28t):
00db10
 	std	rCHR, -8(rMEMP)
00db10
 	blr
00db10
-END_GEN_TB (BP_SYM (memset),TB_TOCLESS)
00db10
+END_GEN_TB (memset,TB_TOCLESS)
00db10
 libc_hidden_builtin_def (memset)
00db10
 
00db10
 #ifndef NO_BZERO_IMPL
00db10
 /* Copied from bzero.S to prevent the linker from inserting a stub
00db10
    between bzero and memset.  */
00db10
-ENTRY (BP_SYM (__bzero))
00db10
+ENTRY (__bzero)
00db10
 	CALL_MCOUNT 3
00db10
-#if __BOUNDED_POINTERS__
00db10
-	mr	r6,r4
00db10
-	li	r5,0
00db10
-	mr	r4,r3
00db10
-	/* Tell memset that we don't want a return value.  */
00db10
-	li	r3,0
00db10
-	b	L(_memset)
00db10
-#else
00db10
 	mr	r5,r4
00db10
 	li	r4,0
00db10
 	b	L(_memset)
00db10
-#endif
00db10
-END_GEN_TB (BP_SYM (__bzero),TB_TOCLESS)
00db10
+END_GEN_TB (__bzero,TB_TOCLESS)
00db10
 
00db10
-weak_alias (BP_SYM (__bzero), BP_SYM (bzero))
00db10
+weak_alias (__bzero, bzero)
00db10
 #endif
00db10
diff --git a/sysdeps/powerpc/powerpc64/power4/strncmp.S b/sysdeps/powerpc/powerpc64/power4/strncmp.S
00db10
index 2ce93040765b2321..412b92e585000f44 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power4/strncmp.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power4/strncmp.S
00db10
@@ -17,14 +17,12 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* See strlen.s for comments on how the end-of-string testing works.  */
00db10
 
00db10
 /* int [r3] strncmp (const char *s1 [r3], const char *s2 [r4], size_t size [r5])  */
00db10
 
00db10
-EALIGN (BP_SYM(strncmp), 4, 0)
00db10
+EALIGN (strncmp, 4, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 #define rTMP2	r0
00db10
@@ -32,9 +30,6 @@ EALIGN (BP_SYM(strncmp), 4, 0)
00db10
 #define rSTR1	r3	/* first string arg */
00db10
 #define rSTR2	r4	/* second string arg */
00db10
 #define rN	r5	/* max string length */
00db10
-/* Note:  The Bounded pointer support in this code is broken.  This code
00db10
-   was inherited from PPC32 and that support was never completed.
00db10
-   Current PPC gcc does not support -fbounds-check or -fbounded-pointers.  */
00db10
 #define rWORD1	r6	/* current word in s1 */
00db10
 #define rWORD2	r7	/* current word in s2 */
00db10
 #define rWORD3  r10
00db10
@@ -222,5 +217,5 @@ L(u4):	sub	rRTN, rWORD1, rWORD2
00db10
 L(ux):
00db10
 	li	rRTN, 0
00db10
 	blr
00db10
-END (BP_SYM (strncmp))
00db10
+END (strncmp)
00db10
 libc_hidden_builtin_def (strncmp)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power6/memset.S b/sysdeps/powerpc/powerpc64/power6/memset.S
00db10
index d2a8d3403f6058ce..b28d285232bbd595 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power6/memset.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power6/memset.S
00db10
@@ -18,8 +18,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* __ptr_t [r3] memset (__ptr_t s [r3], int c [r4], size_t n [r5]));
00db10
    Returns 's'.
00db10
@@ -29,34 +27,19 @@
00db10
    to 0, to take advantage of the dcbz instruction.  */
00db10
 
00db10
 	.machine power6
00db10
-EALIGN (BP_SYM (memset), 7, 0)
00db10
+EALIGN (memset, 7, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 #define rTMP	r0
00db10
 #define rRTN	r3	/* Initial value of 1st argument.  */
00db10
-#if __BOUNDED_POINTERS__
00db10
-# define rMEMP0	r4	/* Original value of 1st arg.  */
00db10
-# define rCHR	r5	/* Char to set in each byte.  */
00db10
-# define rLEN	r6	/* Length of region to set.  */
00db10
-# define rMEMP	r10	/* Address at which we are storing.  */
00db10
-#else
00db10
-# define rMEMP0	r3	/* Original value of 1st arg.  */
00db10
-# define rCHR	r4	/* Char to set in each byte.  */
00db10
-# define rLEN	r5	/* Length of region to set.  */
00db10
-# define rMEMP	r6	/* Address at which we are storing.  */
00db10
-#endif
00db10
+#define rMEMP0	r3	/* Original value of 1st arg.  */
00db10
+#define rCHR	r4	/* Char to set in each byte.  */
00db10
+#define rLEN	r5	/* Length of region to set.  */
00db10
+#define rMEMP	r6	/* Address at which we are storing.  */
00db10
 #define rALIGN	r7	/* Number of bytes we are setting now (when aligning). */
00db10
 #define rMEMP2	r8
00db10
 #define rMEMP3	r9	/* Alt mem pointer.  */
00db10
 L(_memset):
00db10
-#if __BOUNDED_POINTERS__
00db10
-	cmpldi	cr1, rRTN, 0
00db10
-	CHECK_BOUNDS_BOTH_WIDE (rMEMP0, rTMP, rTMP2, rLEN)
00db10
-	beq	cr1, L(b0)
00db10
-	STORE_RETURN_VALUE (rMEMP0)
00db10
-	STORE_RETURN_BOUNDS (rTMP, rTMP2)
00db10
-L(b0):
00db10
-#endif
00db10
 /* Take care of case for size <= 4.  */
00db10
 	cmpldi	cr1, rLEN, 8
00db10
 	andi.	rALIGN, rMEMP0, 7
00db10
@@ -394,27 +377,18 @@ L(medium_27f):
00db10
 L(medium_28t):
00db10
 	std	rCHR, -8(rMEMP)
00db10
 	blr
00db10
-END_GEN_TB (BP_SYM (memset),TB_TOCLESS)
00db10
+END_GEN_TB (memset,TB_TOCLESS)
00db10
 libc_hidden_builtin_def (memset)
00db10
 
00db10
 #ifndef NO_BZERO_IMPL
00db10
 /* Copied from bzero.S to prevent the linker from inserting a stub
00db10
    between bzero and memset.  */
00db10
-ENTRY (BP_SYM (__bzero))
00db10
+ENTRY (__bzero)
00db10
 	CALL_MCOUNT 3
00db10
-#if __BOUNDED_POINTERS__
00db10
-	mr	r6,r4
00db10
-	li	r5,0
00db10
-	mr	r4,r3
00db10
-	/* Tell memset that we don't want a return value.  */
00db10
-	li	r3,0
00db10
-	b	L(_memset)
00db10
-#else
00db10
 	mr	r5,r4
00db10
 	li	r4,0
00db10
 	b	L(_memset)
00db10
-#endif
00db10
-END_GEN_TB (BP_SYM (__bzero),TB_TOCLESS)
00db10
+END_GEN_TB (__bzero,TB_TOCLESS)
00db10
 
00db10
-weak_alias (BP_SYM (__bzero), BP_SYM (bzero))
00db10
+weak_alias (__bzero, bzero)
00db10
 #endif
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/mempcpy.S b/sysdeps/powerpc/powerpc64/power7/mempcpy.S
00db10
index ca524b584f1bcf92..17db88f65a87a198 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/mempcpy.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/mempcpy.S
00db10
@@ -18,15 +18,13 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 
00db10
 /* __ptr_t [r3] __mempcpy (__ptr_t dst [r3], __ptr_t src [r4], size_t len [r5]);
00db10
     Returns 'dst' + 'len'.  */
00db10
 
00db10
 	.machine  power7
00db10
-EALIGN (BP_SYM (__mempcpy), 5, 0)
00db10
+EALIGN (__mempcpy, 5, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 	cmpldi	cr1,5,31
00db10
@@ -465,7 +463,7 @@ L(end_unaligned_loop):
00db10
 	add	3,3,5
00db10
 	blr
00db10
 
00db10
-END_GEN_TB (BP_SYM (__mempcpy),TB_TOCLESS)
00db10
-libc_hidden_def (BP_SYM (__mempcpy))
00db10
-weak_alias (BP_SYM (__mempcpy), BP_SYM (mempcpy))
00db10
+END_GEN_TB (__mempcpy,TB_TOCLESS)
00db10
+libc_hidden_def (__mempcpy)
00db10
+weak_alias (__mempcpy, mempcpy)
00db10
 libc_hidden_builtin_def (mempcpy)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/memset.S b/sysdeps/powerpc/powerpc64/power7/memset.S
00db10
index 0f7d03e19dd5d2b8..73c129a4c1f64dcd 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/memset.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/memset.S
00db10
@@ -18,14 +18,12 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* __ptr_t [r3] memset (__ptr_t s [r3], int c [r4], size_t n [r5]));
00db10
    Returns 's'.  */
00db10
 
00db10
 	.machine power7
00db10
-EALIGN (BP_SYM (memset), 5, 0)
00db10
+EALIGN (memset, 5, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 L(_memset):
00db10
@@ -382,18 +380,18 @@ L(small):
00db10
 	stw	4,4(10)
00db10
 	blr
00db10
 
00db10
-END_GEN_TB (BP_SYM (memset),TB_TOCLESS)
00db10
+END_GEN_TB (memset,TB_TOCLESS)
00db10
 libc_hidden_builtin_def (memset)
00db10
 
00db10
 #ifndef NO_BZERO_IMPL
00db10
 /* Copied from bzero.S to prevent the linker from inserting a stub
00db10
    between bzero and memset.  */
00db10
-ENTRY (BP_SYM (__bzero))
00db10
+ENTRY (__bzero)
00db10
 	CALL_MCOUNT 3
00db10
 	mr	r5,r4
00db10
 	li	r4,0
00db10
 	b	L(_memset)
00db10
-END_GEN_TB (BP_SYM (__bzero),TB_TOCLESS)
00db10
+END_GEN_TB (__bzero,TB_TOCLESS)
00db10
 
00db10
-weak_alias (BP_SYM (__bzero), BP_SYM (bzero))
00db10
+weak_alias (__bzero, bzero)
00db10
 #endif
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/rawmemchr.S b/sysdeps/powerpc/powerpc64/power7/rawmemchr.S
00db10
index 2eaaf2fc13004acc..17d79a10240dcd26 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/rawmemchr.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/rawmemchr.S
00db10
@@ -18,12 +18,10 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* int [r3] rawmemchr (void *s [r3], int c [r4])  */
00db10
 	.machine  power7
00db10
-ENTRY (BP_SYM(__rawmemchr))
00db10
+ENTRY (__rawmemchr)
00db10
 	CALL_MCOUNT 2
00db10
 	dcbt	0,r3
00db10
 	clrrdi	r8,r3,3	      /* Align the address to doubleword boundary.  */
00db10
@@ -108,6 +106,6 @@ L(done):
00db10
 	srdi	r0,r0,3	      /* Convert leading zeros to bytes.  */
00db10
 	add	r3,r8,r0      /* Return address of the matching char.  */
00db10
 	blr
00db10
-END (BP_SYM (__rawmemchr))
00db10
+END (__rawmemchr)
00db10
 weak_alias (__rawmemchr,rawmemchr)
00db10
 libc_hidden_builtin_def (__rawmemchr)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/strcasecmp.S b/sysdeps/powerpc/powerpc64/power7/strcasecmp.S
00db10
index 47e2fefe59c59900..65c343e52493440c 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/strcasecmp.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/strcasecmp.S
00db10
@@ -17,8 +17,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 #include <locale-defines.h>
00db10
 
00db10
 /* int [r3] strcasecmp (const char *s1 [r3], const char *s2 [r4] )
00db10
@@ -33,7 +31,7 @@
00db10
 # define STRCMP   strcasecmp
00db10
 #endif
00db10
 
00db10
-ENTRY (BP_SYM (__STRCMP))
00db10
+ENTRY (__STRCMP)
00db10
 	CALL_MCOUNT 2
00db10
 
00db10
 #define rRTN	r3	/* Return value */
00db10
@@ -118,7 +116,7 @@ L(done):
00db10
 	subf	r0, rLWR2, rLWR1
00db10
 	extsw	rRTN, r0
00db10
 	blr
00db10
-END (BP_SYM (__STRCMP))
00db10
+END (__STRCMP)
00db10
 
00db10
-weak_alias (BP_SYM (__STRCMP), BP_SYM (STRCMP))
00db10
+weak_alias (__STRCMP, STRCMP)
00db10
 libc_hidden_builtin_def (__STRCMP)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/strchr.S b/sysdeps/powerpc/powerpc64/power7/strchr.S
00db10
index f840dfc8384b65db..ebba8ecad0045a75 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/strchr.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/strchr.S
00db10
@@ -18,12 +18,10 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* int [r3] strchr (char *s [r3], int c [r4])  */
00db10
 	.machine  power7
00db10
-ENTRY (BP_SYM(strchr))
00db10
+ENTRY (strchr)
00db10
 	CALL_MCOUNT 2
00db10
 	dcbt	0,r3
00db10
 	clrrdi	r8,r3,3	      /* Align the address to doubleword boundary.  */
00db10
@@ -223,6 +221,6 @@ L(done_null):
00db10
 	srdi	r0,r0,3	      /* Convert leading zeros to bytes.  */
00db10
 	add	r3,r8,r0      /* Return address of the matching null byte.  */
00db10
 	blr
00db10
-END (BP_SYM (strchr))
00db10
-weak_alias (BP_SYM (strchr), BP_SYM (index))
00db10
+END (strchr)
00db10
+weak_alias (strchr, index)
00db10
 libc_hidden_builtin_def (strchr)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/strchrnul.S b/sysdeps/powerpc/powerpc64/power7/strchrnul.S
00db10
index 388d4e91a70dbf7a..8d34dc7d8d8450ae 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/strchrnul.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/strchrnul.S
00db10
@@ -18,12 +18,10 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* int [r3] strchrnul (char *s [r3], int c [r4])  */
00db10
 	.machine  power7
00db10
-ENTRY (BP_SYM(__strchrnul))
00db10
+ENTRY (__strchrnul)
00db10
 	CALL_MCOUNT 2
00db10
 	dcbt	0,r3
00db10
 	clrrdi	r8,r3,3	      /* Align the address to doubleword boundary.  */
00db10
@@ -125,6 +123,6 @@ L(done):
00db10
 	srdi	r0,r0,3	      /* Convert leading zeros to bytes.  */
00db10
 	add	r3,r8,r0      /* Return address of matching c/null byte.  */
00db10
 	blr
00db10
-END (BP_SYM (__strchrnul))
00db10
+END (__strchrnul)
00db10
 weak_alias (__strchrnul,strchrnul)
00db10
 libc_hidden_builtin_def (__strchrnul)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/strlen.S b/sysdeps/powerpc/powerpc64/power7/strlen.S
00db10
index 39bca5ae288bc098..88b9d921ccbaf403 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/strlen.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/strlen.S
00db10
@@ -18,12 +18,10 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* int [r3] strlen (char *s [r3])  */
00db10
 	.machine  power7
00db10
-ENTRY (BP_SYM (strlen))
00db10
+ENTRY (strlen)
00db10
 	CALL_MCOUNT 1
00db10
 	dcbt	0,r3
00db10
 	clrrdi	r4,r3,3	      /* Align the address to doubleword boundary.  */
00db10
@@ -101,5 +99,5 @@ L(done):
00db10
 	srdi	r0,r0,3	      /* Convert leading/trailing zeros to bytes.  */
00db10
 	add	r3,r5,r0      /* Compute final length.  */
00db10
 	blr
00db10
-END (BP_SYM (strlen))
00db10
+END (strlen)
00db10
 libc_hidden_builtin_def (strlen)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/strncmp.S b/sysdeps/powerpc/powerpc64/power7/strncmp.S
00db10
index d356bffab448a80e..349f5c6e4182f364 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/strncmp.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/strncmp.S
00db10
@@ -17,8 +17,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* See strlen.s for comments on how the end-of-string testing works.  */
00db10
 
00db10
@@ -26,7 +24,7 @@
00db10
 		     const char *s2 [r4],
00db10
 		     size_t size [r5])  */
00db10
 
00db10
-EALIGN (BP_SYM(strncmp),5,0)
00db10
+EALIGN (strncmp,5,0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 #define rTMP2	r0
00db10
@@ -34,9 +32,6 @@ EALIGN (BP_SYM(strncmp),5,0)
00db10
 #define rSTR1	r3	/* first string arg */
00db10
 #define rSTR2	r4	/* second string arg */
00db10
 #define rN	r5	/* max string length */
00db10
-/* Note:  The Bounded pointer support in this code is broken.  This code
00db10
-   was inherited from PPC32 and that support was never completed.
00db10
-   Current PPC gcc does not support -fbounds-check or -fbounded-pointers.  */
00db10
 #define rWORD1	r6	/* current word in s1 */
00db10
 #define rWORD2	r7	/* current word in s2 */
00db10
 #define rWORD3  r10
00db10
@@ -224,5 +219,5 @@ L(u4):	sub	rRTN,rWORD1,rWORD2
00db10
 L(ux):
00db10
 	li	rRTN,0
00db10
 	blr
00db10
-END (BP_SYM (strncmp))
00db10
+END (strncmp)
00db10
 libc_hidden_builtin_def (strncmp)
00db10
diff --git a/sysdeps/powerpc/powerpc64/power7/strnlen.S b/sysdeps/powerpc/powerpc64/power7/strnlen.S
00db10
index 0a440258fa67fccb..a68a839a032db21e 100644
00db10
--- a/sysdeps/powerpc/powerpc64/power7/strnlen.S
00db10
+++ b/sysdeps/powerpc/powerpc64/power7/strnlen.S
00db10
@@ -18,12 +18,10 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* int [r3] strnlen (char *s [r3], int size [r4])  */
00db10
 	.machine  power7
00db10
-ENTRY (BP_SYM (__strnlen))
00db10
+ENTRY (__strnlen)
00db10
 	CALL_MCOUNT 2
00db10
 	dcbt	0,r3
00db10
 	clrrdi	r8,r3,3
00db10
@@ -174,6 +172,6 @@ L(loop_small):
00db10
 	mr	r3,r4
00db10
 	blr
00db10
 
00db10
-END (BP_SYM (__strnlen))
00db10
-weak_alias (BP_SYM (__strnlen), BP_SYM(strnlen))
00db10
+END (__strnlen)
00db10
+weak_alias (__strnlen, strnlen)
00db10
 libc_hidden_builtin_def (strnlen)
00db10
diff --git a/sysdeps/powerpc/powerpc64/setjmp-common.S b/sysdeps/powerpc/powerpc64/setjmp-common.S
00db10
index e8c6e0adfdc88f93..5b1fdcdedd6963c1 100644
00db10
--- a/sysdeps/powerpc/powerpc64/setjmp-common.S
00db10
+++ b/sysdeps/powerpc/powerpc64/setjmp-common.S
00db10
@@ -23,8 +23,6 @@
00db10
 #else
00db10
 #include <jmpbuf-offsets.h>
00db10
 #endif
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 #ifndef __NO_VMX__
00db10
 	.section	".toc","aw"
00db10
@@ -73,7 +71,6 @@ libc_hidden_def (_setjmp)
00db10
 ENTRY (__sigsetjmp)
00db10
 	CALL_MCOUNT 2
00db10
 JUMPTARGET(GLUE(__sigsetjmp,_ent)):
00db10
-	CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
00db10
 #ifdef PTR_MANGLE
00db10
 	mr   r5, r1
00db10
 	PTR_MANGLE (r5, r6)
00db10
diff --git a/sysdeps/powerpc/powerpc64/start.S b/sysdeps/powerpc/powerpc64/start.S
00db10
index aadaf0fae862b017..d69896f7ebb43bb9 100644
00db10
--- a/sysdeps/powerpc/powerpc64/start.S
00db10
+++ b/sysdeps/powerpc/powerpc64/start.S
00db10
@@ -35,7 +35,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include "bp-sym.h"
00db10
 
00db10
 /* We do not want .eh_frame info for crt1.o since crt1.o is linked
00db10
    before crtbegin.o, the file defining __EH_FRAME_BEGIN__.  */
00db10
@@ -54,7 +53,7 @@
00db10
 L(start_addresses):
00db10
 	.quad	0 /* was _SDA_BASE_  but not in 64-bit ABI*/
00db10
 /*     function descriptors so don't need JUMPTARGET */
00db10
-	.quad	BP_SYM(main)
00db10
+	.quad	main
00db10
 	.quad 	__libc_csu_init
00db10
 	.quad 	__libc_csu_fini
00db10
 
00db10
@@ -79,7 +78,7 @@ ENTRY(_start)
00db10
 	ld	r8,.L01(r2)
00db10
 
00db10
  /* and continue in libc-start, in glibc.  */
00db10
-	b	JUMPTARGET(BP_SYM(__libc_start_main))
00db10
+	b	JUMPTARGET(__libc_start_main)
00db10
 /* The linker needs this nop to recognize that it's OK to call via a
00db10
    TOC adjusting stub.  */
00db10
 	nop
00db10
diff --git a/sysdeps/powerpc/powerpc64/strchr.S b/sysdeps/powerpc/powerpc64/strchr.S
00db10
index 0df4c3d8a303167c..72858903342d35ec 100644
00db10
--- a/sysdeps/powerpc/powerpc64/strchr.S
00db10
+++ b/sysdeps/powerpc/powerpc64/strchr.S
00db10
@@ -17,32 +17,19 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* See strlen.s for comments on how this works.  */
00db10
 
00db10
 /* char * [r3] strchr (const char *s [r3] , int c [r4] )  */
00db10
 
00db10
-ENTRY (BP_SYM (strchr))
00db10
+ENTRY (strchr)
00db10
 	CALL_MCOUNT 2
00db10
 
00db10
 #define rTMP1	r0
00db10
 #define rRTN	r3	/* outgoing result */
00db10
-/* Note:  The Bounded pointer support in this code is broken.  This code
00db10
-   was inherited from PPC32 and that support was never completed.
00db10
-   Currently PPC gcc does not support -fbounds-check or -fbounded-pointers.
00db10
-   These artifacts are left in the code as a reminder in case we need
00db10
-   bounded pointer support in the future.  */
00db10
-#if __BOUNDED_POINTERS__
00db10
-# define rSTR	r4
00db10
-# define rCHR	r5	/* byte we're looking for, spread over the whole word */
00db10
-# define rWORD	r8	/* the current word */
00db10
-#else
00db10
-# define rSTR	r8	/* current word pointer */
00db10
-# define rCHR	r4	/* byte we're looking for, spread over the whole word */
00db10
-# define rWORD	r5	/* the current word */
00db10
-#endif
00db10
+#define rSTR	r8	/* current word pointer */
00db10
+#define rCHR	r4	/* byte we're looking for, spread over the whole word */
00db10
+#define rWORD	r5	/* the current word */
00db10
 #define rCLZB	rCHR	/* leading zero byte count */
00db10
 #define rFEFE	r6	/* constant 0xfefefefefefefeff (-0x0101010101010101) */
00db10
 #define r7F7F	r7	/* constant 0x7f7f7f7f7f7f7f7f */
00db10
@@ -53,9 +40,6 @@ ENTRY (BP_SYM (strchr))
00db10
 #define rTMP4	rIGN
00db10
 #define rTMP5	rMASK
00db10
 
00db10
-	CHECK_BOUNDS_LOW (rSTR, rTMP1, rTMP2)
00db10
-	STORE_RETURN_BOUNDS (rTMP1, rTMP2)
00db10
-
00db10
 	dcbt	0,rRTN
00db10
 	insrdi	rCHR, rCHR, 8, 48
00db10
 	li	rMASK, -1
00db10
@@ -107,7 +91,6 @@ L(loopentry):
00db10
    zero byte, in which case we return a match.  */
00db10
 	and.	rTMP5, rTMP1, rTMP2
00db10
 	li	rRTN, 0
00db10
-	STORE_RETURN_VALUE (rSTR)
00db10
 	beqlr
00db10
 /* At this point:
00db10
    rTMP5 bytes are 0x80 for each match of c, 0 otherwise.
00db10
@@ -142,8 +125,6 @@ L(loopentry):
00db10
 #endif
00db10
 	srdi	rCLZB, rCLZB, 3
00db10
 	add	rRTN, rSTR, rCLZB
00db10
-	CHECK_BOUNDS_HIGH_RTN (rSTR, rTMP2, tdlge)
00db10
-	STORE_RETURN_VALUE (rSTR)
00db10
 	blr
00db10
 
00db10
 L(foundit):
00db10
@@ -163,10 +144,8 @@ L(foundit):
00db10
 	srdi	rCLZB, rCLZB, 3
00db10
 #endif
00db10
 	add	rRTN, rSTR, rCLZB
00db10
-	CHECK_BOUNDS_HIGH_RTN (rSTR, rTMP2, tdlge)
00db10
-	STORE_RETURN_VALUE (rSTR)
00db10
 	blr
00db10
-END (BP_SYM (strchr))
00db10
+END (strchr)
00db10
 
00db10
-weak_alias (BP_SYM (strchr), BP_SYM (index))
00db10
+weak_alias (strchr, index)
00db10
 libc_hidden_builtin_def (strchr)
00db10
diff --git a/sysdeps/powerpc/powerpc64/strcmp.S b/sysdeps/powerpc/powerpc64/strcmp.S
00db10
index c00774d5fb432ce8..6cfe53630b034622 100644
00db10
--- a/sysdeps/powerpc/powerpc64/strcmp.S
00db10
+++ b/sysdeps/powerpc/powerpc64/strcmp.S
00db10
@@ -17,29 +17,18 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* See strlen.s for comments on how the end-of-string testing works.  */
00db10
 
00db10
 /* int [r3] strcmp (const char *s1 [r3], const char *s2 [r4])  */
00db10
 
00db10
-EALIGN (BP_SYM(strcmp), 4, 0)
00db10
+EALIGN (strcmp, 4, 0)
00db10
 	CALL_MCOUNT 2
00db10
 
00db10
 #define rTMP2	r0
00db10
 #define rRTN	r3
00db10
 #define rSTR1	r3	/* first string arg */
00db10
 #define rSTR2	r4	/* second string arg */
00db10
-/* Note:  The Bounded pointer support in this code is broken.  This code
00db10
-   was inherited from PPC32 and that support was never completed.
00db10
-   Current PPC gcc does not support -fbounds-check or -fbounded-pointers.
00db10
-   These artifacts are left in the code as a reminder in case we need
00db10
-   bounded pointer support in the future.  */
00db10
-#if __BOUNDED_POINTERS__
00db10
-# define rHIGH1	r11
00db10
-# define rHIGH2 r12
00db10
-#endif
00db10
 #define rWORD1	r5	/* current word in s1 */
00db10
 #define rWORD2	r6	/* current word in s2 */
00db10
 #define rFEFE	r7	/* constant 0xfefefefefefefeff (-0x0101010101010101) */
00db10
@@ -48,9 +37,6 @@ EALIGN (BP_SYM(strcmp), 4, 0)
00db10
 #define rBITDIF	r10	/* bits that differ in s1 & s2 words */
00db10
 #define rTMP	r11
00db10
 
00db10
-	CHECK_BOUNDS_LOW (rSTR1, rTMP, rHIGH1)
00db10
-	CHECK_BOUNDS_LOW (rSTR2, rTMP, rHIGH2)
00db10
-
00db10
 	dcbt	0,rSTR1
00db10
 	or	rTMP, rSTR2, rSTR1
00db10
 	dcbt	0,rSTR2
00db10
@@ -146,7 +132,6 @@ L(endstring):
00db10
 	blr
00db10
 L(equal):
00db10
 	li	rRTN, 0
00db10
-	/* GKM FIXME: check high bounds.  */
00db10
 	blr
00db10
 
00db10
 L(different):
00db10
@@ -184,11 +169,9 @@ L(u1):	cmpwi	cr1, rWORD1, 0
00db10
 	cmpd	rWORD1, rWORD2
00db10
 	bne+	cr1, L(u0)
00db10
 L(u3):	sub	rRTN, rWORD1, rWORD2
00db10
-	/* GKM FIXME: check high bounds.  */
00db10
 	blr
00db10
 L(u4):	lbz	rWORD1, -1(rSTR1)
00db10
 	sub	rRTN, rWORD1, rWORD2
00db10
-	/* GKM FIXME: check high bounds.  */
00db10
 	blr
00db10
-END (BP_SYM (strcmp))
00db10
+END (strcmp)
00db10
 libc_hidden_builtin_def (strcmp)
00db10
diff --git a/sysdeps/powerpc/powerpc64/strlen.S b/sysdeps/powerpc/powerpc64/strlen.S
00db10
index 47032aa1b6d457f1..ab1e60cff1a2ec47 100644
00db10
--- a/sysdeps/powerpc/powerpc64/strlen.S
00db10
+++ b/sysdeps/powerpc/powerpc64/strlen.S
00db10
@@ -17,8 +17,6 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* The algorithm here uses the following techniques:
00db10
 
00db10
@@ -82,7 +80,7 @@
00db10
 
00db10
 /* int [r3] strlen (char *s [r3])  */
00db10
 
00db10
-ENTRY (BP_SYM (strlen))
00db10
+ENTRY (strlen)
00db10
 	CALL_MCOUNT 1
00db10
 
00db10
 #define rTMP4	r0
00db10
@@ -99,13 +97,6 @@ ENTRY (BP_SYM (strlen))
00db10
 #define rTMP2	r11
00db10
 #define rTMP3	r12
00db10
 
00db10
-/* Note:  The Bounded pointer support in this code is broken.  This code
00db10
-   was inherited from PPC32 and that support was never completed.
00db10
-   Current PPC gcc does not support -fbounds-check or -fbounded-pointers.
00db10
-   These artifacts are left in the code as a reminder in case we need
00db10
-   bounded pointer support in the future.  */
00db10
-	CHECK_BOUNDS_LOW (rRTN, rTMP1, rTMP2)
00db10
-
00db10
 	dcbt	0,rRTN
00db10
 	clrrdi	rSTR, rRTN, 3
00db10
 	lis	r7F7F, 0x7f7f
00db10
@@ -180,7 +171,6 @@ L(done0):
00db10
 	subf	rTMP1, rRTN, rSTR
00db10
 	srdi	rTMP3, rTMP3, 3
00db10
 	add	rRTN, rTMP1, rTMP3
00db10
-	/* GKM FIXME: check high bound.  */
00db10
 	blr
00db10
 #else
00db10
 
00db10
@@ -205,5 +195,5 @@ L(done1):
00db10
 	blr
00db10
 #endif
00db10
 
00db10
-END (BP_SYM (strlen))
00db10
+END (strlen)
00db10
 libc_hidden_builtin_def (strlen)
00db10
diff --git a/sysdeps/powerpc/powerpc64/strncmp.S b/sysdeps/powerpc/powerpc64/strncmp.S
00db10
index 18c73f4f64f6d98f..89a7d6f3ea6c138c 100644
00db10
--- a/sysdeps/powerpc/powerpc64/strncmp.S
00db10
+++ b/sysdeps/powerpc/powerpc64/strncmp.S
00db10
@@ -17,14 +17,12 @@
00db10
    <http://www.gnu.org/licenses/>.  */
00db10
 
00db10
 #include <sysdep.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 /* See strlen.s for comments on how the end-of-string testing works.  */
00db10
 
00db10
 /* int [r3] strncmp (const char *s1 [r3], const char *s2 [r4], size_t size [r5])  */
00db10
 
00db10
-EALIGN (BP_SYM(strncmp), 4, 0)
00db10
+EALIGN (strncmp, 4, 0)
00db10
 	CALL_MCOUNT 3
00db10
 
00db10
 #define rTMP2	r0
00db10
@@ -32,9 +30,6 @@ EALIGN (BP_SYM(strncmp), 4, 0)
00db10
 #define rSTR1	r3	/* first string arg */
00db10
 #define rSTR2	r4	/* second string arg */
00db10
 #define rN	r5	/* max string length */
00db10
-/* Note:  The Bounded pointer support in this code is broken.  This code
00db10
-   was inherited from PPC32 and that support was never completed.
00db10
-   Current PPC gcc does not support -fbounds-check or -fbounded-pointers.  */
00db10
 #define rWORD1	r6	/* current word in s1 */
00db10
 #define rWORD2	r7	/* current word in s2 */
00db10
 #define rFEFE	r8	/* constant 0xfefefefefefefeff (-0x0101010101010101) */
00db10
@@ -207,5 +202,5 @@ L(u1):
00db10
 L(u2):	lbzu	rWORD1, -1(rSTR1)	
00db10
 L(u3):	sub	rRTN, rWORD1, rWORD2
00db10
 	blr
00db10
-END (BP_SYM (strncmp))
00db10
+END (strncmp)
00db10
 libc_hidden_builtin_def (strncmp)
00db10
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S
00db10
index 3ea61af161584a58..562f74702b7dfbd8 100644
00db10
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S
00db10
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S
00db10
@@ -19,17 +19,14 @@
00db10
 #include <sysdep.h>
00db10
 #define _ERRNO_H	1
00db10
 #include <bits/errno.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 	.comm	__curbrk,8,8
00db10
 	.section	".toc","aw"
00db10
 .LC__curbrk:
00db10
 	.tc __curbrk[TC],__curbrk
00db10
 	.section ".text"
00db10
-ENTRY (BP_SYM (__brk))
00db10
+ENTRY (__brk)
00db10
 	CALL_MCOUNT 1
00db10
-	DISCARD_BOUNDS (r3)	/* the bounds are meaningless, so toss 'em.  */
00db10
 
00db10
 	std	r3,-8(r1)
00db10
 	DO_CALL(SYS_ify(brk))
00db10
@@ -41,6 +38,6 @@ ENTRY (BP_SYM (__brk))
00db10
 	blelr+
00db10
 	li      r3,ENOMEM
00db10
 	TAIL_CALL_SYSCALL_ERROR
00db10
-END (BP_SYM (__brk))
00db10
+END (__brk)
00db10
 
00db10
-weak_alias (BP_SYM (__brk), BP_SYM (brk))
00db10
+weak_alias (__brk, brk)
00db10
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S
00db10
index e3fa5f55b92834b9..87c0797058558288 100644
00db10
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S
00db10
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S
00db10
@@ -19,8 +19,6 @@
00db10
 #include <sysdep.h>
00db10
 #define _ERRNO_H	1
00db10
 #include <bits/errno.h>
00db10
-#include <bp-sym.h>
00db10
-#include <bp-asm.h>
00db10
 
00db10
 #define CLONE_VM	0x00000100
00db10
 #define CLONE_THREAD	0x00010000
00db10
@@ -33,11 +31,8 @@
00db10
                   int flags [r5], void *arg [r6], void *parent_tid [r7],
00db10
                   void *tls [r8], void *child_tid [r9]); */
00db10
 
00db10
-ENTRY (BP_SYM (__clone))
00db10
+ENTRY (__clone)
00db10
 	CALL_MCOUNT 7
00db10
-	/* GKM FIXME: add bounds checks, where sensible.  */
00db10
-	DISCARD_BOUNDS (r4)
00db10
-	DISCARD_BOUNDS (r6)
00db10
 
00db10
 	/* Check for child_stack == NULL || fn == NULL.  */
00db10
 	cmpdi	cr0,r4,0
00db10
@@ -142,6 +137,6 @@ L(parent):
00db10
 	cfi_restore(r31)
00db10
 	PSEUDO_RET
00db10
 
00db10
-END (BP_SYM (__clone))
00db10
+END (__clone)
00db10
 
00db10
-weak_alias (BP_SYM (__clone), BP_SYM (clone))
00db10
+weak_alias (__clone, clone)