OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18576fe
)
Fix bug where t9 is not correct when __memset_chk_fail is called.
author
Douglas Leung
<douglas.leung@imgtec.com>
Wed, 16 Mar 2016 23:59:23 +0000
(16:59 -0700)
committer
Douglas Leung
<douglas.leung@imgtec.com>
Thu, 17 Mar 2016 00:02:17 +0000
(17:02 -0700)
t9 is used to calculate gp at the start of __memset_chk_fail.
Change-Id: Ief5018699e060afa691bfc1d861abd5e463ab80c
libc/arch-mips/string/memset.S
patch
|
blob
|
history
diff --git
a/libc/arch-mips/string/memset.S
b/libc/arch-mips/string/memset.S
index
dd94f3b
..
6344af1
100644
(file)
--- a/
libc/arch-mips/string/memset.S
+++ b/
libc/arch-mips/string/memset.S
@@
-208,7
+208,10
@@
LEAF(__memset_chk,0)
#else
LEAF(__memset_chk)
#endif
+ .set noreorder
bgtu a2, a3, __memset_chk_fail
+ la t9, __memset_chk_fail
+ .set reorder
// Fall through to memset...
END(__memset_chk)