@staticmethod
def _symbol_to_tuple(re_sym):
    """
        Returns a tuple of properties of the given PyELF symbol.
        This is unique enough as a key for both symbol lookup and retrieval.
        """
    entry = re_sym.entry
    return (entry.st_name, entry.st_value, entry.st_size, entry.st_info.
        bind, entry.st_info.type, entry.st_shndx)
