Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Elf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
# Copyright (C) 2007 Invisigoth - See LICENSE file for details
import io
import logging
import envi.bits as e_bits

from stat import *
from Elf.elf_lookup import *
import vstruct
import vstruct.defs.elf as vs_elf
import vstruct.primitives as vs_prim

logger = logging.getLogger(__name__)

HAS_STRING = [DT_NEEDED, DT_SONAME]

class Elf(vs_elf.Elf32, vs_elf.Elf64):
Expand Down Expand Up @@ -98,6 +99,8 @@ def __init__(self, fd, inmem=False):
self.symbols_by_addr = {}
self.dynamics = [] # deprecated - 2019-10-21
self.dynamic_symbols = []


self.dynstrtabmeta = (None, None)
self.dynstrtab = []
self.dynsymtabct = None # populated by _parseDynStrs()
Expand Down Expand Up @@ -127,7 +130,6 @@ def __init__(self, fd, inmem=False):
except Exception as e:
logger.warning("Exception parsing Dynamics from Sections: %r" % e, exc_info=1)


# load symbols and relocs from DYNAMICS
try:
logger.info('self._parseDynStrs')
Expand Down
Loading