diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-03-01 22:54:45 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-03-01 22:54:45 (GMT) |
commit | 0c638aecff9482b93621d77279ac77a8788584e9 (patch) | |
tree | c207e648c9d8f8429a29ba1c364fb2293dd4274b /src/format/flat.c | |
parent | eb68c77804d9b85bc9b3c5a87ba3f64dd83afce1 (diff) |
Given some priority to Elf PLT entries during the disassembly process.
Diffstat (limited to 'src/format/flat.c')
-rw-r--r-- | src/format/flat.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/format/flat.c b/src/format/flat.c index 1ae813a..a9081d8 100644 --- a/src/format/flat.c +++ b/src/format/flat.c @@ -377,10 +377,14 @@ static bool g_flat_format_get_main_address(GFlatFormat *format, vmpa2t *addr) base = G_BIN_FORMAT(format); - result = (base->ep_count > 0); + g_rw_lock_reader_lock(&base->pt_lock); + + result = (base->pt_count[DPL_ENTRY_POINT] > 0); if (result) - init_vmpa(addr, 0, base->entry_points[0]); + init_vmpa(addr, 0, base->start_points[DPL_ENTRY_POINT][0]); + + g_rw_lock_reader_unlock(&base->pt_lock); return result; |