CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2015/08/23 09:51:28
Modified files: lib/libc/arch/powerpc: SYS.h lib/libc/arch/powerpc/sys: cerror.S sigprocmask.S tfork_thread.S Log message: Make __cerror() use the per-thread errno location if r2 isn't zero. This way libpthread no longer has to override it which means that we can use a local call and can avoid setting up r30 as a _GLOBAL_OFFSET_TABLE_ pointer, which is hard the way the powerpc ABI works. For now we continue to provide __cerror as a weak symbol, but ___cerror is now protected and internal calls within libc now use ___cerror instead of __cerror. discussed with guenther@