}
static int pakfire_linter_file_is_stripped(struct pakfire_linter_file* lfile) {
- Elf_Scn* symtab = NULL;
- int r;
-
- switch (pakfire_linter_file_get_elf_type(lfile)) {
+ switch (pakfire_elf_type(lfile->_elf)) {
// Do not check Relocatable Objects
case ET_REL:
return 0;
break;
}
- // Fetch the symbol table
- r = pakfire_linter_file_get_elf_section(lfile, SHT_SYMTAB, &symtab, NULL, NULL);
- if (r < 0)
- return r;
-
- // If we have found the symbol table we are not stripped
- else if (r == 0)
+ if (!pakfire_elf_is_stripped(lfile->_elf))
return pakfire_linter_file_error(lfile, "Not Stripped");
return 0;