summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-02-15 13:22:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-02-15 13:22:10 (GMT)
commit04b1ee00d25383f977f59703e4c0bc66ad1faa81 (patch)
treea2c30ff10b9720f5377d230a4a23bd85aa3dcdc6 /src
parentcf0d30509224a887ecb9bf371a76eb070d3f2eb3 (diff)
Identified Elf imported symbols without waiting for the end of disassembling.
Diffstat (limited to 'src')
-rw-r--r--src/format/format.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/format/format.c b/src/format/format.c
index 6968dcc..e782996 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -827,9 +827,7 @@ bool g_binary_format_add_symbol(GBinFormat *format, GBinSymbol *symbol)
range = g_binary_symbol_get_range(symbol);
addr = get_mrange_addr(range);
- assert(has_phys_addr(addr)
- || g_binary_symbol_get_status(symbol) == SSS_IMPORTED
- || g_binary_symbol_get_status(symbol) == SSS_DYNAMIC);
+ assert(has_phys_addr(addr) || g_binary_symbol_get_status(symbol) == SSS_DYNAMIC);
#endif
g_binary_format_lock_unlock_symbols_wr(format, true);
@@ -923,10 +921,7 @@ bool g_binary_format_add_symbols(GBinFormat *format, GBinSymbol **symbols, size_
range = g_binary_symbol_get_range(symbols[i]);
addr = get_mrange_addr(range);
- assert(has_phys_addr(addr)
- || g_binary_symbol_get_status(symbols[i]) == SSS_IMPORTED
- || g_binary_symbol_get_status(symbols[i]) == SSS_DYNAMIC);
-
+ assert(has_phys_addr(addr) || g_binary_symbol_get_status(symbols[i]) == SSS_DYNAMIC);
if (has_phys_addr(addr))
{