diff --git a/pwnlib/elf/elf.py b/pwnlib/elf/elf.py index acb0a2d7a..5188003e9 100644 --- a/pwnlib/elf/elf.py +++ b/pwnlib/elf/elf.py @@ -908,10 +908,9 @@ def _populate_symbols(self): continue for symbol in _iter_symbols(section): - value = symbol.entry.st_value - if not value: + if not symbol.name: continue - self.symbols[symbol.name] = value + self.symbols[symbol.name] = symbol.entry.st_value def _populate_synthetic_symbols(self): """Adds symbols from the GOT and PLT to the symbols dictionary.