diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-12-31 12:24:38 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-04-15 09:30:43 +0100 |
commit | 8f85075a2e9c26ff7486d4bbaf358999807d215c (patch) | |
tree | 02f2f750220acc24e6a57f886167aba51b118917 /elf/tst-tls20mod-bad.c | |
parent | d2b997c7172e9a00895a9deb379f8782fbd2e36f (diff) | |
download | glibc-8f85075a2e9c26ff7486d4bbaf358999807d215c.zip glibc-8f85075a2e9c26ff7486d4bbaf358999807d215c.tar.gz glibc-8f85075a2e9c26ff7486d4bbaf358999807d215c.tar.bz2 |
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.c | 2 |
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 0000000..c1aed8e --- /dev/null +++ b/elf/tst-tls20mod-bad.c @@ -0,0 +1,2 @@ +void missing_symbol (void); +void f (void) {missing_symbol ();} |