mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-01 17:11:51 +00:00
Revert "format/elf: fix v2p/p2v in relocs"
This reverts commit ecb8a9d769703b1fa2e5876d5b365bdfc8772a4c.
This commit is contained in:
parent
ecb8a9d769
commit
354a40836a
@ -2456,13 +2456,13 @@ RBinElfReloc* Elf_(r_bin_elf_get_relocs)(ELFOBJ *bin) {
|
||||
if (bin->ehdr.e_type == ET_REL) {
|
||||
if (bin->g_sections[i].info < bin->ehdr.e_shnum && bin->shdr) {
|
||||
ret[rel].rva = bin->shdr[bin->g_sections[i].info].sh_offset + ret[rel].offset;
|
||||
ret[rel].rva = Elf_(r_bin_elf_p2v_new) (bin, ret[rel].rva);
|
||||
ret[rel].rva = Elf_(r_bin_elf_p2v) (bin, ret[rel].rva);
|
||||
} else {
|
||||
ret[rel].rva = ret[rel].offset;
|
||||
}
|
||||
} else {
|
||||
ret[rel].rva = ret[rel].offset;
|
||||
ret[rel].offset = Elf_(r_bin_elf_v2p_new) (bin, ret[rel].offset);
|
||||
ret[rel].offset = Elf_(r_bin_elf_v2p) (bin, ret[rel].offset);
|
||||
}
|
||||
ret[rel].last = 0;
|
||||
if (res < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user