Ë
    Öùd‘  ã                   óª  — d dl Z d dl mZ d dlZd dlZd dlZ	 d dlZ ej                  «       Zddl
mZmZ ddlmZmZ ddlmZ dd	lmZmZmZmZmZmZmZmZmZmZ dd
lmZmZ ddl m!Z!m"Z"m#Z# ddl$m%Z%m&Z&m'Z' ddl(m)Z)m*Z*m+Z+ ddl,m-Z-m.Z.m/Z/ ddl0m1Z1 ddl2m3Z3m4Z4 ddl5m6Z6  G d„ de7«      Z8y# e$ r" 	 d dl	Z	e	j                  Zn# e$ r dZY nw xY wY Œ¤w xY w)é    N)ÚBytesIOi   é   )ÚELFErrorÚELFParseError)Ústruct_parseÚ
elf_asserté   )Ú
ELFStructs)
ÚSectionÚStringTableSectionÚSymbolTableSectionÚSymbolTableIndexSectionÚSUNWSyminfoTableSectionÚNullSectionÚNoteSectionÚStabSectionÚARMAttributesSectionÚRISCVAttributesSection)ÚDynamicSectionÚDynamicSegment)ÚRelocationSectionÚRelocationHandlerÚRelrRelocationSection)ÚGNUVerNeedSectionÚGNUVerDefSectionÚGNUVerSymSection)ÚSegmentÚInterpSegmentÚNoteSegment)Ú	DWARFInfoÚDebugSectionDescriptorÚDwarfConfig)Ú	EHABIInfo)ÚELFHashSectionÚGNUHashSection)ÚSHN_INDICESc                   ó0  — e Zd ZdZd.d„Zed„ «       Zd„ Zd„ Zd„ Z	d„ Z
d.d	„Zd
„ Zd„ Zd.d„Zd/d„Zd„ Zd0d„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z d„ Z!d „ Z"d!„ Z#d"„ Z$d#„ Z%d$„ Z&d%„ Z'd&„ Z(d'„ Z)d(„ Z*d)„ Z+e,d*„ «       Z-d+„ Z.d,„ Z/d-„ Z0y)1ÚELFFilea¤   Creation: the constructor accepts a stream (file-like object) with the
        contents of an ELF file.

        Optionally, a stream_loader function can be passed as the second
        argument. This stream_loader function takes a relative file path to
        load a supplementary object file, and returns a stream suitable for
        creating a new ELFFile. Currently, the only such relative file path is
        obtained from the supplementary object files.

        Accessible attributes:

            stream:
                The stream holding the data of the file - must be a binary
                stream (bytes, not string).

            elfclass:
                32 or 64 - specifies the word size of the target machine

            little_endian:
                boolean - specifies the target machine's endianness

            elftype:
                string or int, either known value of E_TYPE enum defining ELF
                type (e.g. executable, dynamic library or core dump) or integral
                unparsed value

            header:
                the complete ELF file header

            e_ident_raw:
                the raw e_ident field of the header
    Nc                 ó|  — || _         | j                   j                  dt        j                  «       | j                   j	                  «       | _        | j                  «        t        | j                  | j                  ¬«      | _
        | j                  j                  «        | j                  «       | _        | j                  j                  | d   | d   | d   d   «       | j                   j                  d«       | j                   j                  d«      | _        | j#                  «       | _        d | _        || _        y )Nr   )Úlittle_endianÚelfclassÚe_typeÚ	e_machineÚe_identÚEI_OSABIé   )ÚstreamÚseekÚioÚSEEK_ENDÚtellÚ
stream_lenÚ_identify_filer
   r*   r+   ÚstructsÚcreate_basic_structsÚ_parse_elf_headerÚheaderÚcreate_advanced_structsÚreadÚe_ident_rawÚ_get_section_header_stringtableÚ_section_header_stringtableÚ_section_name_mapÚstream_loader)Úselfr1   rB   s      ú6/usr/lib/python3/dist-packages/elftools/elf/elffile.pyÚ__init__zELFFile.__init__O   sý   € ØˆŒØ�‰×Ñ˜œBŸK™KÔ(ØŸ+™+×*Ñ*Ó,ˆŒà×ÑÔÜ!Ø×,Ñ,Ø—]‘]ô$ˆŒð 	�‰×)Ñ)Ô+Ø×,Ñ,Ó.ˆŒØ�‰×,Ñ,Ø�X‘Ø�[Ñ!Ø�Y‘ 
Ñ+ô	-ð 	�‰×Ñ˜ÔØŸ;™;×+Ñ+¨BÓ/ˆÔð ×0Ñ0Ó2ð 	Ô(à!%ˆÔØ*ˆÕó    c                 ó|   ‡— t         j                  j                  |«      Šˆfd„}t        |d«      }t	        ||«      S )zªTakes a path to a file on the local filesystem, and returns an
        ELFFile from it, setting up a correct stream_loader relative to the
        original file.
        c                 óš   •— t         j                  j                  | «      s t         j                  j                  ‰| «      } t	        | d«      S )NÚrb)ÚosÚpathÚisabsÚjoinÚopen)Úelf_pathÚbase_directorys    €rD   Úloaderz&ELFFile.load_from_path.<locals>.loadern   s7   ø€ ä—7‘7—=‘= Ô*ÜŸ7™7Ÿ<™<¨Ø(0ó2�ä˜ $Ó'Ð'rF   rI   )rJ   rK   ÚdirnamerN   r(   )ÚclsrK   rQ   r1   rP   s       @rD   Úload_from_pathzELFFile.load_from_pathg   s7   ø€ ô Ÿ™Ÿ™¨Ó.ˆô	(ô �d˜DÓ!ˆÜ�v˜vÓ&Ð&rF   c                 óV   — | d   dk(  ry| d   dk(  r| j                  d«      d   S | d   S )z( Number of sections in the file
        Úe_shoffr   Úe_shnumÚsh_size)Ú_get_section_header©rC   s    rD   Únum_sectionszELFFile.num_sectionsw   sA   € ð �	‰?˜aÒØð �	‰?˜aÒØ×+Ñ+¨AÓ.¨yÑ9Ð9Ø�I‰ÐrF   c                 óF   — | j                  |«      }| j                  |«      S )z^ Get the section at index #n from the file (Section object or a
            subclass)
        )rY   Ú_make_section)rC   ÚnÚsection_headers      rD   Úget_sectionzELFFile.get_sectionˆ   s%   € ð ×1Ñ1°!Ó4ˆØ×!Ñ! .Ó1Ð1rF   c                 óœ   — | j                   €| j                  «        | j                   j                  |d«      }|€dS | j                  |«      S )zb Get a section from the file, by name. Return None if no such
            section exists.
        N)rA   Ú_make_section_name_mapÚgetr`   )rC   ÚnameÚsecnums      rD   Úget_section_by_namezELFFile.get_section_by_name�   sN   € ð ×!Ñ!Ð)Ø×'Ñ'Ô)Ø×'Ñ'×+Ñ+¨D°$Ó7ˆØ�~ˆtÐC¨4×+;Ñ+;¸FÓ+CÐCrF   c                 ór   — | j                   €| j                  «        | j                   j                  |d«      S )zh Gets the index of the section by name. Return None if no such
            section name exists.
        N)rA   rb   rc   )rC   Úsection_names     rD   Úget_section_indexzELFFile.get_section_index›   s5   € ð ×!Ñ!Ð)Ø×'Ñ'Ô)Ø×%Ñ%×)Ñ)¨,¸Ó=Ð=rF   c              #   óˆ   K  — t        | j                  «       «      D ]"  }| j                  |«      }|�	|d   |k(  sŒ|–— Œ$ y­w)a>   Yield all the sections in the file. If the optional |type|
            parameter is passed, this method will only yield sections of the
            given type. The parameter value must be a string containing the
            name of the type as defined in the ELF specification, e.g.
            'SHT_SYMTAB'.
        NÚsh_type)Úranger[   r`   )rC   ÚtypeÚiÚsections       rD   Úiter_sectionszELFFile.iter_sections¦   sK   è ø€ ô �t×(Ñ(Ó*Ó+ò 	ˆAØ×&Ñ& qÓ)ˆGØˆ|˜w yÑ1°TÓ9Ø“ñ	ùó
   ‚8A»Ac                 óD   — | d   dk  r| d   S | j                  d«      d   S )z( Number of segments in the file
        Úe_phnumiÿÿ  r   Úsh_info)r`   rZ   s    rD   Únum_segmentszELFFile.num_segments²   s0   € ð �	‰?˜VÒ#Ø˜	‘?Ð"à×#Ñ# AÓ& yÑ1Ð1rF   c                 óF   — | j                  |«      }| j                  |«      S )zD Get the segment at index #n from the file (Segment object)
        )Ú_get_segment_headerÚ_make_segment)rC   r^   Úsegment_headers      rD   Úget_segmentzELFFile.get_segmentÁ   s%   € ð ×1Ñ1°!Ó4ˆØ×!Ñ! .Ó1Ð1rF   c              #   óˆ   K  — t        | j                  «       «      D ]"  }| j                  |«      }|�	|d   |k(  sŒ|–— Œ$ y­w)a;   Yield all the segments in the file. If the optional |type|
            parameter is passed, this method will only yield segments of the
            given type. The parameter value must be a string containing the
            name of the type as defined in the ELF specification, e.g.
            'PT_LOAD'.
        NÚp_type)rl   ru   rz   )rC   rm   rn   Úsegments       rD   Úiter_segmentszELFFile.iter_segmentsÇ   sK   è ø€ ô �t×(Ñ(Ó*Ó+ò 	ˆAØ×&Ñ& qÓ)ˆGØˆ|˜w xÑ0°DÓ8Ø“ñ	ùrq   c              #   ó”   K  — ||z   }| j                  d¬«      D ]*  }||d   k\  sŒ||d   |d   z   k  sŒ||d   z
  |d   z   –— Œ, y­w)zÊ Yield a file offset for each ELF segment containing a memory region.

            A memory region is defined by the range [start...start+size). The
            offset of the region is yielded.
        ÚPT_LOAD©rm   Úp_vaddrÚp_fileszÚp_offsetN)r~   )rC   ÚstartÚsizeÚendÚsegs        rD   Úaddress_offsetszELFFile.address_offsetsÓ   sg   è ø€ ð �d‰lˆà×%Ñ%¨9Ð%Ó5ò 	?ˆCØ˜˜Y™Ó'Ø�s˜9‘~¨¨J©Ñ7Ó7Ø˜c )™nÑ,¨s°:©Ñ>Ó>ñ	?ùs   ‚#A¦AµAc                 ó‚   — t        | j                  d«      xs$ | j                  d«      xs | j                  d«      «      S )zÒ Check whether this file appears to have debugging information.
            We assume that if it has the .debug_info or .zdebug_info section, it
            has all the other required sections as well.
        ú.debug_infoú.zdebug_infoú	.eh_frame)Úboolrf   rZ   s    rD   Úhas_dwarf_infozELFFile.has_dwarf_infoà   sD   € ô
 �D×,Ñ,¨]Ó;ò 2Ø×$Ñ$ ^Ó4ò2à×$Ñ$ [Ó1ó3ð 	3rF   c                 óÞ  — d}t        | j                  d«      «      }|rt        t        d„ |«      «      }|dz  }|\  }}}}}	}
}}}}}}}}}}}}i }|D ]V  }| j                  |«      }|€d||<   Œ| j	                  ||«      }|r"|j                  d«      r| j                  |«      }|||<   ŒX t        di dt        | j                  | j                  dz  | j                  «       ¬	«      “d
||   “d||   “d||   “d||
   “d||   “d||   “d||   “d||   “d||	   “d||   “d||   “d||   “d||   “d||   “d||   “d||   “d||   “d||   “Ž}|r| j                  |«      |_        |S )aw   Return a DWARFInfo object representing the debugging information in
            this file.

            If relocate_dwarf_sections is True, relocations for DWARF sections
            are looked up and applied.

            If follow_links is True, we will try to load the supplementary
            object file (if any), and use it to resolve references and imports.
        )r‹   z.debug_arangesz.debug_abbrevz
.debug_strz.debug_linez.debug_framez
.debug_locz.debug_rangesz.debug_pubtypesz.debug_pubnamesz.debug_addrz.debug_str_offsetsz.debug_line_strz.debug_loclistsz.debug_rnglistsz
.debug_supz.gnu_debugaltlinkrŒ   c                 ó   — d| dd  z   S )Nú.zr	   © )Úxs    rD   ú<lambda>z(ELFFile.get_dwarf_info.<locals>.<lambda>  s   € °°q¸¸°u±€ rF   )r�   Nr’   Úconfigé   )r*   Údefault_address_sizeÚmachine_archÚdebug_info_secÚdebug_aranges_secÚdebug_abbrev_secÚdebug_frame_secÚeh_frame_secÚdebug_str_secÚdebug_loc_secÚdebug_ranges_secÚdebug_line_secÚdebug_pubtypes_secÚdebug_pubnames_secÚdebug_addr_secÚdebug_str_offsets_secÚdebug_line_str_secÚdebug_loclists_secÚdebug_rnglists_secÚdebug_sup_secÚgnu_debugaltlink_secr“   )rŽ   rf   ÚtupleÚmapÚ_read_dwarf_sectionÚ
startswithÚ_decompress_dwarf_sectionr    r"   r*   r+   Úget_machine_archÚget_supplementary_dwarfinfoÚsupplementary_dwarfinfo)rC   Úrelocate_dwarf_sectionsÚfollow_linksÚsection_namesÚ
compressedÚdebug_info_sec_nameÚdebug_aranges_sec_nameÚdebug_abbrev_sec_nameÚdebug_str_sec_nameÚdebug_line_sec_nameÚdebug_frame_sec_nameÚdebug_loc_sec_nameÚdebug_ranges_sec_nameÚdebug_pubtypes_nameÚdebug_pubnames_nameÚdebug_addr_nameÚdebug_str_offsets_nameÚdebug_line_str_nameÚdebug_loclists_sec_nameÚdebug_rnglists_sec_nameÚdebug_sup_nameÚgnu_debugaltlink_nameÚeh_frame_sec_nameÚdebug_sectionsÚsecnamero   Údwarf_sectionÚ	dwarfinfos                               rD   Úget_dwarf_infozELFFile.get_dwarf_infoé   so  € ð<ˆô ˜$×2Ñ2°>ÓBÓCˆ
ÙÜ!¤#Ñ&<¸mÓ"LÓMˆMð 	˜Ñ(ˆð FSñ	CÐ	Ð4Ð6KØ	Ð0Ð2FØ	Ð2Ð4GØ	˜oÐ/EØ	Ð5Ð7NØ	Ð.Ð0AàˆØ$ò 
	8ˆGØ×.Ñ.¨wÓ7ˆGØˆØ*.�˜wÒ'à $× 8Ñ 8ØØ+ó!-�ñ  '×"4Ñ"4°TÔ":Ø$(×$BÑ$BÀ=Ó$Q�MØ*7�˜wÒ'ð
	8ô  ò Ü"Ø"&×"4Ñ"4Ø)-¯©¸!Ñ);Ø!%×!6Ñ!6Ó!8õ:ðð
  .Ð.AÒBðð #1Ð1GÒ"Hðð "0Ð0EÒ!Fðð !/Ð/CÒ Dðð ,Ð,=Ò>ðð -Ð-?Ò@ðð -Ð-?Ò@ðð "0Ð0EÒ!Fðð  .Ð.AÒBðð $2Ð2EÒ#Fðð $2Ð2EÒ#Fðð   .¨oÒ>ð!ð" '5Ð5KÒ&Lð#ð$ $2Ð2EÒ#Fð%ð& $2Ð2IÒ#Jð'ð( $2Ð2IÒ#Jð)ð* -¨^Ò<ð+ð, &4Ð4IÒ%Jð-ˆ	ñ0 Ø04×0PÑ0PÐQZÓ0[ˆIÔ-ØÐrF   c                 ó¼   — |j                  «       }|�J| j                  �>| j                  |«      }t        |«      }|j                  «       }|j	                  «        |S y)zŽ
        Read supplementary dwarfinfo, from either the standared .debug_sup
        section or the GNU proprietary .gnu_debugaltlink.
        N)Úparse_debugsupinforB   r(   rÎ   Úclose)rC   rÍ   Úsupfilepathr1   Ú
supelffileÚ
dwarf_infos         rD   r²   z#ELFFile.get_supplementary_dwarfinfo;  s\   € ð
  ×2Ñ2Ó4ˆØÐ" t×'9Ñ'9Ð'EØ×'Ñ'¨Ó4ˆFÜ  ›ˆJØ#×2Ñ2Ó4ˆJØ�L‰LŒNØÐØrF   c                 ó8   — t        | j                  d¬«      «      S )zT Check whether this file appears to have arm exception handler index table.
        ÚSHT_ARM_EXIDXr�   )Úanyrp   rZ   s    rD   Úhas_ehabi_infozELFFile.has_ehabi_infoJ  s   € ô �4×%Ñ%¨?Ð%Ó;Ó<Ð<rF   c                 óÀ   — g }| d   dk(  rJ d«       ‚| j                  d¬«      D ]'  }|j                  t        || j                  «      «       Œ) t	        |«      dkD  r|S dS )zê Generally, shared library and executable contain 1 .ARM.exidx section.
            Object file contains many .ARM.exidx sections.
            So we must traverse every section and filter sections whose type is SHT_ARM_EXIDX.
        r,   ÚET_RELz?Current version of pyelftools doesn't support relocatable file.rÖ   r�   r   N)rp   Úappendr#   r*   Úlen)rC   Ú_retro   s      rD   Úget_ehabi_infoszELFFile.get_ehabi_infosO  sm   € ð
 ˆØ�‰>˜XÒ%à[Ð[Ó[�5Ø×)Ñ)¨Ð)Ó?ò 	@ˆGØ�K‰Kœ	 '¨4×+=Ñ+=Ó>Õ?ð	@ä˜4“y 1’}ˆtÐ.¨$Ð.rF   c                 ó   — i dd“dd“dd“dd“d	d
“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd “d!d"“i d#d$“d%d&“d'd(“d)d*“d+d,“d-d.“d/d0“d1d2“d3d4“d5d6“d7d8“d9d:“d;d<“d=d>“d?d@“dAdB“dCdD“¥i dEdF“dGdH“dIdJ“dKdL“dMdN“dOdP“dQdR“dSdT“dUdV“dWdX“dYdZ“d[d\“d]d^“d_d`“dadb“dcdd“dedf“¥i dgdh“didj“dkdl“dmdn“dodp“dqdr“dsdt“dudv“dwdx“dydz“d{d|“d}d~“dd€“d�d‚“dƒd„“d…d†“d‡dˆ“¥i d‰dŠ“d‹dŒ“d�dŽ“d�d�“d‘d’“d“d”“d•d–“d—d˜“d™dš“d›dœ“d�dž“dŸd “d¡d¢“d£d¤“d¥d¦“d§d¨“d©dª“¥i d«d¬“d­d®“d¯d°“d±d²“d³d´“dµd¶“d·d¸“d¹dº“d»d¼“d½d¾“d¿dÀ“dÁdÂ“dÃdÄ“dÅdÆ“dÇdÈ“dÉdÊ“dËdÌ“¥i dÍdÎ“dÏdÐ“dÑdÒ“dÓdÔ“dÕdÖ“d×dØ“dÙdÚ“dÛdÜ“dÝdÞ“dßdà“dádâ“dãdä“dådæ“dçdè“dédê“dëdì“dídî“¥i dïdð“dñdò“dódô“dõdö“d÷dø“dùdú“dûdü“dýdü“dþdÿ“�d �d“�d�d“�d�d“�d�d“�d�d	“�d
�d“�d�d“�d�d“¥i �d�d“�d�d“�d�d“�d�d“�d�d“�d�d“�d�d“�d�d“�d �d!“�d"�d#“�d$�d%“�d&�d'“�d(�d)“�d*�d+“�d,�d-“�d.�d/“�d0�d1“¥i �d2�d3“�d4�d5“�d6�d7“�d8�d9“�d:�d;“�d<�d=“�d>�d?“�d@�dA“�dB�dC“�dD�dC“�dE�dC“�dF�dC“�dG�dC“�dH�dI“�dJ�dK“�dL�dM“�dN�dO“¥i �dP�dQ“�dR�dS“�dT�dU“�dV�dW“�dX�dY“�dZ�d[“�d\�d]“�d^�d_“�d`�da“�db�dc“�dd�de“�df�dg“�dh�di“�dj�dk“�dl�dm“�dn�do“¥}|j                  | �dp   �dq«      S (r  zK Return the machine architecture, as detected from the ELF header.
        ÚEM_M32zAT&T WE 32100ÚEM_SPARCÚSPARCÚEM_386Úx86ÚEM_68KzMotorola 68000ÚEM_88KzMotorola 88000ÚEM_IAMCUz	Intel MCUÚEM_860zIntel 80860ÚEM_MIPSÚMIPSÚEM_S370zIBM System/370ÚEM_MIPS_RS3_LEzMIPS RS3000 Little-endianÚ	EM_PARISCzHewlett-Packard PA-RISCÚ	EM_VPP500zFujitsu VPP500ÚEM_SPARC32PLUSzEnhanced SPARCÚEM_960zIntel 80960ÚEM_PPCÚPowerPCÚEM_PPC64z64-bit PowerPCÚEM_S390zIBM System/390ÚEM_SPUzIBM SPU/SPCÚEM_V800zNEC V800ÚEM_FR20zFujitsu FR20ÚEM_RH32z	TRW RH-32ÚEM_RCEzMotorola RCEÚEM_ARMÚARMÚEM_ALPHAzDigital AlphaÚEM_SHz
Hitachi SHÚ
EM_SPARCV9zSPARC Version 9Ú
EM_TRICOREz"Siemens TriCore embedded processorÚEM_ARCz.Argonaut RISC Core, Argonaut Technologies Inc.Ú	EM_H8_300zHitachi H8/300Ú
EM_H8_300HzHitachi H8/300HÚEM_H8SzHitachi H8SÚ	EM_H8_500zHitachi H8/500ÚEM_IA_64zIntel IA-64Ú	EM_MIPS_XzMIPS-XÚEM_COLDFIREzMotorola ColdFireÚ	EM_68HC12zMotorola M68HC12ÚEM_MMAzFujitsu MMAÚEM_PCPzSiemens PCPÚEM_NCPUz	Sony nCPUÚEM_NDR1z
Denso NDR1ÚEM_STARCOREzMotorola Star*CoreÚEM_ME16zToyota ME16ÚEM_ST100zSTMicroelectronics ST100ÚEM_TINYJzAdvanced Logic TinyJÚ	EM_X86_64Úx64ÚEM_PDSPzSony DSPÚEM_PDP10zDigital Equipment PDP-10ÚEM_PDP11zDigital Equipment PDP-11ÚEM_FX66zSiemens FX66Ú
EM_ST9PLUSz STMicroelectronics ST9+ 8/16 bitÚEM_ST7zSTMicroelectronics ST7 8-bitÚ	EM_68HC16zMotorola MC68HC16Ú	EM_68HC11zMotorola MC68HC11Ú	EM_68HC08zMotorola MC68HC08Ú	EM_68HC05zMotorola MC68HC05ÚEM_SVXzSilicon Graphics SVxÚEM_ST19zSTMicroelectronics ST19 8-bitÚEM_VAXzDigital VAXÚEM_CRISzAxis Communications 32-bitÚ
EM_JAVELINzInfineon Technologies 32-bitÚEM_FIREPATHzElement 14 64-bit DSPÚEM_ZSPzLSI Logic 16-bit DSPÚEM_MMIXz!Donald Knuth's educational 64-bitÚEM_HUANYz3Harvard University machine-independent object filesÚEM_PRISMzSiTera PrismÚEM_AVRzAtmel AVR 8-bitÚEM_FR30zFujitsu FR30ÚEM_D10VzMitsubishi D10VÚEM_D30VzMitsubishi D30VÚEM_V850zNEC v850ÚEM_M32RzMitsubishi M32RÚ
EM_MN10300zMatsushita MN10300Ú
EM_MN10200zMatsushita MN10200ÚEM_PJÚpicoJavaÚEM_OPENRISCzOpenRISC 32-bitÚEM_ARC_COMPACTzARC International ARCompactÚ	EM_XTENSAzTensilica XtensaÚEM_VIDEOCOREzAlphamosaic VideoCoreÚ
EM_TMM_GPPzThompson MultimediaÚEM_NS32Kz#National Semiconductor 32000 seriesÚEM_TPCzTenor Network TPCÚEM_SNP1KzTrebia SNP 1000ÚEM_ST200zSTMicroelectronics ST200ÚEM_IP2KzUbicom IP2xxxÚEM_MAXÚMAXÚEM_CRz"National Semiconductor CompactRISCÚ	EM_F2MC16zFujitsu F2MC16Ú	EM_MSP430zTexas Instruments msp430ÚEM_BLACKFINzAnalog Devices BlackfinÚ	EM_SE_C33zSeiko Epson S1C33ÚEM_SEPÚSharpÚEM_ARCAz	Arca RISCÚ
EM_UNICOREzPKU-Unity MPRCÚ	EM_EXCESSÚeXcessÚEM_DXPz,Icera Semiconductor Deep Execution ProcessorÚEM_ALTERA_NIOS2zAltera Nios IIÚEM_CRXz&National Semiconductor CompactRISC CRXÚEM_XGATEzMotorola XGATEÚEM_C166zInfineon C16x/XC16xÚEM_M16CzRenesas M16CÚEM_DSPIC30FzMicrochip Technology dsPIC30FÚEM_CEz(Freescale Communication Engine RISC coreÚEM_M32CzRenesas M32CÚ
EM_TSK3000zAltium TSK3000ÚEM_RS08zFreescale RS08ÚEM_SHARCzAnalog Devices SHARCÚEM_ECOG2zCyan Technology eCOG2Ú	EM_SCORE7zSunplus S+core7 RISCÚEM_DSP24z New Japan Radio (NJR) 24-bit DSPÚEM_VIDEOCORE3zBroadcom VideoCore IIIÚEM_LATTICEMICO32zLattice FPGA RISCÚ	EM_SE_C17zSeiko Epson C17ÚEM_TI_C6000zTI TMS320C6000ÚEM_TI_C2000zTI TMS320C2000ÚEM_TI_C5500zTI TMS320C55xÚEM_TI_ARP32z#TI Application Specific RISC, 32bitÚ	EM_TI_PRUzTI Programmable Realtime UnitÚEM_MMDSP_PLUSzSTMicroelectronics 64bit VLIWÚEM_CYPRESS_M8CzCypress M8CÚEM_R32CzRenesas R32CÚEM_TRIMEDIAzNXP Semiconductors TriMediaÚEM_QDSP6zQUALCOMM DSP6ÚEM_8051z
Intel 8051Ú	EM_STXP7XzSTMicroelectronics STxP7xÚEM_NDS32zAndes Technology RISCÚEM_ECOG1zCyan Technology eCOG1XÚ	EM_ECOG1XÚ	EM_MAXQ30zDallas Semiconductor MAXQ30Ú	EM_XIMO16zNew Japan Radio (NJR) 16-bitÚEM_MANIKzM2000 Reconfigurable RISCÚ
EM_CRAYNV2zCray Inc. NV2ÚEM_RXz
Renesas RXÚEM_METAGzImagination Technologies METAÚEM_MCST_ELBRUSzMCST ElbrusÚ	EM_ECOG16zCyan Technology eCOG16ÚEM_CR16z.National Semiconductor CompactRISC CR16 16-bitÚEM_ETPUÚ	FreescaleÚEM_SLE9XzInfineon Technologies SLE9XÚEM_L10Mz
Intel L10MÚEM_K10Mz
Intel K10MÚ
EM_AARCH64ÚAArch64ÚEM_AVR32zAtmel 32-bitÚEM_STM8zSTMicroeletronics STM8 8-bitÚ	EM_TILE64zTilera TILE64Ú
EM_TILEPROzTilera TILEProÚEM_MICROBLAZEzXilinx MicroBlaze 32-bit RISCÚEM_CUDAzNVIDIA CUDAÚ	EM_TILEGXzTilera TILE-GxÚEM_CLOUDSHIELDÚCloudShieldÚEM_COREA_1STz KIPO-KAIST Core-A 1st generationÚEM_COREA_2NDz KIPO-KAIST Core-A 2nd generationÚEM_ARC_COMPACT2zSynopsys ARCompact V2ÚEM_OPEN8zOpen8 8-bit RISCÚEM_RL78zRenesas RL78ÚEM_VIDEOCORE5zBroadcom VideoCore VÚEM_78KORzRenesas 78KORÚ
EM_56800EXzFreescale 56800EXÚEM_BA1z
Beyond BA1ÚEM_BA2z
Beyond BA2ÚEM_XCOREz
XMOS xCOREÚEM_MCHP_PICzMicrochip 8-bit PICÚEM_INTEL205zReserved by IntelÚEM_INTEL206ÚEM_INTEL207ÚEM_INTEL208ÚEM_INTEL209ÚEM_KM32zKM211 KM32 32-bitÚEM_KMX32zKM211 KMX32 32-bitÚEM_KMX16zKM211 KMX16 16-bitÚEM_KMX8zKM211 KMX8 8-bitÚEM_KVARCzKM211 KVARCÚEM_CDPz
Paneve CDPÚEM_COGEÚ	CognitiveÚEM_COOLzBluechip Systems CoolEngineÚEM_NORCzNanoradio Optimized RISCÚEM_CSR_KALIMBAzCSR KalimbaÚEM_Z80z	Zilog Z80Ú	EM_VISIUMÚ
VISIUMcoreÚEM_FT32zFTDI Chip FT32 32-bit RISCÚEM_MOXIEÚMoxieÚ	EM_AMDGPUzAMD GPUÚEM_RISCVzRISC-VÚEM_BPFz%Linux BPF - in-kernel virtual machineÚEM_CSKYzC-SKYÚEM_LOONGARCHÚ	LoongArchÚEM_FRVzFujitsu FR-Vr-   z	<unknown>)rc   )rC   Úarchitecturess     rD   r±   zELFFile.get_machine_arch\  s;  € ð{
Ø ð{
à ð{
ð  ð{
ð Ð!1ð	{
ð
 Ð!1ð{
ð  ð{
ð  ð{
ð  ð{
ð Ð!1ð{
ð Ð!<ð{
ð Ð!:ð{
ð Ð!1ð{
ð Ð!1ð{
ð  ð{
ð  ð{
ð  Ð!1ð!{
ð" Ð!1ñ#{
ð$  ð%{
ð&  ð'{
ð(  ð){
ð*  ð+{
ð,  ð-{
ð.  ð/{
ð0  ð1{
ð2  ð3{
ð4 Ð!2ð5{
ð6 Ð!Eð7{
ð8 Ð!Qð9{
ð: Ð!1ð;{
ð< Ð!2ð={
ð>  ð?{
ð@ Ð!1ðA{
ðB  ðC{
ðD  òE{
ðF Ð!4ðG{
ðH Ð!3ðI{
ðJ  ðK{
ðL  ðM{
ðN  ðO{
ðP  ðQ{
ðR Ð!5ðS{
ðT  ðU{
ðV Ð!;ðW{
ðX Ð!7ðY{
ðZ  ð[{
ð\  ð]{
ð^ Ð!;ð_{
ð` Ð!;ða{
ðb  ðc{
ðd Ð!Cðe{
ðf Ð!?òg{
ðh Ð!4ði{
ðj Ð!4ðk{
ðl Ð!4ðm{
ðn Ð!4ðo{
ðp Ð!7ðq{
ðr Ð!@ðs{
ðt  ðu{
ðv Ð!=ðw{
ðx Ð!?ðy{
ðz Ð!8ð{{
ð| Ð!7ð}{
ð~ Ð!Eð{
ð@ Ð!VðA{
ðB  ðC{
ðD Ð!2ðE{
ðF  ðG{
ðH Ð!2òI{
ðJ Ð!2ðK{
ðL  ðM{
ðN Ð!2ðO{
ðP Ð!5ðQ{
ðR Ð!5ðS{
ðT  ðU{
ðV Ð!2ðW{
ðX Ð!>ðY{
ðZ Ð!3ð[{
ð\ Ð!8ð]{
ð^ Ð!6ð_{
ð` Ð!Fða{
ðb Ð!4ðc{
ðd Ð!2ðe{
ðf Ð!;ðg{
ðh  ði{
ðj  òk{
ðl Ð!Eðm{
ðn Ð!1ðo{
ðp Ð!;ðq{
ðr Ð!:ðs{
ðt Ð!4ðu{
ðv  ðw{
ðx  ðy{
ðz Ð!1ð{{
ð|  ð}{
ð~ Ð!Oð{
ð@ Ð!1ðA{
ðB Ð!IðC{
ðD Ð!1ðE{
ðF Ð!6ðG{
ðH  ðI{
ðJ Ð!@ðK{
ðL Ð!KòM{
ðN  ðO{
ðP Ð!1ðQ{
ðR Ð!1ðS{
ðT Ð!7ðU{
ðV Ð!8ðW{
ðX Ð!7ðY{
ðZ Ð!Cð[{
ð\ Ð!9ð]{
ð^ Ð!4ð_{
ð` Ð!2ða{
ðb Ð!1ðc{
ðd Ð!1ðe{
ðf  ðg{
ðh Ð!Fði{
ðj Ð!@ðk{
ðl Ð!@ðm{
ðn  òo{
ðp  ðq{
ðr Ð!>ðs{
ðt  ðu{
ðv  ðw{
ðx Ð!<ðy{
ðz Ð!8ð{{
ð| Ð!9ð}{
ð~ Ð!9ð{
ð@ Ð!>ðA{
ñB Ñ!?ðC{
ñD Ñ!<ðE{
ñF ¡ðG{
ñH ¡ðI{
ñJ Ñ!@ðK{
ñL ¡ðM{
ñN Ñ!9ðO{
ñP Ñ!QòQ{
ñR ¡ðS{
ñT Ñ!>ðU{
ñV ¡ðW{
ñX ¡ðY{
ñZ ¡ð[{
ñ\ ¡ð]{
ñ^ Ñ!?ð_{
ñ` ¡ða{
ñb Ñ!1ðc{
ñd Ñ!@ðe{
ñf ¡ðg{
ñh Ñ!1ði{
ñj ¡ðk{
ñl Ñ!Cðm{
ñn Ñ!Cðo{
ñp Ñ!8ðq{
ñr Ñ!3òs{
ñt ¡ðu{
ñv Ñ!7ðw{
ñx ¡ðy{
ñz Ñ!4ð{{
ñ| ¡ð}{
ñ~ ¡ð{
ñ@ ¡ðA{
ñB Ñ!6ðC{
ñD Ñ!4ðE{
ñF Ñ!4ðG{
ñH Ñ!4ðI{
ñJ Ñ!4ðK{
ñL Ñ!4ðM{
ñN Ñ!4ðO{
ñP Ñ!5ðQ{
ñR Ñ!5ðS{
ñT Ñ!3òU{
ñV ¡ðW{
ñX ¡ðY{
ñZ ¡ð[{
ñ\ Ñ!>ð]{
ñ^ Ñ!;ð_{
ñ` ¡ða{
ñb ¡ðc{
ñd ¡ðe{
ñf Ñ!=ðg{
ñh ¡ði{
ñj ¡ðk{
ñl ¡ðm{
ñn Ñ!Hðo{
ñp ¡ðq{
ñr ¡ðs{
ñt ¡ñu{
ˆðz × Ñ  ¡kÑ!2±KÓ@Ð@rF   c                 ó`   — | d   t         j                  k7  r| d   S | j                  d«      d   S )zJ Find the string table section index for the section header table
        Ú
e_shstrndxr   Úsh_link)r&   Ú
SHN_XINDEXrY   rZ   s    rD   Úget_shstrndxzELFFile.get_shstrndx  s8   € ð �Ñ¤×!7Ñ!7Ò7Ø˜Ñ%Ð%à×+Ñ+¨AÓ.¨yÑ9Ð9rF   c                 ó    — | j                   |   S )z6 Implement dict-like access to header entries
        )r;   )rC   rd   s     rD   Ú__getitem__zELFFile.__getitem__-  s   € ð �{‰{˜4Ñ Ð rF   c                 ó¼  — | j                   j                  d«       | j                   j                  d«      }t        |dk(  d«       | j                   j                  d«      }|dk(  rd| _        n$|dk(  rd	| _        nt        d
t        |«      z  «      ‚| j                   j                  d«      }|dk(  rd| _        y|dk(  rd| _        yt        dt        |«      z  «      ‚)zD Verify the ELF file and identify its class and endianness.
        r   é   s   ELFzMagic number does not matchr	   ó   é    ó   é@   zInvalid EI_CLASS %sTFzInvalid EI_DATA %sN)r1   r2   r=   r   r+   r   Úreprr*   )rC   ÚmagicÚei_classÚei_datas       rD   r7   zELFFile._identify_file2  sÊ   € ð 	�‰×Ñ˜ÔØ—‘× Ñ  Ó#ˆÜ�5˜JÑ&Ð(EÔFà—;‘;×#Ñ# AÓ&ˆØ�wÒØˆD�MØ˜Ò ØˆD�MäÐ0´4¸³>ÑAÓBÐBà—+‘+×"Ñ" 1Ó%ˆØ�gÒØ!%ˆDÕØ˜ÒØ!&ˆDÕäÐ/´$°w³-Ñ?Ó@Ð@rF   c                 ó   — | d   || d   z  z   S )z6 Compute the offset of section #n in the file
        rV   Úe_shentsizer“   ©rC   r^   s     rD   Ú_section_offsetzELFFile._section_offsetL  ó   € ð �I‰  T¨-Ñ%8Ñ!8Ñ8Ð8rF   c                 ó   — | d   || d   z  z   S )z6 Compute the offset of segment #n in the file
        Úe_phoffÚe_phentsizer“   r¿  s     rD   Ú_segment_offsetzELFFile._segment_offsetQ  rÁ  rF   c                 óÞ   — |d   }|dk(  rt        || j                  «      S |dk(  rt        || j                  | «      S |dk(  rt        || j                  | «      S t	        || j                  «      S )z9 Create a Segment object of the appropriate type
        r|   Ú	PT_INTERPÚ
PT_DYNAMICÚPT_NOTE)r   r1   r   r   r   )rC   ry   Úsegtypes      rD   rx   zELFFile._make_segmentV  sn   € ð ! Ñ*ˆØ�kÒ!Ü  °·±Ó=Ð=Ø˜Ò$Ü! .°$·+±+¸tÓDÐDØ˜	Ò!Ü˜~¨t¯{©{¸DÓAÐAä˜>¨4¯;©;Ó7Ð7rF   c                 óœ   — | j                  |«      }|| j                  kD  ryt        | j                  j                  | j
                  |¬«      S )zG Find the header of section #n, parse it and return the struct
        N©Ú
stream_pos)rÀ  r6   r   r8   ÚElf_Shdrr1   )rC   r^   rÍ  s      rD   rY   zELFFile._get_section_headerc  sG   € ð ×)Ñ)¨!Ó,ˆ
Ø˜Ÿ™Ò'ØäØ�L‰L×!Ñ!Ø�K‰KØ!ô#ð 	#rF   c                 óp   — | j                   €t        d«      ‚|d   }| j                   j                  |«      S )za Given a section header, find this section's name in the file's
            string table
        zString Table not foundÚsh_name)r@   r   Ú
get_string)rC   r_   Úname_offsets      rD   Ú_get_section_namezELFFile._get_section_namep  s=   € ð ×+Ñ+Ð3ÜÐ 8Ó9Ð9à$ YÑ/ˆØ×/Ñ/×:Ñ:¸;ÓGÐGrF   c                 ó  — | j                  |«      }|d   }|dk(  rt        ||| «      S |dk(  rt        ||| «      S |dv r| j                  ||«      S |dk(  r| j	                  ||«      S |dk(  r| j                  ||«      S |dk(  r| j                  ||«      S |dk(  r| j                  ||«      S |d	k(  r| j                  ||«      S |d
v rt        ||| «      S |dk(  rt        ||| «      S |dk(  rt        ||| «      S |dk(  r|dk(  rt        ||| «      S |dk(  rt        ||| «      S |dk(  rt        ||| «      S |dk(  r| j                  ||«      S |dk(  r| j!                  ||«      S |dk(  rt#        ||| «      S t%        ||| «      S )z9 Create a section object of the appropriate type
        rk   Ú
SHT_STRTABÚSHT_NULL)Ú
SHT_SYMTABÚ
SHT_DYNSYMÚSHT_SUNW_LDYNSYMÚSHT_SYMTAB_SHNDXÚSHT_SUNW_syminfoÚSHT_GNU_verneedÚSHT_GNU_verdefÚSHT_GNU_versym)ÚSHT_RELÚSHT_RELAÚSHT_DYNAMICÚSHT_NOTEÚSHT_PROGBITSz.stabÚSHT_ARM_ATTRIBUTESÚSHT_RISCV_ATTRIBUTESÚSHT_HASHÚSHT_GNU_HASHÚSHT_RELR)rÓ  r   r   Ú_make_symbol_table_sectionÚ _make_symbol_table_index_sectionÚ_make_sunwsyminfo_table_sectionÚ_make_gnu_verneed_sectionÚ_make_gnu_verdef_sectionÚ_make_gnu_versym_sectionr   r   r   r   r   r   Ú_make_elf_hash_sectionÚ_make_gnu_hash_sectionr   r   )rC   r_   rd   Úsectypes       rD   r]   zELFFile._make_sectionz  sã  € ð ×%Ñ% nÓ5ˆØ  Ñ+ˆà�lÒ"Ü% n°d¸DÓAÐAØ˜
Ò"Ü˜~¨t°TÓ:Ð:ØÐHÑHØ×2Ñ2°>À4ÓHÐHØÐ*Ò*Ø×8Ñ8¸ÈÓNÐNØÐ*Ò*Ø×7Ñ7¸ÈÓMÐMØÐ)Ò)Ø×1Ñ1°.À$ÓGÐGØÐ(Ò(Ø×0Ñ0°ÀÓFÐFØÐ(Ò(Ø×0Ñ0°ÀÓFÐFØÐ/Ñ/Ü$ ^°T¸4Ó@Ð@Ø˜Ò%Ü! .°$¸Ó=Ð=Ø˜
Ò"Ü˜~¨t°TÓ:Ð:Ø˜Ò&¨4°7ª?Ü˜~¨t°TÓ:Ð:ØÐ,Ò,Ü'¨¸¸dÓCÐCØÐ.Ò.Ü)¨.¸$ÀÓEÐEØ˜
Ò"Ø×.Ñ.¨~¸tÓDÐDØ˜Ò&Ø×.Ñ.¨~¸tÓDÐDØ˜
Ò"Ü(¨¸¸tÓDÐDä˜>¨4°Ó6Ð6rF   c                 ó†   — i | _         t        | j                  «       «      D ]  \  }}|| j                   |j                  <   Œ  y ©N)rA   Ú	enumeraterp   rd   )rC   rn   Úsecs      rD   rb   zELFFile._make_section_name_map¥  s?   € Ø!#ˆÔÜ × 2Ñ 2Ó 4Ó5ò 	1‰FˆAˆsØ/0ˆD×"Ñ" 3§8¡8Ò,ñ	1rF   c                 óL   — |d   }| j                  |«      }t        ||| |¬«      S )z% Create a SymbolTableSection
        r®  ©ÚelffileÚstringtable)r`   r   ©rC   r_   rd   Úlinked_strtab_indexÚstrtab_sections        rD   ré  z"ELFFile._make_symbol_table_sectionª  s8   € ð -¨YÑ7ÐØ×)Ñ)Ð*=Ó>ˆÜ!Ø˜DØØ&ô(ð 	(rF   c                 ó*   — |d   }t        ||| |¬«      S )z1 Create a SymbolTableIndexSection object
        r®  ©rø  Úsymboltable)r   )rC   r_   rd   Úlinked_symtab_indexs       rD   rê  z(ELFFile._make_symbol_table_index_section´  s&   € ð -¨YÑ7ÐÜ&Ø˜D¨$Ø+ô-ð 	-rF   c                 óL   — |d   }| j                  |«      }t        ||| |¬«      S )z* Create a SUNWSyminfoTableSection
        r®  rþ  )r`   r   rú  s        rD   rë  z'ELFFile._make_sunwsyminfo_table_section¼  s8   € ð -¨YÑ7ÐØ×)Ñ)Ð*=Ó>ˆÜ&Ø˜DØØ&ô(ð 	(rF   c                 óL   — |d   }| j                  |«      }t        ||| |¬«      S )z$ Create a GNUVerNeedSection
        r®  r÷  )r`   r   rú  s        rD   rì  z!ELFFile._make_gnu_verneed_sectionÆ  s8   € ð -¨YÑ7ÐØ×)Ñ)Ð*=Ó>ˆÜ Ø˜DØØ&ô(ð 	(rF   c                 óL   — |d   }| j                  |«      }t        ||| |¬«      S )z# Create a GNUVerDefSection
        r®  r÷  )r`   r   rú  s        rD   rí  z ELFFile._make_gnu_verdef_sectionÐ  ó8   € ð -¨YÑ7ÐØ×)Ñ)Ð*=Ó>ˆÜØ˜DØØ&ô(ð 	(rF   c                 óL   — |d   }| j                  |«      }t        ||| |¬«      S )z# Create a GNUVerSymSection
        r®  rþ  )r`   r   rú  s        rD   rî  z ELFFile._make_gnu_versym_sectionÚ  r  rF   c                 óJ   — |d   }| j                  |«      }t        ||| |«      S ©Nr®  )r`   r$   ©rC   r_   rd   r   Úsymtab_sections        rD   rï  zELFFile._make_elf_hash_sectionä  ó4   € Ø,¨YÑ7ÐØ×)Ñ)Ð*=Ó>ˆÜØ˜D $¨ó
ð 	
rF   c                 óJ   — |d   }| j                  |«      }t        ||| |«      S r  )r`   r%   r  s        rD   rð  zELFFile._make_gnu_hash_sectionë  r
  rF   c                 óx   — t        | j                  j                  | j                  | j	                  |«      ¬«      S )zG Find the header of segment #n, parse it and return the struct
        rÌ  )r   r8   ÚElf_Phdrr1   rÅ  r¿  s     rD   rw   zELFFile._get_segment_headerò  s3   € ô Ø�L‰L×!Ñ!Ø�K‰KØ×+Ñ+¨AÓ.ô0ð 	0rF   c                 óf   — | j                  «       }| j                  |«      }|€yt        |d| ¬«      S )z] Get the string table section corresponding to the section header
            table.
        NÚ )r;   rd   rø  )r°  rY   r   )rC   Ústringtable_section_numÚstringtable_section_headers      rD   r?   z'ELFFile._get_section_header_stringtableú  sD   € ð #'×"3Ñ"3Ó"5Ðà%)×%=Ñ%=Ð>UÓ%VÐ"Ø%Ð-Øä!Ø1ØØôð 	rF   c                 óZ   — t        | j                  j                  | j                  d¬«      S )ze Parses the ELF file header and assigns the result to attributes
            of this object.
        r   rÌ  )r   r8   ÚElf_Ehdrr1   rZ   s    rD   r:   zELFFile._parse_elf_header	  s!   € ô ˜DŸL™L×1Ñ1°4·;±;È1ÔMÐMrF   c                 ó  — t        «       }|j                  |j                  «       «       |r0t        | «      }|j	                  |«      }|�|j                  ||«       t        ||j                  |d   |j                  |d   ¬«      S )zŽ Read the contents of a DWARF section from the stream and return a
            DebugSectionDescriptor. Apply relocations if asked to.
        Ú	sh_offsetÚsh_addr)r1   rd   Úglobal_offsetr†   Úaddress)	r   ÚwriteÚdatar   Úfind_relocations_for_sectionÚapply_section_relocationsr!   rd   Ú	data_size)rC   ro   r´   Úsection_streamÚreloc_handlerÚreloc_sections         rD   r®   zELFFile._read_dwarf_section  s‡   € ô
 !›ˆØ×Ñ˜WŸ\™\›^Ô,á"Ü-¨dÓ3ˆMØ)×FÑFÀwÓOˆMØÐ(Ø×7Ñ7Ø&¨ô7ô &Ø%Ø—\‘\Ø% kÑ2Ø×&Ñ&Ø 	Ñ*ô,ð 	,rF   c                 óÈ  — | j                   dkD  sJ d«       ‚| j                  j                  d«       | j                  j                  d«      }|dk(  s
J d|z  «       ‚t	        j
                  d| j                  j                  d«      «      d   }t        j                  «       }t        «       }	 | j                  j                  t        «      }|sn!|j                  |j                  |«      «       ŒC|j                  |j                  «       «       |j                  dt        j                  «       |j                  «       }||k(  sJ d	|›d
|›�«       ‚| j!                  ||¬«      S )zJ Returns the uncompressed contents of the provided DWARF section.
        é   zUnsupported compression format.r   r´  s   ZLIBzInvalid compression type: %rz>Qr—   z"Wrong uncompressed size: expected z
, but got )r1   r†   )r†   r1   r2   r=   ÚstructÚunpackÚzlibÚdecompressobjr   ÚPAGESIZEr  Ú
decompressÚflushr3   r4   r5   Ú_replace)ro   Úcompression_typeÚuncompressed_sizeÚdecompressorÚuncompressed_streamÚchunkr†   s          rD   r°   z!ELFFile._decompress_dwarf_section%  sP  € ð
 �|‰|˜bÒ ÐCÐ"CÓCÐ à�‰×Ñ˜AÔð #Ÿ>™>×.Ñ.¨qÓ1ÐØ 7Ò*ð 	@Ø*Ð.>Ñ?ó	@Ð*ô #ŸM™M¨$°·±×0CÑ0CÀAÓ0FÓGÈÑJÐä×)Ñ)Ó+ˆÜ%›iÐØØ—N‘N×'Ñ'¬Ó1ˆEÙØØ×%Ñ% l×&=Ñ&=¸eÓ&DÔEð	 ð
 	×!Ñ! ,×"4Ñ"4Ó"6Ô7à× Ñ  ¤B§K¡KÔ0Ø"×'Ñ'Ó)ˆØ  DÒ(ñ 	â%¡tðó	Ð(ð
 ×ÑÐ':ÀÐÓFÐFrF   c                 ó8   — | j                   j                  «        y ró  )r1   rÑ   rZ   s    rD   rÑ   zELFFile.closeH  s   € Ø�‰×ÑÕrF   c                 ó   — | S ró  r“   rZ   s    rD   Ú	__enter__zELFFile.__enter__K  s   € ØˆrF   c                 ó$   — | j                  «        y ró  )rÑ   )rC   rm   ÚvalueÚ	tracebacks       rD   Ú__exit__zELFFile.__exit__N  s   € Ø�
‰
�rF   ró  )r	   )TT)1Ú__name__Ú
__module__Ú__qualname__Ú__doc__rE   ÚclassmethodrT   r[   r`   rf   ri   rp   ru   rz   r~   r‰   r�   rÎ   r²   rØ   rÞ   r±   r°  r²  r7   rÀ  rÅ  rx   rY   rÓ  r]   rb   ré  rê  rë  rì  rí  rî  rï  rð  rw   r?   r:   r®   Ústaticmethodr°   rÑ   r2  r6  r“   rF   rD   r(   r(   .   s
  „ ñó@+ð0 ñ'ó ð'òò"2ò
Dò	>ó
ò2ò2ó
ó?ò3óOòdò=ò
/ò@AòD:ò!ò
Aò49ò
9ò
8ò#òHò)7òV1ò
(ò-ò(ò(ò(ò(ò
ò
ò0òòNò,ð, ñ Gó ð GòDòórF   r(   )9r3   r   rJ   r#  r%  ÚresourceÚgetpagesizer'  ÚImportErrorÚmmapÚcommon.exceptionsr   r   Úcommon.utilsr   r   r8   r
   Úsectionsr   r   r   r   r   r   r   r   r   r   Údynamicr   r   Ú
relocationr   r   r   Úgnuversionsr   r   r   Úsegmentsr   r   r   Údwarf.dwarfinfor    r!   r"   Úehabi.ehabiinfor#   Úhashr$   r%   Ú	constantsr&   Úobjectr(   r“   rF   rD   ú<module>rM     s¿   ðó 
Ý Û 	Û Û ð
ÛØ#ˆx×#Ñ#Ó%€H÷ 8ß 3Ý ÷P÷ P÷ P÷ 4÷ñ ÷ñ ÷ :Ñ 9ß LÑ LÝ 'ß 0Ý "ôaˆfõ aøð9 ò ðãØ—=‘=‰øØò àŠðüðús5   ˜B+ Â+CÂ1CÃCÃCÃ	CÃCÃCÃC