mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 19:47:31 +00:00
Fix elf-arm-main regression
This commit is contained in:
parent
23ac83c26e
commit
c72abfeff1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user