diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-03-31 11:26:55 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-03-31 11:26:55 +0200 |
commit | 7d45c163d00c88d5875a112343c4ea3e61349e6b (patch) | |
tree | 2b4b34faa346c380ce3e635b50e45c87ca2dbdfc /elf/dl-lookup.c | |
parent | 258ec8abc1fb26b800cb22c374c242ea98111679 (diff) | |
download | glibc-7d45c163d00c88d5875a112343c4ea3e61349e6b.tar glibc-7d45c163d00c88d5875a112343c4ea3e61349e6b.tar.gz glibc-7d45c163d00c88d5875a112343c4ea3e61349e6b.tar.bz2 glibc-7d45c163d00c88d5875a112343c4ea3e61349e6b.zip |
Report dlsym, dlvsym lookup errors using dlerror [BZ #19509]
* elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
skip_map != NULL.
* elf/tst-dlsym-error.c: New file.
* elf/Makefile (tests): Add tst-dlsym-error.
(tst-dlsym-error): Link against libdl.
Diffstat (limited to 'elf/dl-lookup.c')
-rw-r--r-- | elf/dl-lookup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index f577759a9d..6d299c1097 100644 --- a/elf/dl-lookup.c +++ b/elf/dl-lookup.c @@ -858,7 +858,6 @@ _dl_lookup_symbol_x (const char *undef_name, struct link_map *undef_map, if (__glibc_unlikely (current_value.s == NULL)) { if ((*ref == NULL || ELFW(ST_BIND) ((*ref)->st_info) != STB_WEAK) - && skip_map == NULL && !(GLRO(dl_debug_mask) & DL_DEBUG_UNUSED)) { /* We could find no value for a strong reference. */ |