elf: Add a DTV setup test [BZ #27136]
commit8f85075a2e9c26ff7486d4bbaf358999807d215c
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 31 Dec 2020 12:24:38 +0000 (31 12:24 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 15 Apr 2021 08:30:43 +0000 (15 09:30 +0100)
tree02f2f750220acc24e6a57f886167aba51b118917
parentd2b997c7172e9a00895a9deb379f8782fbd2e36f
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>
elf/Makefile
elf/tst-tls20.c [new file with mode: 0644]
elf/tst-tls20mod-bad.c [new file with mode: 0644]