From: Rich Felker Date: Sat, 18 Apr 2015 02:14:03 +0000 (-0400) Subject: fix sh __set_thread_area uninitialized return value X-Git-Tag: v1.1.9~66 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64fbd15fc5274d4e87d27496ddfb5d064c056585;p=oweals%2Fmusl.git 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. --- diff --git a/src/thread/sh/__set_thread_area.s b/src/thread/sh/__set_thread_area.s index 53887e64..d9f11810 100644 --- 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