]> git.ipfire.org Git - thirdparty/systemd.git/commit
dlfcn: add macro for exporting dlopen() module names in ELF sections
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Apr 2024 15:45:17 +0000 (17:45 +0200)
committerLuca Boccassi <bluca@debian.org>
Wed, 8 May 2024 10:07:36 +0000 (11:07 +0100)
commit2f6bd11c1a0147f6bd24bce3ed00c3d91c0884e6
tree114802a348379660c5eb1b77ed1d7ab58b5a00c2
parentcb7e3126b95e9be3bd722f38502d138c4d4d3eeb
dlfcn: add macro for exporting dlopen() module names in ELF sections

This allows code to declare "weak" dlopen() style deps via an ELF
section following the just added specification.

The idea is that any user of dlopen() will place ELF_NOTE_DLOPEN(…)
somewhere close which will synthesize the note.

Tools such as rpm/dpkg package builders as well as initrd generators
(such as dracut) can then automatically pick up these weak deps of
suggested dependencies for their purposes.

Co-authored-by: Luca Boccassi <bluca@debian.org>
src/basic/dlfcn-util.h