From: Michael Tremer Date: Sat, 11 Mar 2023 13:20:41 +0000 (+0000) Subject: file: Show error when a file has no symbol table X-Git-Tag: 0.9.29~330 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe2b6b35e72d48d2a7aebc0fb1e2b0cb28aa1f4a;p=pakfire.git file: Show error when a file has no symbol table Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/file.c b/src/libpakfire/file.c index a3a89b12b..ef54fa569 100644 --- a/src/libpakfire/file.c +++ b/src/libpakfire/file.c @@ -1524,8 +1524,10 @@ static int __pakfire_file_hardening_check_ssp( // Walk through all sections for (;;) { section = elf_nextscn(elf, section); - if (!section) + if (!section) { + ERROR(file->pakfire, "%s has no symbol table\n", file->path); return 1; + } // Fetch the section header gelf_getshdr(section, §ion_header);