File: //lib/python3.9/site-packages/elftools/elf/__pycache__/dynamic.cpython-39.pyc
a
�#�_�5 � @ s� d dl Z d dlmZ ddlmZmZ ddlmZmZ ddl m
Z
ddlmZ ddl
mZ d d
lmZ d dlmZmZmZ G dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� dee�ZG dd� dee�ZdS )� N)�defaultdict� )�ELFHashTable�GNUHashTable)�Section�Symbol)�
ENUM_D_TAG)�Segment)�RelocationTable� )�ELFError)�
elf_assert�struct_parse�parse_cstring_from_streamc @ s e Zd ZdZdd� Zdd� ZdS )�_DynamicStringTablez� Bare string table based on values found via ELF dynamic tags and
loadable segments only. Good enough for get_string() only.
c C s || _ || _d S )N)�_stream�
_table_offset)�self�stream�table_offset� r �8/usr/lib/python3.9/site-packages/elftools/elf/dynamic.py�__init__ s z_DynamicStringTable.__init__c C s$ t | j| j| �}|r |�d�S dS )zI Get the string stored at the given offset in this string table.
zutf-8� )r r r �decode)r �offset�sr r r �
get_string s z_DynamicStringTable.get_stringN)�__name__�
__module__�__qualname__�__doc__r r r r r r r s r c @ s<