about summary refs log tree commit diff
path: root/elf/tst-tls20mod-bad.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2020-12-31 12:24:38 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2021-04-15 09:30:43 +0100
commit8f85075a2e9c26ff7486d4bbaf358999807d215c (patch)
tree02f2f750220acc24e6a57f886167aba51b118917 /elf/tst-tls20mod-bad.c
parentd2b997c7172e9a00895a9deb379f8782fbd2e36f (diff)
downloadglibc-8f85075a2e9c26ff7486d4bbaf358999807d215c.tar.gz
glibc-8f85075a2e9c26ff7486d4bbaf358999807d215c.tar.xz
glibc-8f85075a2e9c26ff7486d4bbaf358999807d215c.zip
elf: Add a DTV setup test [BZ #27136]
The test dlopens a large number of modules with TLS, they are reused
from an existing test.

The test relies on the reuse of slotinfo entries after dlclose, without
bug 27135 fixed this needs a failing dlopen. With a slotinfo list that
has non-monotone increasing generation counters, bug 27136 can trigger.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/tst-tls20mod-bad.c')
-rw-r--r--elf/tst-tls20mod-bad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/tst-tls20mod-bad.c b/elf/tst-tls20mod-bad.c
new file mode 100644
index 0000000000..c1aed8ea7d
--- /dev/null
+++ b/elf/tst-tls20mod-bad.c
@@ -0,0 +1,2 @@
+void missing_symbol (void);
+void f (void) {missing_symbol ();}