Fix bug where t9 is not correct when __memset_chk_fail is called.

t9 is used to calculate gp at the start of __memset_chk_fail.

Change-Id: Ief5018699e060afa691bfc1d861abd5e463ab80c
This commit is contained in:
Douglas Leung 2016-03-16 16:59:23 -07:00
parent 18576fea69
commit f3b9c89d3a

View file

@ -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)