projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
583e551
)
fix sh __set_thread_area uninitialized return value
author
Rich Felker
<dalias@aerifal.cx>
Sat, 18 Apr 2015 02:14:03 +0000
(22:14 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 18 Apr 2015 02:14:03 +0000
(22:14 -0400)
this caused the dynamic linker/startup code to abort when r0 happened
to contain a negative value.
src/thread/sh/__set_thread_area.s
patch
|
blob
|
history
diff --git
a/src/thread/sh/__set_thread_area.s
b/src/thread/sh/__set_thread_area.s
index 53887e640915a6679a2575c7ca816484f2032238..d9f11810455194ffb84b7167fe794164af1210c4 100644
(file)
--- a/
src/thread/sh/__set_thread_area.s
+++ b/
src/thread/sh/__set_thread_area.s
@@
-1,5
+1,6
@@
.global __set_thread_area
.type __set_thread_area, @function
__set_thread_area:
+ ldc r4, gbr
rts
- ldc r4, gbr
+ mov #0, r0