CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2015/09/09 02:24:12
Modified files: lib/libc/arch/powerpc/sys: cerror.S Log message: 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@