diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-07-05 16:59:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-07-05 16:59:37 +0000 |
commit | 6673db11cbb4e6ed51cb83470d1bcf1ac2c85405 (patch) | |
tree | 735df1b541d4137173cc1d6cb69a2c7f610dc411 /libexec/ld.so/arm | |
parent | 5204d1c426410b5a281d0a6a71a408443dcf3104 (diff) |
Unlike libc syscall stubs, ld.so syscall stubs are expected to return -errno,
rather than -1, upon failure.
Even though nothing in ld.so currently needs to explicitely check for specific
error values, consistency doesn't hurt.
Diffstat (limited to 'libexec/ld.so/arm')
-rw-r--r-- | libexec/ld.so/arm/ldasm.S | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/ld.so/arm/ldasm.S b/libexec/ld.so/arm/ldasm.S index 10a1f3a57e1..93d43e9aad3 100644 --- a/libexec/ld.so/arm/ldasm.S +++ b/libexec/ld.so/arm/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.12 2013/12/25 15:01:39 miod Exp $ */ +/* $OpenBSD: ldasm.S,v 1.13 2014/07/05 16:59:36 miod Exp $ */ /* * Copyright (c) 2004 Dale Rahn @@ -145,6 +145,5 @@ _dl_sigprocmask: mov pc, lr .L_cerr: - mov r0, #0 - sub r0, r0, #1 + rsb r0, r0, #0 /* r0 = -errno */ mov pc, lr |