make dlerror state and message thread-local and dynamically-allocated
authorRich Felker <dalias@aerifal.cx>
Sat, 18 Apr 2015 22:00:22 +0000 (18:00 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 18 Apr 2015 22:00:22 +0000 (18:00 -0400)
commit01d42747118522b7a486ece1736b93c6d5751344
treee4f10b65d8335fcfc5f6c43a5e4a761619a47612
parentfa80787698536ecd8b9028703a3bc2e3f59e3d65
make dlerror state and message thread-local and dynamically-allocated

this fixes truncation of error messages containing long pathnames or
symbol names.

the dlerror state was previously required by POSIX to be global. the
resolution of bug 97 relaxed the requirements to allow thread-safe
implementations of dlerror with thread-local state and message buffer.
src/internal/pthread_impl.h
src/ldso/dynlink.c
src/thread/pthread_create.c