fix sh __set_thread_area uninitialized return value

this caused the dynamic linker/startup code to abort when r0 happened
to contain a negative value.
This commit is contained in:
Rich Felker
2015-04-17 22:14:03 -04:00
parent 583e55122e
commit 64fbd15fc5

View File

@ -1,5 +1,6 @@
.global __set_thread_area
.type __set_thread_area, @function
__set_thread_area:
rts
ldc r4, gbr
rts
mov #0, r0