dwarfindex: fix number of symbols calculation

This commit is contained in:
Omar Sandoval 2018-06-25 21:47:53 -07:00
parent d88ad8bd1d
commit 68ebade7fa

View File

@ -646,7 +646,7 @@ static int apply_relocation(struct section *section,
reloc = &((Elf64_Rela *)rela_section->buffer)[i];
syms = (Elf64_Sym *)symtab->buffer;
num_syms = symtab->size / sizeof(Elf64_Rela);
num_syms = symtab->size / sizeof(Elf64_Sym);
p = section->buffer + reloc->r_offset;
r_sym = reloc->r_info >> 32;