]> git.ipfire.org Git - thirdparty/glibc.git/commit - elf/tst-libc_dlvsym-static.c
elf: Support dlvsym within libc.so
authorFlorian Weimer <fweimer@redhat.com>
Thu, 4 Jan 2018 17:46:17 +0000 (18:46 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 4 Jan 2018 17:46:24 +0000 (18:46 +0100)
commit82eef55f8fad3e00c53050de5d6ebea08df488b3
treee0e1ed86b2296703182789d7f5ea607bf066ffe4
parent7abf02f3ee7627d617def77d0d6e7bea2da8d98c
elf: Support dlvsym within libc.so

This commit adds a new _dl_open_hook entry for dlvsym and implements the
function using the existing dl_lookup_symbol_x function supplied by the
dynamic loader.

A new hook variable, _dl_open_hook2, is introduced, which should make
this change suitable for backporting: For old statically linked
binaries, __libc_dlvsym will always return NULL.
ChangeLog
elf/Makefile
elf/Versions
elf/dl-libc.c
elf/tst-libc_dlvsym-dso.c [new file with mode: 0644]
elf/tst-libc_dlvsym-static.c [new file with mode: 0644]
elf/tst-libc_dlvsym.c [new file with mode: 0644]
elf/tst-libc_dlvsym.h [new file with mode: 0644]
include/dlfcn.h