summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2005-04-21 12:47:08 +0000
committerkan <kan@FreeBSD.org>2005-04-21 12:47:08 +0000
commitefa3870bbf778cdbd1259ae3d49489d628bdd985 (patch)
tree3a0bd7e44889ea384320877f8537691b10f11ae3 /lib
parent34a84acceeef772a5b9acdda87fdf6cc6581e62d (diff)
downloadFreeBSD-src-efa3870bbf778cdbd1259ae3d49489d628bdd985.zip
FreeBSD-src-efa3870bbf778cdbd1259ae3d49489d628bdd985.tar.gz
Do not try to store 64 bits into 32 bit errno variable. With the changed libc
data layout, this was corrupting _PathLocale variable leading to programs dumping core in non-default locales.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/amd64/sys/cerror.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/amd64/sys/cerror.S b/lib/libc/amd64/sys/cerror.S
index f9f4da0..fa28eca 100644
--- a/lib/libc/amd64/sys/cerror.S
+++ b/lib/libc/amd64/sys/cerror.S
@@ -55,7 +55,7 @@ HIDENAME(cerror):
pushq %rax
call PIC_PLT(CNAME(__error))
popq %rcx
- movq %rcx,(%rax)
+ movl %ecx,(%rax)
movq $-1,%rax
movq $-1,%rdx
ret
OpenPOWER on IntegriCloud