diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-09 08:24:13 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-09 08:24:13 +0000 |
commit | f6180bfaa203662fa7c0ebc2e48f2a05761f61df (patch) | |
tree | 3976f133c0f40e1f502d0150cbce08861cb82e70 /lib/libc/arch/arm/sys | |
parent | 3498210f4265efd6c30b524f09f673371b9e827d (diff) |
Backtrack a little bit and don't try to use the per-thread errno location if
r2 is zero. Some upcoming changes will probably change the offset at which
the errno pointer is stored, or might even store errno directly. Instead,
call __errno to get the location of errno. Make sure we go through the PLT
such that we call the version in libpthread if it is linked in. Set up r30
for this purpose. The ___cerrno function itself remains protected.
ok guenther@
Diffstat (limited to 'lib/libc/arch/arm/sys')
0 files changed, 0 insertions, 0 deletions