]> git.ipfire.org Git - thirdparty/glibc.git/commit
Rename and split elf/tst-dlopen-aout collection of tests
authorFlorian Weimer <fweimer@redhat.com>
Thu, 17 Oct 2019 06:51:21 +0000 (08:51 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 17 Oct 2019 06:51:21 +0000 (08:51 +0200)
commit7d3db434f910c23591f748a6d0ac3548af1048bb
treecd81091a7bde637d730cbba69fa68543bc4372c6
parenteb77a1fccc7e60cea32245c11288c7f1d92545fa
Rename and split elf/tst-dlopen-aout collection of tests

From the beginning, elf/tst-dlopen-aout has exercised two different
bugs: (a) failure to report errors for a dlopen of the executable
itself in some cases (bug 24900) and (b) incorrect rollback of the
TLS modid allocation in case of a dlopen failure (bug 16634).

This commit replaces the test with elf/tst-dlopen-self for (a) and
elf/tst-dlopen-tlsmodid for (b).  The latter tests use the
elf/tst-dlopen-self binaries (or iconv) with dlopen, so they are
no longer self-dlopen tests.

Tested on x86_64-linux-gnu and i686-linux-gnu, with a toolchain that
does not default to PIE.
elf/Makefile
elf/tst-dlopen-self-container.c [new file with mode: 0644]
elf/tst-dlopen-self-pie.c [moved from elf/tst-dlopen-aout-container.c with 87% similarity]
elf/tst-dlopen-self.c [new file with mode: 0644]
elf/tst-dlopen-tlsmodid-container.c [new file with mode: 0644]
elf/tst-dlopen-tlsmodid-pie.c [moved from elf/tst-dlopen-aout-pie.c with 85% similarity]
elf/tst-dlopen-tlsmodid.c [new file with mode: 0644]
elf/tst-dlopen-tlsmodid.h [moved from elf/tst-dlopen-aout.c with 77% similarity]