File: //lib/python3.9/site-packages/elftools/elf/__pycache__/relocation.cpython-39.pyc
a
�#�_�/ � @ s� d dl mZ ddlmZ ddlmZmZ ddlmZ ddl m
Z
mZmZm
Z
mZmZ G dd � d e�ZG d
d� de�ZG dd
� d
ee�ZG dd� de�ZdS )� )�
namedtuple� )�ELFRelocationError)�
elf_assert�struct_parse� )�Section)�ENUM_RELOC_TYPE_i386�ENUM_RELOC_TYPE_x64�ENUM_RELOC_TYPE_MIPS�ENUM_RELOC_TYPE_ARM�ENUM_RELOC_TYPE_AARCH64�
ENUM_D_TAGc @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� ZdS )
�
Relocationz� Relocation object - representing a single relocation entry. Allows
dictionary-like access to the entry's fields.
Can be either a REL or RELA relocation.
c C s || _ || _d S �N)�entry�elffile)�selfr r � r �;/usr/lib/python3.9/site-packages/elftools/elf/relocation.py�__init__ s zRelocation.__init__c C s
d| j v S )z6 Is this a RELA relocation? If not, it's REL.
�r_addend�r �r r r r �is_RELA s zRelocation.is_RELAc C s
| j | S )z% Dict-like access to entries
r )r �namer r r �__getitem__"