return 0;
}
+static int __pakfire_file_check_cf_protection_aarch64(struct pakfire_file* file,
+ const int endianess, const uint32_t type, const char* payload) {
+ # warning TODO
+ return 0;
+}
+
static int pakfire_file_check_cf_protection_callback(struct pakfire_file* file,
Elf* elf, const Elf_Scn* section, const GElf_Shdr* shdr, Elf_Data* data) {
GElf_Ehdr ehdr = {};
}
switch (ehdr.e_machine) {
-#if 0
case EM_AARCH64:
r = __pakfire_file_check_cf_protection_aarch64(file, endianess, type, payload);
if (r)
return r;
break;
-#endif
case EM_X86_64:
r = __pakfire_file_check_cf_protection_x86(file, endianess, type, payload);
break;
default:
- ERROR(file->pakfire, "Unsupported ELF type\n");
+ ERROR(file->pakfire, "Unsupported ELF type (%d)\n", ehdr.e_machine);
return 1;
}