Fix elf-arm-main regression

This commit is contained in:
pancake 2019-04-15 00:11:46 +02:00
parent 23ac83c26e
commit c72abfeff1

View File

@ -1908,7 +1908,7 @@ ut64 Elf_(r_bin_elf_get_main_offset)(ELFOBJ *bin) {
delta = 0x30;
}
if (delta) {
ut64 pa = Elf_(r_bin_elf_v2p) (bin, r_read_le32 (&buf[0x30-1]) & ~1);
ut64 pa = Elf_(r_bin_elf_v2p) (bin, r_read_le32 (&buf[delta-1]) & ~1);
if (pa < r_buf_size (bin->b)) {
return pa;
}