def get_dynsym_datas(elf_data, elf_file, skip_import=True):
    """
    获取符号/方法的相关信息（符号名、符号数据）。
    """
    f = elf_data
    dynsym_datas = []
    symbol_table = elf_file.get_section_by_name('.dynsym')
    if symbol_table:
        for symbol in symbol_table.iter_symbols():
            if (skip_import and symbol.entry.st_size == 0 or symbol.entry.
                st_info.type != 'STT_FUNC'):
                continue
            f.seek(0)
            symbol_addr = symbol.entry.st_value & 65534
            f.seek(symbol_addr)
            symbol_hexs = ''
            size = symbol.entry.st_size
            if symbol.entry.st_size > 80:
                size = 80
            for x in f.read(size):
                op = str(hex(x)).upper()[2:]
                if len(op) == 1:
                    op = '0' + op
                symbol_hexs = symbol_hexs + op
            item = {}
            item['name'] = symbol.name
            item['data'] = symbol_hexs
            dynsym_datas.append(item)
    return dynsym_datas
