]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Generalize name-based DSO recognition in ldconfig
authorFlorian Weimer <fweimer@redhat.com>
Mon, 28 Jun 2021 06:33:57 +0000 (08:33 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 28 Jun 2021 06:33:57 +0000 (08:33 +0200)
commit6bf789d69e6be48419094ca98f064e00297a27d5
treeb10799a92799ff4f5f79a1ac77f96b87dcfc293c
parentb89d5de2508215ef3131db7bed76ac50b3f4c205
elf: Generalize name-based DSO recognition in ldconfig

This introduces <dl-is_dso.h> and the _dl_is_dso function.  A
test ensures that the official names of libc.so, ld.so, and their
versioned names are recognized.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
elf/Makefile
elf/dl-is_dso.h [new file with mode: 0644]
elf/ldconfig.c
elf/tst-dl-is_dso.c [new file with mode: 0644]