a0bi SrSSKrSSKrSSKrSSKJrJrJr "SS\5r "SS\R5r "SS \R5r "S S \R5r "S S 5rg)a; ELF file parser. This provides a class ``ELFFile`` that parses an ELF executable in a similar interface to ``ZipFile``. Only the read interface is implemented. Based on: https://gist.github.com/lyssdod/f51579ae8d93c8657a5564aefc2ffbca ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html N)IOOptionalTuplec\rSrSrSrg) ELFInvalidN)__name__ __module__ __qualname____firstlineno____static_attributes__r ڞ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/setuptools/_vendor/packaging/_elffile.pyrrsrrc\rSrSrSrSrSrg)EIClassr N)r r r r C32C64rr rrrr C Crrc\rSrSrSrSrSrg)EIDatarrr N)r r r r LsbMsbrr rrrrrrrc(\rSrSrSrSrSrSrSrSr g) EMachine(>r N) r r r r I386S390ArmX8664AArc64rr rrrrs D D C E Frrcj\rSrSrSrS\\SS4SjrS\S\ \ S44S jr \ S\ \4S j5rS rg) ELFFile'z& Representation of an ELF executable. freturnNc hXlURS5n[ USS5nUS:wa[ SU<35eUSUlUSUlSSS S S .UR UR4uo@lUl URU5u nUl nnUl nUl nUlUlg![Ra [ S5ef=f![a' [ S UR S URS35ef=f![Ran[ S5UeSnAff=f)N16Bzunable to parse identificationsELFzinvalid magic: )z HHIIIIIHHHz >IIIIIIIIr4)z HHIQQQIHHHz >IIQQQQQQr5))rr)rr)rr)rrzunrecognized capacity (z) or encoding ()z/unable to parse machine and section information)_f_readstructerrorrbytescapacityencoding_p_fmt_p_idxKeyErrormachine_e_phoffflags _e_phentsize_e_phnum)selfr.identmagice_fmt_es r__init__ELFFile.__init__,s^ ?JJu%EeBQi  J ui89 9a a   @??? / }}dmm, /. +E;  W 5!    ! I|| ?=> > ?& )$--9!]]O1.  &|| WNOUV V Ws/B5-C?5D 5 C1D  D1 D,,D1fmt.c[R"XRR[R"U555$)N)r9unpackr7readcalcsize)rFrNs rr8 ELFFile._readZs'}}S'',,vs/C"DEErc0[UR5HnURRURUR U--5 UR UR5nX RSS:waMkURRX RS5 [R"URRX RS55RS5s $ g![Ra Mf=f)z8 The path recorded in the ``PT_INTERP`` section header. rr!rrN)rangerEr7seekrBrDr8r>r9r:r?osfsdecoderQstrip)rFindexdatas r interpreterELFFile.interpreter]s 4==)E GGLL):):U)BB C zz$++.KKN#q( GGLLkk!n- .;;tww||DQ,@ABHHN N* <<  sC==DD) rDrErBr7r>r?r<r=rCrA)r r r r __doc__rr;rLstrrintr8propertyrr]rr rrr,r,'s_,W"U),W,W\FFsCxFXc]rr,)r_enumrXr9typingrrr ValueErrorrIntEnumrrrr,r rrrgsc &&   dll  T\\ t||EEr