elf: Use _dl_catch_error from base namespace in dl-libc.c [BZ #27646]
authorFlorian Weimer <fweimer@redhat.com>
Thu, 17 Jun 2021 13:06:43 +0000 (15:06 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 17 Jun 2021 13:06:46 +0000 (15:06 +0200)
commitc2059edce20c124d1a99f1a94cc52e83b77a917a
tree08b9d89f127ae910b2da7d9882b7143549b26882
parent6b229222fc2852775d8adac2a12f6180b32c5cea
elf: Use _dl_catch_error from base namespace in dl-libc.c [BZ #27646]

dlerrror_run in elf/dl-libc.c needs to call GLRO (dl_catch_error)
from the base namespace, just like the exported dlerror
implementation.

Fixes commit b2964eb1d9a6b8ab1250e8a881cf406182da5875 ("dlfcn:
Failures after dlmopen should not terminate process [BZ #24772]").

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
elf/Makefile
elf/dl-libc.c
elf/tst-dlmopen-gethostbyname-mod.c [new file with mode: 0644]
elf/tst-dlmopen-gethostbyname.c [new file with mode: 0644]