_dl_sigprocmask() works better when it actually saves the returned sigmask
authorguenther <guenther@openbsd.org>
Mon, 28 Jul 2014 04:28:43 +0000 (04:28 +0000)
committerguenther <guenther@openbsd.org>
Mon, 28 Jul 2014 04:28:43 +0000 (04:28 +0000)
asm suggestion from kettenis@
tested by miod@, suffering under the brain-destroying summer heat

libexec/ld.so/alpha/ldasm.S

index 927b79a..4448cd4 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ldasm.S,v 1.27 2014/07/14 03:54:50 deraadt Exp $ */
+/*     $OpenBSD: ldasm.S,v 1.28 2014/07/28 04:28:43 guenther Exp $ */
 
 /*
  * Copyright (c) 2001 Niklas Hallqvist
@@ -243,6 +243,7 @@ LEAF_NOPROFILE(_dl_sigprocmask, 4)
        CALLSYS_NOERROR(sigprocmask)
        beq     a3, 1f
        jmp     zero, _dl_cerror
+1:
        beq     a5, 1f
        stl     v0, 0(a5)
 1: