OSDN Git Service

Jeroen Dobbelaere writes:
authorEric Andersen <andersen@codepoet.org>
Wed, 5 May 2004 06:56:03 +0000 (06:56 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 5 May 2004 06:56:03 +0000 (06:56 -0000)
commit3ae9a40e28c7c4b06ac0f06837162bf4ac9d60d8
tree1d084280c98c26ad59cecc035cbcb96d8c25189f
parent64d5a0b1fb305691657df2f562a27562c5a2b927
Jeroen Dobbelaere writes:

Because variables are linked to fixed registers, there is a problem in :
     (*__errno_location())=(-_r0);

As __errno_location() uses r0 to return the address of the errno location,
the negated address will be assigned instead of the error code.

Attached patch will resolve this.
libc/sysdeps/linux/arm/syscall.c