Since DEBUGINFOD_SONAME is as good as ("libdebuginfod-" VERSION ".so")
for dlopen, switch to use the name which is a part of the API.
Given that DEBUGINFOD_SONAME is always available now, remove the no longer
needed fall back to dlopen of "libdebuginfod.so".
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
+2020-12-08 Dmitry V. Levin <ldv@altlinux.org>
+
+ * debuginfod-client.c (__libdwfl_debuginfod_init): Replace
+ "libdebuginfod-" VERSION ".so" with DEBUGINFOD_SONAME in dlopen call.
+ Do not fall back to dlopen of "libdebuginfod.so".
+
2020-12-01 Timm Bäder <tbaeder@redhat.com>
* link_map.c (dwfl_link_map_report): Removed consider_phdr function
void __attribute__ ((constructor))
__libdwfl_debuginfod_init (void)
{
- void *debuginfod_so = dlopen("libdebuginfod-" VERSION ".so", RTLD_LAZY);
-
- if (debuginfod_so == NULL)
- debuginfod_so = dlopen("libdebuginfod.so", RTLD_LAZY);
+ void *debuginfod_so = dlopen(DEBUGINFOD_SONAME, RTLD_LAZY);
if (debuginfod_so != NULL)
{