Index: ELFObjectFile.h =================================================================== --- ELFObjectFile.h +++ ELFObjectFile.h @@ -781,12 +781,9 @@ template uint64_t ELFObjectFile::getRelocationOffset(DataRefImpl Rel) const { - assert(EF.getHeader()->e_type == ELF::ET_REL && - "Only relocatable object files have relocation offsets"); const Elf_Shdr *sec = getRelSection(Rel); if (sec->sh_type == ELF::SHT_REL) return getRel(Rel)->r_offset; - return getRela(Rel)->r_offset; }