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

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