|
|
c6d234 |
commit b5510883226aede4e54f9271bbfa9d5585038bde
|
|
|
c6d234 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
c6d234 |
Date: Thu Feb 28 21:23:47 2013 +0000
|
|
|
c6d234 |
|
|
|
c6d234 |
Remove powerpc32 bounded-pointers code.
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflicts:
|
|
|
c6d234 |
sysdeps/powerpc/powerpc32/bp-asm.h
|
|
|
c6d234 |
(Copyright header change; file removed manually.)
|
|
|
c6d234 |
sysdeps/powerpc/powerpc32/power7/memcmp.S
|
|
|
c6d234 |
sysdeps/powerpc/powerpc32/power7/strnlen.S
|
|
|
c6d234 |
sysdeps/powerpc/powerpc32/strlen.S
|
|
|
c6d234 |
(Conflicts due to earlier string function backports.)
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/405/memcmp.S b/ports/sysdeps/powerpc/powerpc32/405/memcmp.S
|
|
|
c6d234 |
index b9628b194160caae..b28877e211fa2b26 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/405/memcmp.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/405/memcmp.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* memcmp
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -32,7 +30,7 @@
|
|
|
c6d234 |
return src1 > src2, src1 < src2 or src1 = src2.
|
|
|
c6d234 |
If src1 = src2 and no null, repeat. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (memcmp), 5, 0)
|
|
|
c6d234 |
+EALIGN (memcmp, 5, 0)
|
|
|
c6d234 |
srwi. r6,r5,5
|
|
|
c6d234 |
beq L(preword2_count_loop)
|
|
|
c6d234 |
mtctr r6
|
|
|
c6d234 |
@@ -125,6 +123,6 @@ L(st2):
|
|
|
c6d234 |
blt cr5,L(l_r)
|
|
|
c6d234 |
addi r3,r0,-1
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memcmp))
|
|
|
c6d234 |
+END (memcmp)
|
|
|
c6d234 |
libc_hidden_builtin_def (memcmp)
|
|
|
c6d234 |
weak_alias (memcmp,bcmp)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/405/memcpy.S b/ports/sysdeps/powerpc/powerpc32/405/memcpy.S
|
|
|
c6d234 |
index 61025cf818093f37..56fc3a8139feda9b 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/405/memcpy.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/405/memcpy.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* memcpy
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -33,7 +31,7 @@
|
|
|
c6d234 |
If 32 or more bytes to copy we use 32 byte copy loop.
|
|
|
c6d234 |
Finaly we copy 0-31 extra bytes. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (memcpy, 5, 0)
|
|
|
c6d234 |
/* Check if bytes to copy are greater than 256 and if
|
|
|
c6d234 |
source and destination are unaligned */
|
|
|
c6d234 |
cmpwi r5,0x0100
|
|
|
c6d234 |
@@ -128,5 +126,5 @@ L(word4_count_loop_no_dcbt): /* Copy 32 bytes at a time */
|
|
|
c6d234 |
L(end_memcpy):
|
|
|
c6d234 |
mr r3,r0
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memcpy))
|
|
|
c6d234 |
+END (memcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (memcpy)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/405/memset.S b/ports/sysdeps/powerpc/powerpc32/405/memset.S
|
|
|
c6d234 |
index c2ee6c593cf9e80f..bf3edaa92df78928 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/405/memset.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/405/memset.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* memset
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -37,7 +35,7 @@
|
|
|
c6d234 |
If 16 or more words to set we use 16 word copy loop.
|
|
|
c6d234 |
Finaly we set 0-15 extra bytes with string store. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (memset), 5, 0)
|
|
|
c6d234 |
+EALIGN (memset, 5, 0)
|
|
|
c6d234 |
rlwinm r11,r4,0,24,31
|
|
|
c6d234 |
rlwimi r11,r4,8,16,23
|
|
|
c6d234 |
rlwimi r11,r11,16,0,15
|
|
|
c6d234 |
@@ -150,5 +148,5 @@ L(postword2_count_loop):
|
|
|
c6d234 |
mtxer r7
|
|
|
c6d234 |
stswx r8,0,r3
|
|
|
c6d234 |
b L(end_memset)
|
|
|
c6d234 |
-END (BP_SYM (memset))
|
|
|
c6d234 |
+END (memset)
|
|
|
c6d234 |
libc_hidden_builtin_def (memset)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/405/strcmp.S b/ports/sysdeps/powerpc/powerpc32/405/strcmp.S
|
|
|
c6d234 |
index 9cd0e24f24604d4a..be536b50f4c56149 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/405/strcmp.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/405/strcmp.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* strcmp
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -34,7 +32,7 @@
|
|
|
c6d234 |
return src1 > src2, src1 < src2 or src1 = src2.
|
|
|
c6d234 |
If src1 = src2 and no null, repeat. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM(strcmp),5,0)
|
|
|
c6d234 |
+EALIGN (strcmp,5,0)
|
|
|
c6d234 |
neg r7,r3
|
|
|
c6d234 |
clrlwi r7,r7,20
|
|
|
c6d234 |
neg r8,r4
|
|
|
c6d234 |
@@ -132,5 +130,5 @@ L(byte_loop):
|
|
|
c6d234 |
cmpwi r5,0
|
|
|
c6d234 |
beq L(end_strcmp)
|
|
|
c6d234 |
b L(byte_loop)
|
|
|
c6d234 |
-END (BP_SYM (strcmp))
|
|
|
c6d234 |
+END (strcmp)
|
|
|
c6d234 |
libc_hidden_builtin_def (strcmp)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/405/strcpy.S b/ports/sysdeps/powerpc/powerpc32/405/strcpy.S
|
|
|
c6d234 |
index 8e6c396e5d3b0e7c..17f3d020f3914ca4 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/405/strcpy.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/405/strcpy.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* strcpy
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -33,7 +31,7 @@
|
|
|
c6d234 |
where in the last 8 bytes it is. Copy the appropriate bytes of the last
|
|
|
c6d234 |
8 according to the null position. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (strcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (strcpy, 5, 0)
|
|
|
c6d234 |
neg r7,r4
|
|
|
c6d234 |
subi r4,r4,1
|
|
|
c6d234 |
clrlwi. r8,r7,29
|
|
|
c6d234 |
@@ -105,5 +103,5 @@ L(last_bytes_copy_loop2):
|
|
|
c6d234 |
|
|
|
c6d234 |
L(end_strcpy):
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strcpy))
|
|
|
c6d234 |
+END (strcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (strcpy)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/405/strlen.S b/ports/sysdeps/powerpc/powerpc32/405/strlen.S
|
|
|
c6d234 |
index 210a3afd92460378..f53951d99bc7e13c 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/405/strlen.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/405/strlen.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* strlen
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -31,7 +29,7 @@
|
|
|
c6d234 |
the count and return the count value. We need to subtract one because
|
|
|
c6d234 |
we don't count the null character as a byte. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (strlen),5,0)
|
|
|
c6d234 |
+EALIGN (strlen,5,0)
|
|
|
c6d234 |
neg r7,r3
|
|
|
c6d234 |
clrlwi. r8,r7,29
|
|
|
c6d234 |
addi r4,0,0
|
|
|
c6d234 |
@@ -73,5 +71,5 @@ L(byte_count_loop):
|
|
|
c6d234 |
L(end_strlen):
|
|
|
c6d234 |
addi r3,r4,-1
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strlen))
|
|
|
c6d234 |
+END (strlen)
|
|
|
c6d234 |
libc_hidden_builtin_def (strlen)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/405/strncmp.S b/ports/sysdeps/powerpc/powerpc32/405/strncmp.S
|
|
|
c6d234 |
index af374c9068796a4f..68079091273e0293 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/405/strncmp.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/405/strncmp.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* strncmp
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -39,7 +37,7 @@
|
|
|
c6d234 |
return src1 > src2, src1 < src2 or src1 = src2.
|
|
|
c6d234 |
If src1 = src2 and no null, repeat. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM(strncmp),5,0)
|
|
|
c6d234 |
+EALIGN (strncmp,5,0)
|
|
|
c6d234 |
neg r7,r3
|
|
|
c6d234 |
clrlwi r7,r7,20
|
|
|
c6d234 |
neg r8,r4
|
|
|
c6d234 |
@@ -126,5 +124,5 @@ L(end_strncmp):
|
|
|
c6d234 |
L(st1):
|
|
|
c6d234 |
mfcr r3
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strncmp))
|
|
|
c6d234 |
+END (strncmp)
|
|
|
c6d234 |
libc_hidden_builtin_def (strncmp)
|
|
|
c6d234 |
diff --git a/ports/sysdeps/powerpc/powerpc32/476/memset.S b/ports/sysdeps/powerpc/powerpc32/476/memset.S
|
|
|
c6d234 |
index 8b5750442b785769..17b933430a99d41b 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/powerpc/powerpc32/476/memset.S
|
|
|
c6d234 |
+++ b/ports/sysdeps/powerpc/powerpc32/476/memset.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* memset
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -37,7 +35,7 @@
|
|
|
c6d234 |
If 16 or more words to set we use 16 word copy loop.
|
|
|
c6d234 |
Finaly we set 0-15 extra bytes with string store. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (memset), 5, 0)
|
|
|
c6d234 |
+EALIGN (memset, 5, 0)
|
|
|
c6d234 |
rlwinm r11,r4,0,24,31
|
|
|
c6d234 |
rlwimi r11,r4,8,16,23
|
|
|
c6d234 |
rlwimi r11,r11,16,0,15
|
|
|
c6d234 |
@@ -150,5 +148,5 @@ L(postword2_count_loop):
|
|
|
c6d234 |
mtxer r7
|
|
|
c6d234 |
stswx r8,0,r3
|
|
|
c6d234 |
b L(end_memset)
|
|
|
c6d234 |
-END (BP_SYM (memset))
|
|
|
c6d234 |
+END (memset)
|
|
|
c6d234 |
libc_hidden_builtin_def (memset)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/__longjmp-common.S b/sysdeps/powerpc/powerpc32/__longjmp-common.S
|
|
|
c6d234 |
index fa46b6dcf4db352b..dc464e499d538ab1 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/__longjmp-common.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/__longjmp-common.S
|
|
|
c6d234 |
@@ -24,11 +24,8 @@
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
# include <jmpbuf-offsets.h>
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__longjmp))
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
|
|
|
c6d234 |
+ENTRY (__longjmp)
|
|
|
c6d234 |
|
|
|
c6d234 |
#if defined PTR_DEMANGLE || defined CHECK_SP
|
|
|
c6d234 |
lwz r24,(JB_GPR1*4)(r3)
|
|
|
c6d234 |
@@ -72,4 +69,4 @@ ENTRY (BP_SYM (__longjmp))
|
|
|
c6d234 |
lwz r31,((JB_GPRS+17)*4)(r3)
|
|
|
c6d234 |
mr r3,r4
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__longjmp))
|
|
|
c6d234 |
+END (__longjmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/a2/memcpy.S b/sysdeps/powerpc/powerpc32/a2/memcpy.S
|
|
|
c6d234 |
index f88e2dcd43b32319..257113d1a356924c 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/a2/memcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/a2/memcpy.S
|
|
|
c6d234 |
@@ -18,14 +18,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#define PREFETCH_AHEAD 4 /* no cache lines SRC prefetching ahead */
|
|
|
c6d234 |
#define ZERO_AHEAD 2 /* no cache lines DST zeroing ahead */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine a2
|
|
|
c6d234 |
-EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (memcpy, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
dcbt 0,r4 /* Prefetch ONE SRC cacheline */
|
|
|
c6d234 |
@@ -525,5 +523,5 @@ L(endloop2_128):
|
|
|
c6d234 |
b L(lessthancacheline)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (memcpy))
|
|
|
c6d234 |
+END (memcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (memcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/add_n.S b/sysdeps/powerpc/powerpc32/add_n.S
|
|
|
c6d234 |
index 4ff7c87675080fd1..fa9d35f7bf269811 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/add_n.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/add_n.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* mp_limb_t mpn_add_n (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_srcptr s2_ptr,
|
|
|
c6d234 |
mp_size_t size)
|
|
|
c6d234 |
@@ -28,14 +26,8 @@
|
|
|
c6d234 |
possible 2-unrolled inner loop will not be. Also, watch out for the
|
|
|
c6d234 |
alignment... */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (__mpn_add_n), 3, 0)
|
|
|
c6d234 |
+EALIGN (__mpn_add_n, 3, 0)
|
|
|
c6d234 |
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- slwi r10,r6,2 /* convert limbs to bytes */
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r3, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r4, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r5, r8, r9, r10)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
/* Set up for loop below. */
|
|
|
c6d234 |
mtcrf 0x01,r6
|
|
|
c6d234 |
srwi. r7,r6,1
|
|
|
c6d234 |
@@ -73,4 +65,4 @@ L(0): lwz r9,4(r4)
|
|
|
c6d234 |
/* Return the carry. */
|
|
|
c6d234 |
L(1): addze r3,r10
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__mpn_add_n))
|
|
|
c6d234 |
+END (__mpn_add_n)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/addmul_1.S b/sysdeps/powerpc/powerpc32/addmul_1.S
|
|
|
c6d234 |
index 3f23833bcbba023a..8cf3001b3f5140c3 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/addmul_1.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/addmul_1.S
|
|
|
c6d234 |
@@ -17,18 +17,11 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* mp_limb_t mpn_addmul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr,
|
|
|
c6d234 |
mp_size_t s1_size, mp_limb_t s2_limb)
|
|
|
c6d234 |
Calculate res+s1*s2 and put result back in res; return carry. */
|
|
|
c6d234 |
-ENTRY (BP_SYM (__mpn_addmul_1))
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- slwi r10,r5,2 /* convert limbs to bytes */
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r3, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r4, r8, r9, r10)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+ENTRY (__mpn_addmul_1)
|
|
|
c6d234 |
mtctr r5
|
|
|
c6d234 |
|
|
|
c6d234 |
lwz r0,0(r4)
|
|
|
c6d234 |
@@ -52,4 +45,4 @@ L(0): lwzu r0,4(r4)
|
|
|
c6d234 |
L(1): stw r8,4(r3)
|
|
|
c6d234 |
addze r3,r10
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__mpn_addmul_1))
|
|
|
c6d234 |
+END (__mpn_addmul_1)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/bp-asm.h b/sysdeps/powerpc/powerpc32/bp-asm.h
|
|
|
c6d234 |
deleted file mode 100644
|
|
|
c6d234 |
index 16afbb22510e257b..0000000000000000
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/bp-asm.h
|
|
|
c6d234 |
+++ /dev/null
|
|
|
c6d234 |
@@ -1,112 +0,0 @@
|
|
|
c6d234 |
-/* Bounded-pointer definitions for PowerPC assembler.
|
|
|
c6d234 |
- Copyright (C) 2000 Free Software Foundation, Inc.
|
|
|
c6d234 |
- Contributed by Greg McGary <greg@mcgary.org>
|
|
|
c6d234 |
- This file is part of the GNU C Library. Its master source is NOT part of
|
|
|
c6d234 |
- the C library, however. The master source lives in the GNU MP Library.
|
|
|
c6d234 |
-
|
|
|
c6d234 |
- The GNU C Library is free software; you can redistribute it and/or
|
|
|
c6d234 |
- modify it under the terms of the GNU Lesser General Public
|
|
|
c6d234 |
- License as published by the Free Software Foundation; either
|
|
|
c6d234 |
- version 2.1 of the License, or (at your option) any later version.
|
|
|
c6d234 |
-
|
|
|
c6d234 |
- The GNU C Library is distributed in the hope that it will be useful,
|
|
|
c6d234 |
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
c6d234 |
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
c6d234 |
- Lesser General Public License for more details.
|
|
|
c6d234 |
-
|
|
|
c6d234 |
- You should have received a copy of the GNU Lesser General Public
|
|
|
c6d234 |
- License along with the GNU C Library; if not, see
|
|
|
c6d234 |
- <http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Byte offsets of BP components. */
|
|
|
c6d234 |
-# define oVALUE 0
|
|
|
c6d234 |
-# define oLOW 4
|
|
|
c6d234 |
-# define oHIGH 8
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Don't check bounds, just convert the BP register to its simple
|
|
|
c6d234 |
- pointer value. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define DISCARD_BOUNDS(rBP) \
|
|
|
c6d234 |
- lwz rBP, oVALUE(rBP)
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Check low bound, with the side effect that the BP register is converted
|
|
|
c6d234 |
- its simple pointer value. Move the high bound into a register for
|
|
|
c6d234 |
- later use. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define CHECK_BOUNDS_LOW(rBP, rLOW, rHIGH) \
|
|
|
c6d234 |
- lwz rHIGH, oHIGH(rBP); \
|
|
|
c6d234 |
- lwz rLOW, oLOW(rBP); \
|
|
|
c6d234 |
- lwz rBP, oVALUE(rBP); \
|
|
|
c6d234 |
- twllt rBP, rLOW
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Check the high bound, which is in a register, using the given
|
|
|
c6d234 |
- conditional trap instruction. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define CHECK_BOUNDS_HIGH(rVALUE, rHIGH, TWLcc) \
|
|
|
c6d234 |
- TWLcc rVALUE, rHIGH
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Check the high bound, which is stored at the return-value's high
|
|
|
c6d234 |
- bound slot, using the given conditional trap instruction. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define CHECK_BOUNDS_HIGH_RTN(rVALUE, rHIGH, TWLcc) \
|
|
|
c6d234 |
- lwz rHIGH, oHIGH(rRTN); \
|
|
|
c6d234 |
- TWLcc rVALUE, rHIGH
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Check both bounds, with the side effect that the BP register is
|
|
|
c6d234 |
- converted to its simple pointer value. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define CHECK_BOUNDS_BOTH(rBP, rLOW, rHIGH) \
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW(rBP, rLOW, rHIGH); \
|
|
|
c6d234 |
- twlge rBP, rHIGH
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Check bounds on a memory region of given length, with the side
|
|
|
c6d234 |
- effect that the BP register is converted to its simple pointer
|
|
|
c6d234 |
- value. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define CHECK_BOUNDS_BOTH_WIDE(rBP, rLOW, rHIGH, rLENGTH) \
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rBP, rLOW, rHIGH); \
|
|
|
c6d234 |
- sub rHIGH, rHIGH, rLENGTH; \
|
|
|
c6d234 |
- twlgt rBP, rHIGH
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define CHECK_BOUNDS_BOTH_WIDE_LIT(rBP, rLOW, rHIGH, LENGTH) \
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rBP, rLOW, rHIGH); \
|
|
|
c6d234 |
- subi rHIGH, rHIGH, LENGTH; \
|
|
|
c6d234 |
- twlgt rBP, rHIGH
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Store a pointer value register into the return-value's pointer
|
|
|
c6d234 |
- value slot. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define STORE_RETURN_VALUE(rVALUE) \
|
|
|
c6d234 |
- stw rVALUE, oVALUE(rRTN)
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Store a low and high bounds into the return-value's pointer bounds
|
|
|
c6d234 |
- slots. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define STORE_RETURN_BOUNDS(rLOW, rHIGH) \
|
|
|
c6d234 |
- stw rLOW, oLOW(rRTN); \
|
|
|
c6d234 |
- stw rHIGH, oHIGH(rRTN)
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-/* Stuff zero value/low/high into the BP addressed by rRTN. */
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define RETURN_NULL_BOUNDED_POINTER \
|
|
|
c6d234 |
- li r4, 0; \
|
|
|
c6d234 |
- STORE_RETURN_VALUE (r4); \
|
|
|
c6d234 |
- STORE_RETURN_BOUNDS (r4, r4)
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define DISCARD_BOUNDS(rBP)
|
|
|
c6d234 |
-# define CHECK_BOUNDS_LOW(rBP, rLOW, rHIGH)
|
|
|
c6d234 |
-# define CHECK_BOUNDS_HIGH(rVALUE, rHIGH, TWLcc)
|
|
|
c6d234 |
-# define CHECK_BOUNDS_HIGH_RTN(rVALUE, rHIGH, TWLcc)
|
|
|
c6d234 |
-# define CHECK_BOUNDS_BOTH(rBP, rLOW, rHIGH)
|
|
|
c6d234 |
-# define CHECK_BOUNDS_BOTH_WIDE(rBP, rLOW, rHIGH, rLENGTH)
|
|
|
c6d234 |
-# define CHECK_BOUNDS_BOTH_WIDE_LIT(rBP, rLOW, rHIGH, LENGTH)
|
|
|
c6d234 |
-# define STORE_RETURN_VALUE(rVALUE)
|
|
|
c6d234 |
-# define STORE_RETURN_BOUNDS(rLOW, rHIGH)
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-# define RETURN_NULL_BOUNDED_POINTER li rRTN, 0
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/bsd-_setjmp.S b/sysdeps/powerpc/powerpc32/bsd-_setjmp.S
|
|
|
c6d234 |
index 79b0aa4746f653a8..b5232e634e00ed32 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/bsd-_setjmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/bsd-_setjmp.S
|
|
|
c6d234 |
@@ -19,14 +19,13 @@
|
|
|
c6d234 |
#include <shlib-compat.h>
|
|
|
c6d234 |
#include <libc-symbols.h>
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#if !IS_IN (libc)
|
|
|
c6d234 |
/* Build a non-versioned object for rtld-*. */
|
|
|
c6d234 |
-ENTRY (BP_SYM (_setjmp))
|
|
|
c6d234 |
+ENTRY (_setjmp)
|
|
|
c6d234 |
li r4,0 /* Set second argument to 0. */
|
|
|
c6d234 |
- b BP_SYM (__sigsetjmp@local)
|
|
|
c6d234 |
-END (BP_SYM (_setjmp))
|
|
|
c6d234 |
+ b __sigsetjmp@local
|
|
|
c6d234 |
+END (_setjmp)
|
|
|
c6d234 |
libc_hidden_def (_setjmp)
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
/* Build a versioned object for libc. */
|
|
|
c6d234 |
@@ -34,10 +33,10 @@ libc_hidden_def (_setjmp)
|
|
|
c6d234 |
# if defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)
|
|
|
c6d234 |
compat_symbol (libc, __novmx_setjmp, _setjmp, GLIBC_2_0);
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__novmx_setjmp))
|
|
|
c6d234 |
+ENTRY (__novmx_setjmp)
|
|
|
c6d234 |
li r4,0 /* Set second argument to 0. */
|
|
|
c6d234 |
- b BP_SYM (__novmx__sigsetjmp@local)
|
|
|
c6d234 |
-END (BP_SYM (__novmx_setjmp))
|
|
|
c6d234 |
+ b __novmx__sigsetjmp@local
|
|
|
c6d234 |
+END (__novmx_setjmp)
|
|
|
c6d234 |
libc_hidden_def (__novmx_setjmp)
|
|
|
c6d234 |
# endif /* defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4) */
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -45,14 +44,14 @@ versioned_symbol (libc, __vmx_setjmp, _setjmp, GLIBC_2_3_4)
|
|
|
c6d234 |
/* __GI__setjmp prototype is needed for ntpl i.e. _setjmp is defined
|
|
|
c6d234 |
as a libc_hidden_proto & is used in sysdeps/generic/libc-start.c
|
|
|
c6d234 |
if HAVE_CLEANUP_JMP_BUF is defined */
|
|
|
c6d234 |
-ENTRY (BP_SYM (__GI__setjmp))
|
|
|
c6d234 |
+ENTRY (__GI__setjmp)
|
|
|
c6d234 |
li r4,0 /* Set second argument to 0. */
|
|
|
c6d234 |
- b BP_SYM (__vmx__sigsetjmp@local)
|
|
|
c6d234 |
-END (BP_SYM (__GI__setjmp))
|
|
|
c6d234 |
+ b __vmx__sigsetjmp@local
|
|
|
c6d234 |
+END (__GI__setjmp)
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__vmx_setjmp))
|
|
|
c6d234 |
+ENTRY (__vmx_setjmp)
|
|
|
c6d234 |
li r4,0 /* Set second argument to 0. */
|
|
|
c6d234 |
- b BP_SYM (__vmx__sigsetjmp@local)
|
|
|
c6d234 |
-END (BP_SYM (__vmx_setjmp))
|
|
|
c6d234 |
+ b __vmx__sigsetjmp@local
|
|
|
c6d234 |
+END (__vmx_setjmp)
|
|
|
c6d234 |
libc_hidden_def (__vmx_setjmp)
|
|
|
c6d234 |
#endif /* !IS_IN (libc) */
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/bsd-setjmp.S b/sysdeps/powerpc/powerpc32/bsd-setjmp.S
|
|
|
c6d234 |
index 78248c0108c695ed..0a6beb6459db8fea 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/bsd-setjmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/bsd-setjmp.S
|
|
|
c6d234 |
@@ -18,7 +18,6 @@
|
|
|
c6d234 |
#include <shlib-compat.h>
|
|
|
c6d234 |
#include <libc-symbols.h>
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#if defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/bzero.S b/sysdeps/powerpc/powerpc32/bzero.S
|
|
|
c6d234 |
index aa5a237a6ac60c30..3080945afe359efe 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/bzero.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/bzero.S
|
|
|
c6d234 |
@@ -17,20 +17,11 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__bzero))
|
|
|
c6d234 |
+ENTRY (__bzero)
|
|
|
c6d234 |
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- mr r6,r4
|
|
|
c6d234 |
- li r5,0
|
|
|
c6d234 |
- mr r4,r3
|
|
|
c6d234 |
- /* Tell memset that we don't want a return value. */
|
|
|
c6d234 |
- li r3,0
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
mr r5,r4
|
|
|
c6d234 |
li r4,0
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
- b BP_SYM (memset)@local
|
|
|
c6d234 |
-END (BP_SYM (__bzero))
|
|
|
c6d234 |
-weak_alias (BP_SYM (__bzero), BP_SYM (bzero))
|
|
|
c6d234 |
+ b memset@local
|
|
|
c6d234 |
+END (__bzero)
|
|
|
c6d234 |
+weak_alias (__bzero, bzero)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/cell/memcpy.S b/sysdeps/powerpc/powerpc32/cell/memcpy.S
|
|
|
c6d234 |
index a25547feb4e8425b..2cf6a505d060e72b 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/cell/memcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/cell/memcpy.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#define PREFETCH_AHEAD 6 /* no cache lines SRC prefetching ahead */
|
|
|
c6d234 |
#define ZERO_AHEAD 4 /* no cache lines DST zeroing ahead */
|
|
|
c6d234 |
@@ -41,7 +39,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
.align 7
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (memcpy, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
dcbt 0,r4 /* Prefetch ONE SRC cacheline */
|
|
|
c6d234 |
@@ -240,5 +238,5 @@ EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
stb r0,0(r6)
|
|
|
c6d234 |
1: blr
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (memcpy))
|
|
|
c6d234 |
+END (memcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (memcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S b/sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
|
|
|
c6d234 |
index adc69a5c57327a31..862d4b837f2ca7f6 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
|
|
|
c6d234 |
@@ -23,12 +23,9 @@
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
# include <jmpbuf-offsets.h>
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine "altivec"
|
|
|
c6d234 |
-ENTRY (BP_SYM (__longjmp))
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
|
|
|
c6d234 |
+ENTRY (__longjmp)
|
|
|
c6d234 |
#ifndef __NO_VMX__
|
|
|
c6d234 |
# ifdef PIC
|
|
|
c6d234 |
mflr r6
|
|
|
c6d234 |
@@ -173,4 +170,4 @@ L(no_vmx):
|
|
|
c6d234 |
lfd fp31,((JB_FPRS+17*2)*4)(r3)
|
|
|
c6d234 |
mr r3,r4
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__longjmp))
|
|
|
c6d234 |
+END (__longjmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/fpu/setjmp-common.S b/sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
|
|
|
c6d234 |
index 0ce05f7bdfbfbfc1..b6a1ce062de2e7a0 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
|
|
|
c6d234 |
@@ -23,12 +23,9 @@
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
# include <jmpbuf-offsets.h>
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine "altivec"
|
|
|
c6d234 |
-ENTRY (BP_SYM (__sigsetjmp))
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
|
|
|
c6d234 |
+ENTRY (__sigsetjmp)
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef PTR_MANGLE
|
|
|
c6d234 |
mr r5,r1
|
|
|
c6d234 |
@@ -178,5 +175,5 @@ L(aligned_save_vmx):
|
|
|
c6d234 |
stvx 31,0,r6
|
|
|
c6d234 |
L(no_vmx):
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
- b BP_SYM (__sigjmp_save@local)
|
|
|
c6d234 |
-END (BP_SYM (__sigsetjmp))
|
|
|
c6d234 |
+ b __sigjmp_save@local
|
|
|
c6d234 |
+END (__sigsetjmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/lshift.S b/sysdeps/powerpc/powerpc32/lshift.S
|
|
|
c6d234 |
index d376266710056d58..83e2747b2a9a482f 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/lshift.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/lshift.S
|
|
|
c6d234 |
@@ -17,19 +17,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* mp_limb_t mpn_lshift (mp_ptr wp, mp_srcptr up, mp_size_t usize,
|
|
|
c6d234 |
unsigned int cnt) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (__mpn_lshift), 3, 0)
|
|
|
c6d234 |
+EALIGN (__mpn_lshift, 3, 0)
|
|
|
c6d234 |
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- slwi r10,r5,2 /* convert limbs to bytes */
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r3, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r4, r8, r9, r10)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
mtctr r5 # copy size into CTR
|
|
|
c6d234 |
cmplwi cr0,r5,16 # is size < 16
|
|
|
c6d234 |
slwi r0,r5,2
|
|
|
c6d234 |
@@ -129,4 +122,4 @@ L(n): lwzu r10,-4(r4); \
|
|
|
c6d234 |
DO_LSHIFT(30)
|
|
|
c6d234 |
DO_LSHIFT(31)
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (__mpn_lshift))
|
|
|
c6d234 |
+END (__mpn_lshift)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/memset.S b/sysdeps/powerpc/powerpc32/memset.S
|
|
|
c6d234 |
index 8459b926ee9b1543..416434a554031914 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/memset.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/memset.S
|
|
|
c6d234 |
@@ -18,8 +18,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] memset (__ptr_t s [r3], int c [r4], size_t n [r5]));
|
|
|
c6d234 |
Returns 's'.
|
|
|
c6d234 |
@@ -30,21 +28,14 @@
|
|
|
c6d234 |
takes advantage of the dcbz instruction. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.section ".text"
|
|
|
c6d234 |
-EALIGN (BP_SYM (memset), 5, 1)
|
|
|
c6d234 |
+EALIGN (memset, 5, 1)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP r0
|
|
|
c6d234 |
#define rRTN r3 /* initial value of 1st argument */
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
-# define rMEMP0 r4 /* original value of 1st arg */
|
|
|
c6d234 |
-# define rCHR r5 /* char to set in each byte */
|
|
|
c6d234 |
-# define rLEN r6 /* length of region to set */
|
|
|
c6d234 |
-# define rMEMP r10 /* address at which we are storing */
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
-# define rMEMP0 r3 /* original value of 1st arg */
|
|
|
c6d234 |
-# define rCHR r4 /* char to set in each byte */
|
|
|
c6d234 |
-# define rLEN r5 /* length of region to set */
|
|
|
c6d234 |
-# define rMEMP r6 /* address at which we are storing */
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+#define rMEMP0 r3 /* original value of 1st arg */
|
|
|
c6d234 |
+#define rCHR r4 /* char to set in each byte */
|
|
|
c6d234 |
+#define rLEN r5 /* length of region to set */
|
|
|
c6d234 |
+#define rMEMP r6 /* address at which we are storing */
|
|
|
c6d234 |
#define rALIGN r7 /* number of bytes we are setting now (when aligning) */
|
|
|
c6d234 |
#define rMEMP2 r8
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -56,15 +47,6 @@ EALIGN (BP_SYM (memset), 5, 1)
|
|
|
c6d234 |
#define rCLS r8 /* Cache line size obtained from static. */
|
|
|
c6d234 |
#define rCLM r9 /* Cache line size mask to check for cache alignment. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- cmplwi cr1, rRTN, 0
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (rMEMP0, rTMP, rTMP2, rLEN)
|
|
|
c6d234 |
- beq cr1, L(b0)
|
|
|
c6d234 |
- STORE_RETURN_VALUE (rMEMP0)
|
|
|
c6d234 |
- STORE_RETURN_BOUNDS (rTMP, rTMP2)
|
|
|
c6d234 |
-L(b0):
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
-
|
|
|
c6d234 |
/* take care of case for size <= 4 */
|
|
|
c6d234 |
cmplwi cr1, rLEN, 4
|
|
|
c6d234 |
andi. rALIGN, rMEMP0, 3
|
|
|
c6d234 |
@@ -322,5 +304,5 @@ L(handletail32):
|
|
|
c6d234 |
clrrwi. rALIGN, rLEN, 5
|
|
|
c6d234 |
b L(nondcbz)
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (memset))
|
|
|
c6d234 |
+END (memset)
|
|
|
c6d234 |
libc_hidden_builtin_def (memset)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/mul_1.S b/sysdeps/powerpc/powerpc32/mul_1.S
|
|
|
c6d234 |
index 32a33f296ec3b463..6b6286a0f1fabc45 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/mul_1.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/mul_1.S
|
|
|
c6d234 |
@@ -17,19 +17,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* mp_limb_t mpn_mul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr,
|
|
|
c6d234 |
mp_size_t s1_size, mp_limb_t s2_limb)
|
|
|
c6d234 |
Calculate s1*s2 and put result in res_ptr; return carry. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__mpn_mul_1))
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- slwi r10,r5,2 /* convert limbs to bytes */
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r3, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r4, r8, r9, r10)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+ENTRY (__mpn_mul_1)
|
|
|
c6d234 |
mtctr r5
|
|
|
c6d234 |
|
|
|
c6d234 |
lwz r0,0(r4)
|
|
|
c6d234 |
@@ -49,4 +42,4 @@ L(0): lwzu r0,4(r4)
|
|
|
c6d234 |
L(1): stw r7,4(r3)
|
|
|
c6d234 |
addze r3,r10
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__mpn_mul_1))
|
|
|
c6d234 |
+END (__mpn_mul_1)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power4/memcmp.S b/sysdeps/powerpc/powerpc32/power4/memcmp.S
|
|
|
c6d234 |
index c726520d6a6f373d..6c42dcd94cff2b47 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power4/memcmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power4/memcmp.S
|
|
|
c6d234 |
@@ -17,15 +17,13 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] memcmp (const char *s1 [r3],
|
|
|
c6d234 |
const char *s2 [r4],
|
|
|
c6d234 |
size_t size [r5]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power4
|
|
|
c6d234 |
-EALIGN (BP_SYM(memcmp), 4, 0)
|
|
|
c6d234 |
+EALIGN (memcmp, 4, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rRTN r3
|
|
|
c6d234 |
@@ -1371,7 +1369,7 @@ L(dureturn25):
|
|
|
c6d234 |
addi 1, 1, 64
|
|
|
c6d234 |
cfi_adjust_cfa_offset(-64)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memcmp))
|
|
|
c6d234 |
+END (memcmp)
|
|
|
c6d234 |
|
|
|
c6d234 |
libc_hidden_builtin_def (memcmp)
|
|
|
c6d234 |
weak_alias (memcmp, bcmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power4/memcpy.S b/sysdeps/powerpc/powerpc32/power4/memcpy.S
|
|
|
c6d234 |
index 20ed28b2abeaf092..363b6bf0b5cbb809 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power4/memcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power4/memcpy.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] memcpy (__ptr_t dst [r3], __ptr_t src [r4], size_t len [r5]);
|
|
|
c6d234 |
Returns 'dst'.
|
|
|
c6d234 |
@@ -34,7 +32,7 @@
|
|
|
c6d234 |
Each case has an optimized unrolled loop. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power4
|
|
|
c6d234 |
-EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (memcpy, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
stwu 1,-32(1)
|
|
|
c6d234 |
@@ -478,6 +476,6 @@ EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
lwz 31,24(1)
|
|
|
c6d234 |
addi 1,1,32
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memcpy))
|
|
|
c6d234 |
+END (memcpy)
|
|
|
c6d234 |
|
|
|
c6d234 |
libc_hidden_builtin_def (memcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power4/memset.S b/sysdeps/powerpc/powerpc32/power4/memset.S
|
|
|
c6d234 |
index f3da588e10ad639d..faefc70258c2c211 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power4/memset.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power4/memset.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] memset (__ptr_t s [r3], int c [r4], size_t n [r5]));
|
|
|
c6d234 |
Returns 's'.
|
|
|
c6d234 |
@@ -28,7 +26,7 @@
|
|
|
c6d234 |
to 0, to take advantage of the dcbz instruction. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power4
|
|
|
c6d234 |
-EALIGN (BP_SYM (memset), 5, 0)
|
|
|
c6d234 |
+EALIGN (memset, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP r0
|
|
|
c6d234 |
@@ -224,5 +222,5 @@ L(medium_28t):
|
|
|
c6d234 |
stw rCHR, -4(rMEMP)
|
|
|
c6d234 |
stw rCHR, -8(rMEMP)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memset))
|
|
|
c6d234 |
+END (memset)
|
|
|
c6d234 |
libc_hidden_builtin_def (memset)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power4/strncmp.S b/sysdeps/powerpc/powerpc32/power4/strncmp.S
|
|
|
c6d234 |
index c74b690aa8929ccb..54ab0ad42acaeb14 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power4/strncmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power4/strncmp.S
|
|
|
c6d234 |
@@ -17,14 +17,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* See strlen.s for comments on how the end-of-string testing works. */
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strncmp (const char *s1 [r3], const char *s2 [r4], size_t size [r5]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM(strncmp), 4, 0)
|
|
|
c6d234 |
+EALIGN (strncmp, 4, 0)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP2 r0
|
|
|
c6d234 |
#define rRTN r3
|
|
|
c6d234 |
@@ -197,5 +195,5 @@ L(u4): sub rRTN, rWORD1, rWORD2
|
|
|
c6d234 |
L(ux):
|
|
|
c6d234 |
li rRTN, 0
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strncmp))
|
|
|
c6d234 |
+END (strncmp)
|
|
|
c6d234 |
libc_hidden_builtin_def (strncmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power6/memcpy.S b/sysdeps/powerpc/powerpc32/power6/memcpy.S
|
|
|
c6d234 |
index 78cbd30795a5a866..89ac4ff8517e2368 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power6/memcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power6/memcpy.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] memcpy (__ptr_t dst [r3], __ptr_t src [r4], size_t len [r5]);
|
|
|
c6d234 |
Returns 'dst'.
|
|
|
c6d234 |
@@ -34,7 +32,7 @@
|
|
|
c6d234 |
Each case has an optimized unrolled loop. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power6
|
|
|
c6d234 |
-EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (memcpy, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
stwu 1,-32(1)
|
|
|
c6d234 |
@@ -904,6 +902,6 @@ L(wdus_0):
|
|
|
c6d234 |
lwz 31,24(1)
|
|
|
c6d234 |
addi 1,1,32
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memcpy))
|
|
|
c6d234 |
+END (memcpy)
|
|
|
c6d234 |
|
|
|
c6d234 |
libc_hidden_builtin_def (memcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power6/memset.S b/sysdeps/powerpc/powerpc32/power6/memset.S
|
|
|
c6d234 |
index e4966f5e597f34f3..29095b73cb05d7ac 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power6/memset.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power6/memset.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] memset (__ptr_t s [r3], int c [r4], size_t n [r5]));
|
|
|
c6d234 |
Returns 's'.
|
|
|
c6d234 |
@@ -28,7 +26,7 @@
|
|
|
c6d234 |
to 0, to take advantage of the dcbz instruction. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power6
|
|
|
c6d234 |
-EALIGN (BP_SYM (memset), 7, 0)
|
|
|
c6d234 |
+EALIGN (memset, 7, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP r0
|
|
|
c6d234 |
@@ -537,5 +535,5 @@ L(medium_28t):
|
|
|
c6d234 |
stw rCHR, -4(rMEMP)
|
|
|
c6d234 |
stw rCHR, -8(rMEMP)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memset))
|
|
|
c6d234 |
+END (memset)
|
|
|
c6d234 |
libc_hidden_builtin_def (memset)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/memcmp.S b/sysdeps/powerpc/powerpc32/power7/memcmp.S
|
|
|
c6d234 |
index 59833b9e5efae1dc..12ad5dbc28c5c37b 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/memcmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/memcmp.S
|
|
|
c6d234 |
@@ -17,15 +17,13 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] memcmp (const char *s1 [r3],
|
|
|
c6d234 |
const char *s2 [r4],
|
|
|
c6d234 |
size_t size [r5]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-EALIGN (BP_SYM(memcmp), 4, 0)
|
|
|
c6d234 |
+EALIGN (memcmp, 4, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rRTN r3
|
|
|
c6d234 |
@@ -1371,7 +1369,7 @@ L(dureturn25):
|
|
|
c6d234 |
addi r1, r1, 64
|
|
|
c6d234 |
cfi_adjust_cfa_offset(-64)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (memcmp))
|
|
|
c6d234 |
+END (memcmp)
|
|
|
c6d234 |
|
|
|
c6d234 |
libc_hidden_builtin_def (memcmp)
|
|
|
c6d234 |
weak_alias (memcmp,bcmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/memcpy.S b/sysdeps/powerpc/powerpc32/power7/memcpy.S
|
|
|
c6d234 |
index 795d9626790f5e00..5821b1e40b14a038 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/memcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/memcpy.S
|
|
|
c6d234 |
@@ -18,14 +18,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] memcpy (__ptr_t dst [r3], __ptr_t src [r4], size_t len [r5]);
|
|
|
c6d234 |
Returns 'dst'. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-EALIGN (BP_SYM (memcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (memcpy, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
stwu 1,-32(1)
|
|
|
c6d234 |
@@ -536,5 +534,5 @@ L(end_unaligned_loop):
|
|
|
c6d234 |
addi 1,1,32
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (memcpy))
|
|
|
c6d234 |
+END (memcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (memcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/mempcpy.S b/sysdeps/powerpc/powerpc32/power7/mempcpy.S
|
|
|
c6d234 |
index ede20304057a1009..a29bdbb5ad302d55 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/mempcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/mempcpy.S
|
|
|
c6d234 |
@@ -18,14 +18,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] __mempcpy (__ptr_t dst [r3], __ptr_t src [r4], size_t len [r5]);
|
|
|
c6d234 |
Returns 'dst' + 'len'. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-EALIGN (BP_SYM (__mempcpy), 5, 0)
|
|
|
c6d234 |
+EALIGN (__mempcpy, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
stwu 1,-32(1)
|
|
|
c6d234 |
@@ -478,7 +476,7 @@ L(end_unaligned_loop):
|
|
|
c6d234 |
addi 1,1,32
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (__mempcpy))
|
|
|
c6d234 |
-libc_hidden_def (BP_SYM (__mempcpy))
|
|
|
c6d234 |
-weak_alias (BP_SYM (__mempcpy), BP_SYM (mempcpy))
|
|
|
c6d234 |
+END (__mempcpy)
|
|
|
c6d234 |
+libc_hidden_def (__mempcpy)
|
|
|
c6d234 |
+weak_alias (__mempcpy, mempcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (mempcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/memset.S b/sysdeps/powerpc/powerpc32/power7/memset.S
|
|
|
c6d234 |
index fa2e0b7e56f0f636..9944ebcaa2f79317 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/memset.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/memset.S
|
|
|
c6d234 |
@@ -18,14 +18,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* __ptr_t [r3] memset (__ptr_t s [r3], int c [r4], size_t n [r5]));
|
|
|
c6d234 |
Returns 's'. */
|
|
|
c6d234 |
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-EALIGN (BP_SYM (memset), 5, 0)
|
|
|
c6d234 |
+EALIGN (memset, 5, 0)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
|
|
|
c6d234 |
.align 4
|
|
|
c6d234 |
@@ -429,5 +427,5 @@ L(small):
|
|
|
c6d234 |
stw 4,4(10)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (memset))
|
|
|
c6d234 |
+END (memset)
|
|
|
c6d234 |
libc_hidden_builtin_def (memset)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/rawmemchr.S b/sysdeps/powerpc/powerpc32/power7/rawmemchr.S
|
|
|
c6d234 |
index 403a6c4421aff854..30de892046542ec5 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/rawmemchr.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/rawmemchr.S
|
|
|
c6d234 |
@@ -18,12 +18,10 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] rawmemchr (void *s [r3], int c [r4]) */
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-ENTRY (BP_SYM(__rawmemchr))
|
|
|
c6d234 |
+ENTRY (__rawmemchr)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
dcbt 0,r3
|
|
|
c6d234 |
clrrwi r8,r3,2 /* Align the address to word boundary. */
|
|
|
c6d234 |
@@ -107,6 +105,6 @@ L(done):
|
|
|
c6d234 |
srwi r0,r0,3 /* Convert leading zeros to bytes. */
|
|
|
c6d234 |
add r3,r8,r0 /* Return address of the matching char. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__rawmemchr))
|
|
|
c6d234 |
+END (__rawmemchr)
|
|
|
c6d234 |
weak_alias (__rawmemchr,rawmemchr)
|
|
|
c6d234 |
libc_hidden_builtin_def (__rawmemchr)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/strcasecmp.S b/sysdeps/powerpc/powerpc32/power7/strcasecmp.S
|
|
|
c6d234 |
index 7162142b29933894..3b92ec3b1f135b6f 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/strcasecmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/strcasecmp.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
#include <locale-defines.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strcasecmp (const char *s1 [r3], const char *s2 [r4] )
|
|
|
c6d234 |
@@ -33,7 +31,7 @@
|
|
|
c6d234 |
# define STRCMP strcasecmp
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__STRCMP))
|
|
|
c6d234 |
+ENTRY (__STRCMP)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rRTN r3 /* Return value */
|
|
|
c6d234 |
#define rSTR1 r5 /* 1st string */
|
|
|
c6d234 |
@@ -125,7 +123,7 @@ L(loop):
|
|
|
c6d234 |
bnelr
|
|
|
c6d234 |
bne cr7,L(loop)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__STRCMP))
|
|
|
c6d234 |
+END (__STRCMP)
|
|
|
c6d234 |
|
|
|
c6d234 |
-weak_alias (BP_SYM (__STRCMP), BP_SYM (STRCMP))
|
|
|
c6d234 |
+weak_alias (__STRCMP, STRCMP)
|
|
|
c6d234 |
libc_hidden_builtin_def (__STRCMP)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/strchr.S b/sysdeps/powerpc/powerpc32/power7/strchr.S
|
|
|
c6d234 |
index a6fbafe9a8824ba3..c1ddfec9fc4aa3f8 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/strchr.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/strchr.S
|
|
|
c6d234 |
@@ -18,12 +18,10 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strchr (char *s [r3], int c [r4]) */
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-ENTRY (BP_SYM(strchr))
|
|
|
c6d234 |
+ENTRY (strchr)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
dcbt 0,r3
|
|
|
c6d234 |
clrrwi r8,r3,2 /* Align the address to word boundary. */
|
|
|
c6d234 |
@@ -222,6 +220,6 @@ L(done_null):
|
|
|
c6d234 |
srwi r0,r0,3 /* Convert leading zeros to bytes. */
|
|
|
c6d234 |
add r3,r8,r0 /* Return address of the matching null byte. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strchr))
|
|
|
c6d234 |
-weak_alias (BP_SYM (strchr), BP_SYM (index))
|
|
|
c6d234 |
+END (strchr)
|
|
|
c6d234 |
+weak_alias (strchr, index)
|
|
|
c6d234 |
libc_hidden_builtin_def (strchr)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/strchrnul.S b/sysdeps/powerpc/powerpc32/power7/strchrnul.S
|
|
|
c6d234 |
index 3bf11c992500cc7c..31fd2339fb896ad6 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/strchrnul.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/strchrnul.S
|
|
|
c6d234 |
@@ -18,12 +18,10 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strchrnul (char *s [r3], int c [r4]) */
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-ENTRY (BP_SYM(__strchrnul))
|
|
|
c6d234 |
+ENTRY (__strchrnul)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
dcbt 0,r3
|
|
|
c6d234 |
clrrwi r8,r3,2 /* Align the address to word boundary. */
|
|
|
c6d234 |
@@ -124,6 +122,6 @@ L(done):
|
|
|
c6d234 |
srwi r0,r0,3 /* Convert leading zeros to bytes. */
|
|
|
c6d234 |
add r3,r8,r0 /* Return address of matching c/null byte. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__strchrnul))
|
|
|
c6d234 |
+END (__strchrnul)
|
|
|
c6d234 |
weak_alias (__strchrnul,strchrnul)
|
|
|
c6d234 |
libc_hidden_builtin_def (__strchrnul)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/strlen.S b/sysdeps/powerpc/powerpc32/power7/strlen.S
|
|
|
c6d234 |
index 950f621cfe7da807..6d603e7d708eeac1 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/strlen.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/strlen.S
|
|
|
c6d234 |
@@ -18,12 +18,10 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strlen (char *s [r3]) */
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-ENTRY (BP_SYM (strlen))
|
|
|
c6d234 |
+ENTRY (strlen)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
dcbt 0,r3
|
|
|
c6d234 |
clrrwi r4,r3,2 /* Align the address to word boundary. */
|
|
|
c6d234 |
@@ -100,5 +98,5 @@ L(done):
|
|
|
c6d234 |
srwi r0,r0,3 /* Convert leading zeros to bytes. */
|
|
|
c6d234 |
add r3,r5,r0 /* Compute final length. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strlen))
|
|
|
c6d234 |
+END (strlen)
|
|
|
c6d234 |
libc_hidden_builtin_def (strlen)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/strncmp.S b/sysdeps/powerpc/powerpc32/power7/strncmp.S
|
|
|
c6d234 |
index 555f588a2e2d0860..4dde199fdf692225 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/strncmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/strncmp.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* See strlen.s for comments on how the end-of-string testing works. */
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -26,7 +24,7 @@
|
|
|
c6d234 |
const char *s2 [r4],
|
|
|
c6d234 |
size_t size [r5]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM(strncmp),5,0)
|
|
|
c6d234 |
+EALIGN (strncmp,5,0)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP2 r0
|
|
|
c6d234 |
#define rRTN r3
|
|
|
c6d234 |
@@ -200,5 +198,5 @@ L(u4): sub rRTN,rWORD1,rWORD2
|
|
|
c6d234 |
L(ux):
|
|
|
c6d234 |
li rRTN,0
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strncmp))
|
|
|
c6d234 |
+END (strncmp)
|
|
|
c6d234 |
libc_hidden_builtin_def (strncmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power7/strnlen.S b/sysdeps/powerpc/powerpc32/power7/strnlen.S
|
|
|
c6d234 |
index 513e418329704647..74dbec80fa5bf32d 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power7/strnlen.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power7/strnlen.S
|
|
|
c6d234 |
@@ -18,12 +18,10 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strnlen (char *s [r3], int size [r4]) */
|
|
|
c6d234 |
.machine power7
|
|
|
c6d234 |
-ENTRY (BP_SYM (__strnlen))
|
|
|
c6d234 |
+ENTRY (__strnlen)
|
|
|
c6d234 |
CALL_MCOUNT
|
|
|
c6d234 |
dcbt 0,r3
|
|
|
c6d234 |
clrrwi r8,r3,2 /* Align the address to word boundary. */
|
|
|
c6d234 |
@@ -172,6 +170,6 @@ L(loop_small):
|
|
|
c6d234 |
mr r3,r4
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (__strnlen))
|
|
|
c6d234 |
-weak_alias (BP_SYM (__strnlen), BP_SYM(strnlen))
|
|
|
c6d234 |
+END (__strnlen)
|
|
|
c6d234 |
+weak_alias (__strnlen, strnlen)
|
|
|
c6d234 |
libc_hidden_builtin_def (strnlen)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/rshift.S b/sysdeps/powerpc/powerpc32/rshift.S
|
|
|
c6d234 |
index bc99bf129c402229..b6016c1a741cdb3e 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/rshift.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/rshift.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* INPUT PARAMETERS
|
|
|
c6d234 |
res_ptr r3
|
|
|
c6d234 |
@@ -26,12 +24,7 @@
|
|
|
c6d234 |
size r5
|
|
|
c6d234 |
cnt r6 */
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__mpn_rshift))
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- slwi r10,r5,2 /* convert limbs to bytes */
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r3, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r4, r8, r9, r10)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+ENTRY (__mpn_rshift)
|
|
|
c6d234 |
mtctr r5 # copy size into CTR
|
|
|
c6d234 |
addi r7,r3,-4 # move adjusted res_ptr to free return reg
|
|
|
c6d234 |
subfic r8,r6,32
|
|
|
c6d234 |
@@ -59,4 +52,4 @@ L(1): srw r0,r11,r6
|
|
|
c6d234 |
L(2): srw r0,r10,r6
|
|
|
c6d234 |
stw r0,4(r7)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__mpn_rshift))
|
|
|
c6d234 |
+END (__mpn_rshift)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/setjmp-common.S b/sysdeps/powerpc/powerpc32/setjmp-common.S
|
|
|
c6d234 |
index 8f2b36cfb1901ba7..2ccf9df166b51b5c 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/setjmp-common.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/setjmp-common.S
|
|
|
c6d234 |
@@ -24,12 +24,9 @@
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
# include <jmpbuf-offsets.h>
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__sigsetjmp))
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE_LIT (r3, r8, r9, JB_SIZE)
|
|
|
c6d234 |
+ENTRY (__sigsetjmp)
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef PTR_MANGLE
|
|
|
c6d234 |
mr r5,r1
|
|
|
c6d234 |
@@ -68,6 +65,6 @@ ENTRY (BP_SYM (__sigsetjmp))
|
|
|
c6d234 |
li r3,0
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
- b BP_SYM (__sigjmp_save@local)
|
|
|
c6d234 |
+ b __sigjmp_save@local
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
-END (BP_SYM (__sigsetjmp))
|
|
|
c6d234 |
+END (__sigsetjmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/start.S b/sysdeps/powerpc/powerpc32/start.S
|
|
|
c6d234 |
index 2e454c0722e28129..1d3fea305f8c02cc 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/start.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/start.S
|
|
|
c6d234 |
@@ -35,7 +35,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include "bp-sym.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
/* We do not want .eh_frame info for crt1.o since crt1.o is linked
|
|
|
c6d234 |
before crtbegin.o, the file defining __EH_FRAME_BEGIN__. */
|
|
|
c6d234 |
@@ -53,7 +52,7 @@
|
|
|
c6d234 |
.align 2
|
|
|
c6d234 |
L(start_addresses):
|
|
|
c6d234 |
.long _SDA_BASE_
|
|
|
c6d234 |
- .long BP_SYM (main)
|
|
|
c6d234 |
+ .long main
|
|
|
c6d234 |
.long __libc_csu_init
|
|
|
c6d234 |
.long __libc_csu_fini
|
|
|
c6d234 |
ASM_SIZE_DIRECTIVE(L(start_addresses))
|
|
|
c6d234 |
@@ -86,7 +85,7 @@ ENTRY(_start)
|
|
|
c6d234 |
lwzu r13,L(start_addresses)@l(r8)
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
/* and continue in libc-start, in glibc. */
|
|
|
c6d234 |
- b JUMPTARGET(BP_SYM (__libc_start_main))
|
|
|
c6d234 |
+ b JUMPTARGET(__libc_start_main)
|
|
|
c6d234 |
END(_start)
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Define a symbol for the first piece of initialized data. */
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/stpcpy.S b/sysdeps/powerpc/powerpc32/stpcpy.S
|
|
|
c6d234 |
index 4ae8c71e753e77c8..9e99e86c51471a7e 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/stpcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/stpcpy.S
|
|
|
c6d234 |
@@ -17,35 +17,23 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* See strlen.s for comments on how the end-of-string testing works. */
|
|
|
c6d234 |
|
|
|
c6d234 |
/* char * [r3] stpcpy (char *dest [r3], const char *src [r4]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (__stpcpy), 4, 0)
|
|
|
c6d234 |
+EALIGN (__stpcpy, 4, 0)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP r0
|
|
|
c6d234 |
#define rRTN r3
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
-# define rDEST r4 /* pointer to previous word in dest */
|
|
|
c6d234 |
-# define rSRC r5 /* pointer to previous word in src */
|
|
|
c6d234 |
-# define rLOW r11
|
|
|
c6d234 |
-# define rHIGH r12
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
-# define rDEST r3 /* pointer to previous word in dest */
|
|
|
c6d234 |
-# define rSRC r4 /* pointer to previous word in src */
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+#define rDEST r3 /* pointer to previous word in dest */
|
|
|
c6d234 |
+#define rSRC r4 /* pointer to previous word in src */
|
|
|
c6d234 |
#define rWORD r6 /* current word from src */
|
|
|
c6d234 |
#define rFEFE r7 /* 0xfefefeff */
|
|
|
c6d234 |
#define r7F7F r8 /* 0x7f7f7f7f */
|
|
|
c6d234 |
#define rNEG r9 /* ~(word in src | 0x7f7f7f7f) */
|
|
|
c6d234 |
#define rALT r10 /* alternate word from src */
|
|
|
c6d234 |
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rSRC, rLOW, rHIGH)
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rDEST, rLOW, rHIGH)
|
|
|
c6d234 |
- STORE_RETURN_BOUNDS (rLOW, rHIGH)
|
|
|
c6d234 |
|
|
|
c6d234 |
or rTMP, rSRC, rDEST
|
|
|
c6d234 |
clrlwi. rTMP, rTMP, 30
|
|
|
c6d234 |
@@ -99,8 +87,6 @@ L(g1):
|
|
|
c6d234 |
stbu rTMP, 1(rDEST)
|
|
|
c6d234 |
beqlr-
|
|
|
c6d234 |
stbu rALT, 1(rDEST)
|
|
|
c6d234 |
- CHECK_BOUNDS_HIGH (rDEST, rHIGH, twlgt)
|
|
|
c6d234 |
- STORE_RETURN_VALUE (rDEST)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -123,15 +109,11 @@ L(u0): lbzu rALT, 1(rSRC)
|
|
|
c6d234 |
cmpwi rWORD, 0
|
|
|
c6d234 |
bne+ L(u0)
|
|
|
c6d234 |
L(u2): stbu rWORD, 1(rDEST)
|
|
|
c6d234 |
- CHECK_BOUNDS_HIGH (rDEST, rHIGH, twlgt)
|
|
|
c6d234 |
- STORE_RETURN_VALUE (rDEST)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
L(u1): stbu rALT, 1(rDEST)
|
|
|
c6d234 |
- CHECK_BOUNDS_HIGH (rDEST, rHIGH, twlgt)
|
|
|
c6d234 |
- STORE_RETURN_VALUE (rDEST)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__stpcpy))
|
|
|
c6d234 |
+END (__stpcpy)
|
|
|
c6d234 |
|
|
|
c6d234 |
-weak_alias (BP_SYM (__stpcpy), BP_SYM (stpcpy))
|
|
|
c6d234 |
+weak_alias (__stpcpy, stpcpy)
|
|
|
c6d234 |
libc_hidden_def (__stpcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (stpcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/strchr.S b/sysdeps/powerpc/powerpc32/strchr.S
|
|
|
c6d234 |
index c8a2c2bbbc11036b..a045675f07646646 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/strchr.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/strchr.S
|
|
|
c6d234 |
@@ -17,26 +17,18 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* See strlen.s for comments on how this works. */
|
|
|
c6d234 |
|
|
|
c6d234 |
/* char * [r3] strchr (const char *s [r3] , int c [r4] ) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (strchr))
|
|
|
c6d234 |
+ENTRY (strchr)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP1 r0
|
|
|
c6d234 |
#define rRTN r3 /* outgoing result */
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
-# define rSTR r4
|
|
|
c6d234 |
-# define rCHR r5 /* byte we're looking for, spread over the whole word */
|
|
|
c6d234 |
-# define rWORD r8 /* the current word */
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
-# define rSTR r8 /* current word pointer */
|
|
|
c6d234 |
-# define rCHR r4 /* byte we're looking for, spread over the whole word */
|
|
|
c6d234 |
-# define rWORD r5 /* the current word */
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+#define rSTR r8 /* current word pointer */
|
|
|
c6d234 |
+#define rCHR r4 /* byte we're looking for, spread over the whole word */
|
|
|
c6d234 |
+#define rWORD r5 /* the current word */
|
|
|
c6d234 |
#define rCLZB rCHR /* leading zero byte count */
|
|
|
c6d234 |
#define rFEFE r6 /* constant 0xfefefeff (-0x01010101) */
|
|
|
c6d234 |
#define r7F7F r7 /* constant 0x7f7f7f7f */
|
|
|
c6d234 |
@@ -47,8 +39,6 @@ ENTRY (BP_SYM (strchr))
|
|
|
c6d234 |
#define rTMP4 rIGN
|
|
|
c6d234 |
#define rTMP5 rMASK
|
|
|
c6d234 |
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rSTR, rTMP1, rTMP2)
|
|
|
c6d234 |
- STORE_RETURN_BOUNDS (rTMP1, rTMP2)
|
|
|
c6d234 |
|
|
|
c6d234 |
rlwimi rCHR, rCHR, 8, 16, 23
|
|
|
c6d234 |
li rMASK, -1
|
|
|
c6d234 |
@@ -96,7 +86,6 @@ L(loopentry):
|
|
|
c6d234 |
zero byte, in which case we return a match. */
|
|
|
c6d234 |
and. rTMP5, rTMP1, rTMP2
|
|
|
c6d234 |
li rRTN, 0
|
|
|
c6d234 |
- STORE_RETURN_VALUE (rSTR)
|
|
|
c6d234 |
beqlr
|
|
|
c6d234 |
/* At this point:
|
|
|
c6d234 |
rTMP5 bytes are 0x80 for each match of c, 0 otherwise.
|
|
|
c6d234 |
@@ -131,8 +120,6 @@ L(loopentry):
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
srwi rCLZB, rCLZB, 3
|
|
|
c6d234 |
add rRTN, rSTR, rCLZB
|
|
|
c6d234 |
- CHECK_BOUNDS_HIGH_RTN (rSTR, rTMP2, twlge)
|
|
|
c6d234 |
- STORE_RETURN_VALUE (rSTR)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
|
|
|
c6d234 |
L(foundit):
|
|
|
c6d234 |
@@ -152,10 +139,8 @@ L(foundit):
|
|
|
c6d234 |
srwi rCLZB, rCLZB, 3
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
add rRTN, rSTR, rCLZB
|
|
|
c6d234 |
- CHECK_BOUNDS_HIGH_RTN (rSTR, rTMP2, twlge)
|
|
|
c6d234 |
- STORE_RETURN_VALUE (rSTR)
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strchr))
|
|
|
c6d234 |
+END (strchr)
|
|
|
c6d234 |
|
|
|
c6d234 |
-weak_alias (BP_SYM (strchr), BP_SYM (index))
|
|
|
c6d234 |
+weak_alias (strchr, index)
|
|
|
c6d234 |
libc_hidden_builtin_def (strchr)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/strcmp.S b/sysdeps/powerpc/powerpc32/strcmp.S
|
|
|
c6d234 |
index 041aa2988d2248e1..6fc6878677c139a4 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/strcmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/strcmp.S
|
|
|
c6d234 |
@@ -17,23 +17,17 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* See strlen.s for comments on how the end-of-string testing works. */
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strcmp (const char *s1 [r3], const char *s2 [r4]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (strcmp), 4, 0)
|
|
|
c6d234 |
+EALIGN (strcmp, 4, 0)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP2 r0
|
|
|
c6d234 |
#define rRTN r3
|
|
|
c6d234 |
#define rSTR1 r3 /* first string arg */
|
|
|
c6d234 |
#define rSTR2 r4 /* second string arg */
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
-# define rHIGH1 r11
|
|
|
c6d234 |
-# define rHIGH2 r12
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
#define rWORD1 r5 /* current word in s1 */
|
|
|
c6d234 |
#define rWORD2 r6 /* current word in s2 */
|
|
|
c6d234 |
#define rFEFE r7 /* constant 0xfefefeff (-0x01010101) */
|
|
|
c6d234 |
@@ -42,8 +36,6 @@ EALIGN (BP_SYM (strcmp), 4, 0)
|
|
|
c6d234 |
#define rBITDIF r10 /* bits that differ in s1 & s2 words */
|
|
|
c6d234 |
#define rTMP r11
|
|
|
c6d234 |
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rSTR1, rTMP, rHIGH1)
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rSTR2, rTMP, rHIGH2)
|
|
|
c6d234 |
|
|
|
c6d234 |
or rTMP, rSTR2, rSTR1
|
|
|
c6d234 |
clrlwi. rTMP, rTMP, 30
|
|
|
c6d234 |
@@ -118,7 +110,6 @@ L(endstring):
|
|
|
c6d234 |
bgelr+ cr1
|
|
|
c6d234 |
L(equal):
|
|
|
c6d234 |
li rRTN, 0
|
|
|
c6d234 |
- /* GKM FIXME: check high bounds. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
|
|
|
c6d234 |
L(different):
|
|
|
c6d234 |
@@ -128,7 +119,6 @@ L(different):
|
|
|
c6d234 |
bgelr+
|
|
|
c6d234 |
L(highbit):
|
|
|
c6d234 |
ori rRTN, rWORD2, 1
|
|
|
c6d234 |
- /* GKM FIXME: check high bounds. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -152,11 +142,9 @@ L(u1): cmpwi cr1, rWORD1, 0
|
|
|
c6d234 |
cmpw rWORD1, rWORD2
|
|
|
c6d234 |
bne+ cr1, L(u0)
|
|
|
c6d234 |
L(u3): sub rRTN, rWORD1, rWORD2
|
|
|
c6d234 |
- /* GKM FIXME: check high bounds. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
L(u4): lbz rWORD1, -1(rSTR1)
|
|
|
c6d234 |
sub rRTN, rWORD1, rWORD2
|
|
|
c6d234 |
- /* GKM FIXME: check high bounds. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strcmp))
|
|
|
c6d234 |
+END (strcmp)
|
|
|
c6d234 |
libc_hidden_builtin_def (strcmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/strcpy.S b/sysdeps/powerpc/powerpc32/strcpy.S
|
|
|
c6d234 |
index 2bc50155da0b486c..4e21f9b17c332cc8 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/strcpy.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/strcpy.S
|
|
|
c6d234 |
@@ -17,43 +17,27 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* See strlen.s for comments on how the end-of-string testing works. */
|
|
|
c6d234 |
|
|
|
c6d234 |
/* char * [r3] strcpy (char *dest [r3], const char *src [r4]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (strcpy), 4, 0)
|
|
|
c6d234 |
+EALIGN (strcpy, 4, 0)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP r0
|
|
|
c6d234 |
#define rRTN r3 /* incoming DEST arg preserved as result */
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
-# define rDEST r4 /* pointer to previous word in dest */
|
|
|
c6d234 |
-# define rSRC r5 /* pointer to previous word in src */
|
|
|
c6d234 |
-# define rLOW r11
|
|
|
c6d234 |
-# define rHIGH r12
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
-# define rSRC r4 /* pointer to previous word in src */
|
|
|
c6d234 |
-# define rDEST r5 /* pointer to previous word in dest */
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+#define rSRC r4 /* pointer to previous word in src */
|
|
|
c6d234 |
+#define rDEST r5 /* pointer to previous word in dest */
|
|
|
c6d234 |
#define rWORD r6 /* current word from src */
|
|
|
c6d234 |
#define rFEFE r7 /* constant 0xfefefeff (-0x01010101) */
|
|
|
c6d234 |
#define r7F7F r8 /* constant 0x7f7f7f7f */
|
|
|
c6d234 |
#define rNEG r9 /* ~(word in s1 | 0x7f7f7f7f) */
|
|
|
c6d234 |
#define rALT r10 /* alternate word from src */
|
|
|
c6d234 |
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rSRC, rLOW, rHIGH)
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rDEST, rLOW, rHIGH)
|
|
|
c6d234 |
- STORE_RETURN_BOUNDS (rLOW, rHIGH)
|
|
|
c6d234 |
|
|
|
c6d234 |
or rTMP, rSRC, rRTN
|
|
|
c6d234 |
clrlwi. rTMP, rTMP, 30
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- addi rDEST, rDEST, -4
|
|
|
c6d234 |
-#else
|
|
|
c6d234 |
addi rDEST, rRTN, -4
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
bne L(unaligned)
|
|
|
c6d234 |
|
|
|
c6d234 |
lis rFEFE, -0x101
|
|
|
c6d234 |
@@ -103,7 +87,6 @@ L(g1):
|
|
|
c6d234 |
stb rTMP, 6(rDEST)
|
|
|
c6d234 |
beqlr-
|
|
|
c6d234 |
stb rALT, 7(rDEST)
|
|
|
c6d234 |
- /* GKM FIXME: check high bound. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -126,11 +109,9 @@ L(u0): lbzu rALT, 1(rSRC)
|
|
|
c6d234 |
cmpwi rWORD, 0
|
|
|
c6d234 |
bne+ L(u0)
|
|
|
c6d234 |
L(u2): stb rWORD, 1(rDEST)
|
|
|
c6d234 |
- /* GKM FIXME: check high bound. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
L(u1): stb rALT, 1(rDEST)
|
|
|
c6d234 |
- /* GKM FIXME: check high bound. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (strcpy))
|
|
|
c6d234 |
+END (strcpy)
|
|
|
c6d234 |
libc_hidden_builtin_def (strcpy)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/strlen.S b/sysdeps/powerpc/powerpc32/strlen.S
|
|
|
c6d234 |
index eef1114d5de0dd66..65637a976751fd68 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/strlen.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/strlen.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* The algorithm here uses the following techniques:
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -77,7 +75,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strlen (char *s [r3]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (strlen))
|
|
|
c6d234 |
+ENTRY (strlen)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP4 r0
|
|
|
c6d234 |
#define rRTN r3 /* incoming STR arg, outgoing result */
|
|
|
c6d234 |
@@ -93,7 +91,6 @@ ENTRY (BP_SYM (strlen))
|
|
|
c6d234 |
#define rTMP2 r11
|
|
|
c6d234 |
#define rTMP3 r12
|
|
|
c6d234 |
|
|
|
c6d234 |
- CHECK_BOUNDS_LOW (rRTN, rTMP1, rTMP2)
|
|
|
c6d234 |
|
|
|
c6d234 |
clrrwi rSTR, rRTN, 2
|
|
|
c6d234 |
lis r7F7F, 0x7f7f
|
|
|
c6d234 |
@@ -165,7 +162,6 @@ L(done0):
|
|
|
c6d234 |
subf rTMP1, rRTN, rSTR
|
|
|
c6d234 |
srwi rTMP3, rTMP3, 3
|
|
|
c6d234 |
add rRTN, rTMP1, rTMP3
|
|
|
c6d234 |
- /* GKM FIXME: check high bound. */
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -190,5 +186,5 @@ L(done1):
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
-END (BP_SYM (strlen))
|
|
|
c6d234 |
+END (strlen)
|
|
|
c6d234 |
libc_hidden_builtin_def (strlen)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/strncmp.S b/sysdeps/powerpc/powerpc32/strncmp.S
|
|
|
c6d234 |
index 1e2f47bf533fe25a..f48964a4c45a67fa 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/strncmp.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/strncmp.S
|
|
|
c6d234 |
@@ -17,14 +17,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* See strlen.s for comments on how the end-of-string testing works. */
|
|
|
c6d234 |
|
|
|
c6d234 |
/* int [r3] strncmp (const char *s1 [r3], const char *s2 [r4], size_t size [r5]) */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM(strncmp), 4, 0)
|
|
|
c6d234 |
+EALIGN (strncmp, 4, 0)
|
|
|
c6d234 |
|
|
|
c6d234 |
#define rTMP2 r0
|
|
|
c6d234 |
#define rRTN r3
|
|
|
c6d234 |
@@ -182,5 +180,5 @@ L(u1):
|
|
|
c6d234 |
L(u2): lbzu rWORD1, -1(rSTR1)
|
|
|
c6d234 |
L(u3): sub rRTN, rWORD1, rWORD2
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (strncmp))
|
|
|
c6d234 |
+END (strncmp)
|
|
|
c6d234 |
libc_hidden_builtin_def (strncmp)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/sub_n.S b/sysdeps/powerpc/powerpc32/sub_n.S
|
|
|
c6d234 |
index fdce132811e0945c..7181ecd494d810c0 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/sub_n.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/sub_n.S
|
|
|
c6d234 |
@@ -17,8 +17,6 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* mp_limb_t mpn_sub_n (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_srcptr s2_ptr,
|
|
|
c6d234 |
mp_size_t size)
|
|
|
c6d234 |
@@ -28,14 +26,7 @@
|
|
|
c6d234 |
possible 2-unrolled inner loop will not be. Also, watch out for the
|
|
|
c6d234 |
alignment... */
|
|
|
c6d234 |
|
|
|
c6d234 |
-EALIGN (BP_SYM (__mpn_sub_n), 3, 1)
|
|
|
c6d234 |
-
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- slwi r10,r6,2 /* convert limbs to bytes */
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r3, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r4, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r5, r8, r9, r10)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+EALIGN (__mpn_sub_n, 3, 1)
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set up for loop below. */
|
|
|
c6d234 |
mtcrf 0x01,r6
|
|
|
c6d234 |
@@ -74,4 +65,4 @@ L(0):
|
|
|
c6d234 |
L(1): subfe r3,r3,r3
|
|
|
c6d234 |
neg r3,r3
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__mpn_sub_n))
|
|
|
c6d234 |
+END (__mpn_sub_n)
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/submul_1.S b/sysdeps/powerpc/powerpc32/submul_1.S
|
|
|
c6d234 |
index 35ee0d76d399f67f..4bb06c010f341df8 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/submul_1.S
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/submul_1.S
|
|
|
c6d234 |
@@ -17,19 +17,12 @@
|
|
|
c6d234 |
<http://www.gnu.org/licenses/>. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* mp_limb_t mpn_submul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr,
|
|
|
c6d234 |
mp_size_t s1_size, mp_limb_t s2_limb)
|
|
|
c6d234 |
Calculate res-s1*s2 and put result back in res; return carry. */
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__mpn_submul_1))
|
|
|
c6d234 |
-#if __BOUNDED_POINTERS__
|
|
|
c6d234 |
- slwi r10,r5,2 /* convert limbs to bytes */
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r3, r8, r9, r10)
|
|
|
c6d234 |
- CHECK_BOUNDS_BOTH_WIDE (r4, r8, r9, r10)
|
|
|
c6d234 |
-#endif
|
|
|
c6d234 |
+ENTRY (__mpn_submul_1)
|
|
|
c6d234 |
mtctr r5
|
|
|
c6d234 |
|
|
|
c6d234 |
lwz r0,0(r4)
|
|
|
c6d234 |
@@ -55,4 +48,4 @@ L(0): lwzu r0,4(r4)
|
|
|
c6d234 |
L(1): stw r8,4(r3)
|
|
|
c6d234 |
addze r3,r10
|
|
|
c6d234 |
blr
|
|
|
c6d234 |
-END (BP_SYM (__mpn_submul_1))
|
|
|
c6d234 |
+END (__mpn_submul_1)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S
|
|
|
c6d234 |
index 9f0390e6f813ada5..cca8768bf71e971a 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S
|
|
|
c6d234 |
@@ -19,13 +19,10 @@
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
#define _ERRNO_H 1
|
|
|
c6d234 |
#include <bits/errno.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
.comm __curbrk,4,4
|
|
|
c6d234 |
.section ".text"
|
|
|
c6d234 |
-ENTRY (BP_SYM (__brk))
|
|
|
c6d234 |
- DISCARD_BOUNDS (r3) /* the bounds are meaningless, so toss 'em */
|
|
|
c6d234 |
+ENTRY (__brk)
|
|
|
c6d234 |
mflr r0
|
|
|
c6d234 |
stwu r1,-16(r1)
|
|
|
c6d234 |
cfi_adjust_cfa_offset (16)
|
|
|
c6d234 |
@@ -50,6 +47,6 @@ ENTRY (BP_SYM (__brk))
|
|
|
c6d234 |
blelr+
|
|
|
c6d234 |
li r3,ENOMEM
|
|
|
c6d234 |
b __syscall_error@local
|
|
|
c6d234 |
-END (BP_SYM (__brk))
|
|
|
c6d234 |
+END (__brk)
|
|
|
c6d234 |
|
|
|
c6d234 |
-weak_alias (BP_SYM (__brk), BP_SYM (brk))
|
|
|
c6d234 |
+weak_alias (__brk, brk)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S
|
|
|
c6d234 |
index fb16519efa455985..d088a16824085236 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S
|
|
|
c6d234 |
@@ -20,8 +20,6 @@
|
|
|
c6d234 |
#define _ERRNO_H 1
|
|
|
c6d234 |
#include <bits/errno.h>
|
|
|
c6d234 |
#include <kernel-features.h>
|
|
|
c6d234 |
-#include <bp-sym.h>
|
|
|
c6d234 |
-#include <bp-asm.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
#define CLONE_VM 0x00000100
|
|
|
c6d234 |
#define CLONE_THREAD 0x00010000
|
|
|
c6d234 |
@@ -35,10 +33,7 @@
|
|
|
c6d234 |
int flags [r5], void *arg [r6], void *parent_tid [r7],
|
|
|
c6d234 |
void *tls [r8], void *child_tid [r9]); */
|
|
|
c6d234 |
|
|
|
c6d234 |
-ENTRY (BP_SYM (__clone))
|
|
|
c6d234 |
- /* GKM FIXME: add bounds checks, where sensible. */
|
|
|
c6d234 |
- DISCARD_BOUNDS (r4)
|
|
|
c6d234 |
- DISCARD_BOUNDS (r6)
|
|
|
c6d234 |
+ENTRY (__clone)
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Check for child_stack == NULL || fn == NULL. */
|
|
|
c6d234 |
cmpwi cr0,r4,0
|
|
|
c6d234 |
@@ -124,6 +119,6 @@ L(badargs):
|
|
|
c6d234 |
b __syscall_error@local
|
|
|
c6d234 |
|
|
|
c6d234 |
cfi_startproc
|
|
|
c6d234 |
-END (BP_SYM (__clone))
|
|
|
c6d234 |
+END (__clone)
|
|
|
c6d234 |
|
|
|
c6d234 |
-weak_alias (BP_SYM (__clone), BP_SYM (clone))
|
|
|
c6d234 |
+weak_alias (__clone, clone)
|