Skip to content
Snippets Groups Projects

Add executable that identifies the ABI of libraries

Merged Ludovico de Nittis requested to merge wip/denittis/t28814 into master
@@ -99,21 +99,21 @@ print_library_details (const gchar *library_path,
if ((fd = open (library_path, O_RDONLY | O_CLOEXEC, 0)) < 0)
{
int saved_errno = errno;
printf ("Error reading \"%s\": %s\n",
library_path, strerror (saved_errno));
g_debug ("Error reading \"%s\": %s\n",
library_path, strerror (saved_errno));
return;
}
if ((elf = elf_begin (fd, ELF_C_READ, NULL)) == NULL)
{
printf ("Error reading the library ELF: %s", elf_errmsg (elf_errno ()));
g_debug ("Error reading the library ELF: %s", elf_errmsg (elf_errno ()));
return;
}
if (gelf_getehdr(elf, &eh) == NULL)
{
printf ("Error reading the library ELF header: %s",
elf_errmsg (elf_errno ()));
g_debug ("Error reading the library ELF header: %s",
elf_errmsg (elf_errno ()));
return;
}
Loading