Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
_elffile.cpython-313.pyc43 linesDownload Raw Back to __pycache__
1�

2`j�����SrSSKJr SSKrSSKrSSKrSSKJr "SS\5r	"SS\R5r"S	S3\R5r"SS\R5r
"S
S5rg)z�4ELF file parser.5 6This provides a class ``ELFFile`` that parses an ELF executable in a similar7interface to ``ZipFile``. Only the read interface is implemented.8 9ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html10�)�annotationsN)�IOc��\rSrSrSrg)�11ELFInvalid��N)�__name__�12__module__�__qualname__�__firstlineno__�__static_attributes__r��WD:\code\apps\devtools\python\Lib\site-packages\setuptools/_vendor/packaging/_elffile.pyrrs��rrc��\rSrSrSrSrSrg)�EIClass���rN)r	r13rr�C32�C64r
rrrrr���14�C�15�Crrc��\rSrSrSrSrSrg)�EIData�rrrN)r	r16rr�Lsb�Msbr
rrrrrrrrc�(�\rSrSrSrSrSrSrSrSr	g)	�EMachine� �r�(�>�rN)17r	r18rr�I386�S390�Arm�X8664�AArc64r
rrrrr s���D�
�D�19�C��E�
�Frrc�@�\rSrSrSrSSjrS	Sjr\S20Sj5rSr	g)�ELFFiler!z&21Representation of an ELF executable.22c23�|�XlURS5n[USS5nUS:wa[	SU<35eUSUlUSUlSSS	S24S.URUR4uoPlUl	URU5u25nUlnnUlnUl
nUlUlg![Ran[	S5UeSnAff=f![a,n[	SURS
URS35UeSnAff=f![Ran[	S5UeSnAff=f)N�16Bzunable to parse identification�sELFzinvalid magic: �)z<HHIIIIIHHHz	<IIIIIIII�rrr-)z>HHIIIIIHHHz	>IIIIIIIIr/)z<HHIQQQIHHHz	<IIQQQQQQ�rrr.)z>HHIQQQIHHHz	>IIQQQQQQr0))rr)rr)rr)rrzunrecognized capacity (z) or encoding (�)z/unable to parse machine and section information)�_f�_read�struct�errorr�bytes�capacity�encoding�_p_fmt�_p_idx�KeyError�machine�_e_phoff�flags�_e_phentsize�_e_phnum)�self�f�ident�e�magic�e_fmt�_s       r�__init__�ELFFile.__init__-sc����	F��J�J�u�%�E��e�B�Q�i� ���J����u�i�8�9�9��a���
��a���
�
	�26@�?�?�?�	/�27�}�}�d�m�m�,�/.�+�E�;���	W��28�29�5�!�
�������
���30���!��
��G�|�|�	F��=�>�A�E��	F��&�	��)�$�-�-����
�
��VW�X���
��	��$�|�|�	W��N�O�UV�V��	W�sG�B5�-C�?5D�5C�	C�C�31D�''D�D�D;�*D6�6D;c��[R"XRR[R"U555$)N)r4�unpackr2�read�calcsize)rA�fmts  rr3�
ELFFile._readZs'���}�}�S�'�'�,�,�v���s�/C�"D�E�Erc�0�[UR5H�nURRURUR32U--5 UR
UR5nX RSS:waMkURRX RS5 [R"URRX RS55RS5s $ g![Ra M�f=f)z833The path recorded in the ``PT_INTERP`` section header.34rr rr�N)�ranger@r2�seekr=r?r3r9r4r5r:�os�fsdecoderL�strip)rA�index�datas   r�interpreter�ELFFile.interpreter]s���35�4�=�=�)�E��G�G�L�L�����):�):�U�)B�B�C�
��z�z�$�+�+�.���K�K��N�#�q�(���G�G�L�L��k�k�!�n�-�.��;�;�t�w�w�|�|�D���Q��,@�A�B�H�H��N�N�*���
�<�<�
��
�s�C=�=D�D)36r?r@r=r2r9r:r7r8r>r<N)rBz	IO[bytes]�return�None)rN�strr[ztuple[int, ...])r[z37str | None)38r	r39rr�__doc__rHr3�propertyrYr
rrrr*r*(s(���+W�ZF����rr*)r^�40__future__r�enumrTr4�typingr�41ValueErrorr�IntEnumrrrr*rrr�<module>resc���#��	�
��	��	��d�l�l��42�T�\�\��43�t�|�|��D�Dr
codekingpro/portable-devtools · Team Ai