]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Test dlopen (NULL, RTLD_LAZY) from an ELF constructor
authorFlorian Weimer <fweimer@redhat.com>
Tue, 11 Mar 2025 14:30:52 +0000 (15:30 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 11 Mar 2025 14:30:52 +0000 (15:30 +0100)
commitd604f9c500570e80febfcc6a52b63a002b466f35
treea9e50ce9d1e1b0de3612382d0f7ba64f0d9846a2
parent6eda7a59dda129d462ab3f157eda280dbf0ed168
elf: Test dlopen (NULL, RTLD_LAZY) from an ELF constructor

This call must not complete initialization of all shared objects
in the global scope because the ELF constructor which makes the call
likely has not finished initialization.  Calling more constructors
at this point would expose those to a partially constructed
dependency.

This completes the revert of commit 9897ced8e78db5d813166a7ccccfd5a
("elf: Run constructors on cyclic recursive dlopen (bug 31986)").
elf/Makefile
elf/dl-open.c
elf/tst-dlopen-constructor-null-mod1.c [new file with mode: 0644]
elf/tst-dlopen-constructor-null-mod2.c [new file with mode: 0644]
elf/tst-dlopen-constructor-null.c [new file with mode: 0644]