From d050367659e04685a0eab910e86ea6829a8d24f9 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Tue, 25 Feb 2014 13:00:36 -0500 Subject: BZ #16613: Support TLS in audit libraries. 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 --- elf/tst-auditmod9b.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 elf/tst-auditmod9b.c (limited to 'elf/tst-auditmod9b.c') diff --git a/elf/tst-auditmod9b.c b/elf/tst-auditmod9b.c new file mode 100644 index 0000000000..8eeeb49986 --- /dev/null +++ b/elf/tst-auditmod9b.c @@ -0,0 +1,6 @@ +__thread int a; + +int f(void) +{ + return ++a; +} -- cgit 1.4.1