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.
This commit is contained in:
Alexander Kabaev 2005-04-21 12:47:08 +00:00
parent 1600372b6b
commit f2da7e0e49
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145356

View File

@ -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