mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 19:30:10 +00:00
d050367659
This commit fixes a bug where the dynamic loader would crash when loading audit libraries, via LD_AUDIT, where those libraries used TLS. The dynamic loader was not considering that the audit libraries would use TLS and failed to bump the TLS generation counter leaving TLS usage inconsistent after loading the audit libraries. https://sourceware.org/ml/libc-alpha/2014-02/msg00569.html
16 lines
167 B
C
16 lines
167 B
C
#include <stdint.h>
|
|
|
|
__thread int var;
|
|
|
|
unsigned int
|
|
la_version (unsigned int v)
|
|
{
|
|
return v;
|
|
}
|
|
|
|
void
|
|
la_activity (uintptr_t *cookie, unsigned int flag)
|
|
{
|
|
++var;
|
|
}
|