mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 09:43:06 +00:00
dwarfindex: fix number of symbols calculation
This commit is contained in:
parent
d88ad8bd1d
commit
68ebade7fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user