libc.py 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260
  1. # mypy: ignore-errors
  2. # -*- coding: utf-8 -*-
  3. #
  4. # TARGET arch is: []
  5. # WORD_SIZE is: 8
  6. # POINTER_SIZE is: 8
  7. # LONGDOUBLE_SIZE is: 16
  8. #
  9. import ctypes, ctypes.util, os
  10. c_int128 = ctypes.c_ubyte*16
  11. c_uint128 = c_int128
  12. void = None
  13. if ctypes.sizeof(ctypes.c_longdouble) == 16:
  14. c_long_double_t = ctypes.c_longdouble
  15. else:
  16. c_long_double_t = ctypes.c_ubyte*16
  17. class FunctionFactoryStub:
  18. def __getattr__(self, _):
  19. return ctypes.CFUNCTYPE(lambda y:y)
  20. # libraries['libc'] explanation
  21. # As you did not list (-l libraryname.so) a library that exports this function
  22. # This is a non-working stub instead.
  23. # You can either re-run clan2py with -l /path/to/library.so
  24. # Or manually fix this by comment the ctypes.CDLL loading
  25. _libraries = {}
  26. _libraries['libc'] = ctypes.CDLL(ctypes.util.find_library('c')) # ctypes.CDLL('libc')
  27. def string_cast(char_pointer, encoding='utf-8', errors='strict'):
  28. value = ctypes.cast(char_pointer, ctypes.c_char_p).value
  29. if value is not None and encoding is not None:
  30. value = value.decode(encoding, errors=errors)
  31. return value
  32. def char_pointer_cast(string, encoding='utf-8'):
  33. if encoding is not None:
  34. try:
  35. string = string.encode(encoding)
  36. except AttributeError:
  37. # In Python3, bytes has no encode attribute
  38. pass
  39. string = ctypes.c_char_p(string)
  40. return ctypes.cast(string, ctypes.POINTER(ctypes.c_char))
  41. class AsDictMixin:
  42. @classmethod
  43. def as_dict(cls, self):
  44. result = {}
  45. if not isinstance(self, AsDictMixin):
  46. # not a structure, assume it's already a python object
  47. return self
  48. if not hasattr(cls, "_fields_"):
  49. return result
  50. # sys.version_info >= (3, 5)
  51. # for (field, *_) in cls._fields_: # noqa
  52. for field_tuple in cls._fields_: # noqa
  53. field = field_tuple[0]
  54. if field.startswith('PADDING_'):
  55. continue
  56. value = getattr(self, field)
  57. type_ = type(value)
  58. if hasattr(value, "_length_") and hasattr(value, "_type_"):
  59. # array
  60. if not hasattr(type_, "as_dict"):
  61. value = [v for v in value]
  62. else:
  63. type_ = type_._type_
  64. value = [type_.as_dict(v) for v in value]
  65. elif hasattr(value, "contents") and hasattr(value, "_type_"):
  66. # pointer
  67. try:
  68. if not hasattr(type_, "as_dict"):
  69. value = value.contents
  70. else:
  71. type_ = type_._type_
  72. value = type_.as_dict(value.contents)
  73. except ValueError:
  74. # nullptr
  75. value = None
  76. elif isinstance(value, AsDictMixin):
  77. # other structure
  78. value = type_.as_dict(value)
  79. result[field] = value
  80. return result
  81. class Structure(ctypes.Structure, AsDictMixin):
  82. def __init__(self, *args, **kwds):
  83. # We don't want to use positional arguments fill PADDING_* fields
  84. args = dict(zip(self.__class__._field_names_(), args))
  85. args.update(kwds)
  86. super(Structure, self).__init__(**args)
  87. @classmethod
  88. def _field_names_(cls):
  89. if hasattr(cls, '_fields_'):
  90. return (f[0] for f in cls._fields_ if not f[0].startswith('PADDING'))
  91. else:
  92. return ()
  93. @classmethod
  94. def get_type(cls, field):
  95. for f in cls._fields_:
  96. if f[0] == field:
  97. return f[1]
  98. return None
  99. @classmethod
  100. def bind(cls, bound_fields):
  101. fields = {}
  102. for name, type_ in cls._fields_:
  103. if hasattr(type_, "restype"):
  104. if name in bound_fields:
  105. if bound_fields[name] is None:
  106. fields[name] = type_()
  107. else:
  108. # use a closure to capture the callback from the loop scope
  109. fields[name] = (
  110. type_((lambda callback: lambda *args: callback(*args))(
  111. bound_fields[name]))
  112. )
  113. del bound_fields[name]
  114. else:
  115. # default callback implementation (does nothing)
  116. try:
  117. default_ = type_(0).restype().value
  118. except TypeError:
  119. default_ = None
  120. fields[name] = type_((
  121. lambda default_: lambda *args: default_)(default_))
  122. else:
  123. # not a callback function, use default initialization
  124. if name in bound_fields:
  125. fields[name] = bound_fields[name]
  126. del bound_fields[name]
  127. else:
  128. fields[name] = type_()
  129. if len(bound_fields) != 0:
  130. raise ValueError(
  131. "Cannot bind the following unknown callback(s) {}.{}".format(
  132. cls.__name__, bound_fields.keys()
  133. ))
  134. return cls(**fields)
  135. class Union(ctypes.Union, AsDictMixin):
  136. pass
  137. off_t = ctypes.c_int64
  138. mode_t = ctypes.c_uint32
  139. size_t = ctypes.c_uint64
  140. __off_t = ctypes.c_int64
  141. try:
  142. mmap = _libraries['libc'].mmap
  143. mmap.restype = ctypes.POINTER(None)
  144. mmap.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, __off_t]
  145. except AttributeError:
  146. pass
  147. try:
  148. munmap = _libraries['libc'].munmap
  149. munmap.restype = ctypes.c_int32
  150. munmap.argtypes = [ctypes.POINTER(None), size_t]
  151. except AttributeError:
  152. pass
  153. try:
  154. mprotect = _libraries['libc'].mprotect
  155. mprotect.restype = ctypes.c_int32
  156. mprotect.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
  157. except AttributeError:
  158. pass
  159. try:
  160. msync = _libraries['libc'].msync
  161. msync.restype = ctypes.c_int32
  162. msync.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
  163. except AttributeError:
  164. pass
  165. try:
  166. madvise = _libraries['libc'].madvise
  167. madvise.restype = ctypes.c_int32
  168. madvise.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
  169. except AttributeError:
  170. pass
  171. try:
  172. posix_madvise = _libraries['libc'].posix_madvise
  173. posix_madvise.restype = ctypes.c_int32
  174. posix_madvise.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
  175. except AttributeError:
  176. pass
  177. try:
  178. mlock = _libraries['libc'].mlock
  179. mlock.restype = ctypes.c_int32
  180. mlock.argtypes = [ctypes.POINTER(None), size_t]
  181. except AttributeError:
  182. pass
  183. try:
  184. munlock = _libraries['libc'].munlock
  185. munlock.restype = ctypes.c_int32
  186. munlock.argtypes = [ctypes.POINTER(None), size_t]
  187. except AttributeError:
  188. pass
  189. try:
  190. mlockall = _libraries['libc'].mlockall
  191. mlockall.restype = ctypes.c_int32
  192. mlockall.argtypes = [ctypes.c_int32]
  193. except AttributeError:
  194. pass
  195. try:
  196. munlockall = _libraries['libc'].munlockall
  197. munlockall.restype = ctypes.c_int32
  198. munlockall.argtypes = []
  199. except AttributeError:
  200. pass
  201. try:
  202. mincore = _libraries['libc'].mincore
  203. mincore.restype = ctypes.c_int32
  204. mincore.argtypes = [ctypes.POINTER(None), size_t, ctypes.POINTER(ctypes.c_ubyte)]
  205. except AttributeError:
  206. pass
  207. try:
  208. shm_open = _libraries['libc'].shm_open
  209. shm_open.restype = ctypes.c_int32
  210. shm_open.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32, mode_t]
  211. except AttributeError:
  212. pass
  213. try:
  214. shm_unlink = _libraries['libc'].shm_unlink
  215. shm_unlink.restype = ctypes.c_int32
  216. shm_unlink.argtypes = [ctypes.POINTER(ctypes.c_char)]
  217. except AttributeError:
  218. pass
  219. Elf32_Half = ctypes.c_uint16
  220. Elf64_Half = ctypes.c_uint16
  221. Elf32_Word = ctypes.c_uint32
  222. Elf32_Sword = ctypes.c_int32
  223. Elf64_Word = ctypes.c_uint32
  224. Elf64_Sword = ctypes.c_int32
  225. Elf32_Xword = ctypes.c_uint64
  226. Elf32_Sxword = ctypes.c_int64
  227. Elf64_Xword = ctypes.c_uint64
  228. Elf64_Sxword = ctypes.c_int64
  229. Elf32_Addr = ctypes.c_uint32
  230. Elf64_Addr = ctypes.c_uint64
  231. Elf32_Off = ctypes.c_uint32
  232. Elf64_Off = ctypes.c_uint64
  233. Elf32_Section = ctypes.c_uint16
  234. Elf64_Section = ctypes.c_uint16
  235. Elf32_Versym = ctypes.c_uint16
  236. Elf64_Versym = ctypes.c_uint16
  237. class struct_c__SA_Elf32_Ehdr(Structure):
  238. pass
  239. struct_c__SA_Elf32_Ehdr._pack_ = 1 # source:False
  240. struct_c__SA_Elf32_Ehdr._fields_ = [
  241. ('e_ident', ctypes.c_ubyte * 16),
  242. ('e_type', ctypes.c_uint16),
  243. ('e_machine', ctypes.c_uint16),
  244. ('e_version', ctypes.c_uint32),
  245. ('e_entry', ctypes.c_uint32),
  246. ('e_phoff', ctypes.c_uint32),
  247. ('e_shoff', ctypes.c_uint32),
  248. ('e_flags', ctypes.c_uint32),
  249. ('e_ehsize', ctypes.c_uint16),
  250. ('e_phentsize', ctypes.c_uint16),
  251. ('e_phnum', ctypes.c_uint16),
  252. ('e_shentsize', ctypes.c_uint16),
  253. ('e_shnum', ctypes.c_uint16),
  254. ('e_shstrndx', ctypes.c_uint16),
  255. ]
  256. Elf32_Ehdr = struct_c__SA_Elf32_Ehdr
  257. class struct_c__SA_Elf64_Ehdr(Structure):
  258. pass
  259. struct_c__SA_Elf64_Ehdr._pack_ = 1 # source:False
  260. struct_c__SA_Elf64_Ehdr._fields_ = [
  261. ('e_ident', ctypes.c_ubyte * 16),
  262. ('e_type', ctypes.c_uint16),
  263. ('e_machine', ctypes.c_uint16),
  264. ('e_version', ctypes.c_uint32),
  265. ('e_entry', ctypes.c_uint64),
  266. ('e_phoff', ctypes.c_uint64),
  267. ('e_shoff', ctypes.c_uint64),
  268. ('e_flags', ctypes.c_uint32),
  269. ('e_ehsize', ctypes.c_uint16),
  270. ('e_phentsize', ctypes.c_uint16),
  271. ('e_phnum', ctypes.c_uint16),
  272. ('e_shentsize', ctypes.c_uint16),
  273. ('e_shnum', ctypes.c_uint16),
  274. ('e_shstrndx', ctypes.c_uint16),
  275. ]
  276. Elf64_Ehdr = struct_c__SA_Elf64_Ehdr
  277. class struct_c__SA_Elf32_Shdr(Structure):
  278. pass
  279. struct_c__SA_Elf32_Shdr._pack_ = 1 # source:False
  280. struct_c__SA_Elf32_Shdr._fields_ = [
  281. ('sh_name', ctypes.c_uint32),
  282. ('sh_type', ctypes.c_uint32),
  283. ('sh_flags', ctypes.c_uint32),
  284. ('sh_addr', ctypes.c_uint32),
  285. ('sh_offset', ctypes.c_uint32),
  286. ('sh_size', ctypes.c_uint32),
  287. ('sh_link', ctypes.c_uint32),
  288. ('sh_info', ctypes.c_uint32),
  289. ('sh_addralign', ctypes.c_uint32),
  290. ('sh_entsize', ctypes.c_uint32),
  291. ]
  292. Elf32_Shdr = struct_c__SA_Elf32_Shdr
  293. class struct_c__SA_Elf64_Shdr(Structure):
  294. pass
  295. struct_c__SA_Elf64_Shdr._pack_ = 1 # source:False
  296. struct_c__SA_Elf64_Shdr._fields_ = [
  297. ('sh_name', ctypes.c_uint32),
  298. ('sh_type', ctypes.c_uint32),
  299. ('sh_flags', ctypes.c_uint64),
  300. ('sh_addr', ctypes.c_uint64),
  301. ('sh_offset', ctypes.c_uint64),
  302. ('sh_size', ctypes.c_uint64),
  303. ('sh_link', ctypes.c_uint32),
  304. ('sh_info', ctypes.c_uint32),
  305. ('sh_addralign', ctypes.c_uint64),
  306. ('sh_entsize', ctypes.c_uint64),
  307. ]
  308. Elf64_Shdr = struct_c__SA_Elf64_Shdr
  309. class struct_c__SA_Elf32_Chdr(Structure):
  310. pass
  311. struct_c__SA_Elf32_Chdr._pack_ = 1 # source:False
  312. struct_c__SA_Elf32_Chdr._fields_ = [
  313. ('ch_type', ctypes.c_uint32),
  314. ('ch_size', ctypes.c_uint32),
  315. ('ch_addralign', ctypes.c_uint32),
  316. ]
  317. Elf32_Chdr = struct_c__SA_Elf32_Chdr
  318. class struct_c__SA_Elf64_Chdr(Structure):
  319. pass
  320. struct_c__SA_Elf64_Chdr._pack_ = 1 # source:False
  321. struct_c__SA_Elf64_Chdr._fields_ = [
  322. ('ch_type', ctypes.c_uint32),
  323. ('ch_reserved', ctypes.c_uint32),
  324. ('ch_size', ctypes.c_uint64),
  325. ('ch_addralign', ctypes.c_uint64),
  326. ]
  327. Elf64_Chdr = struct_c__SA_Elf64_Chdr
  328. class struct_c__SA_Elf32_Sym(Structure):
  329. pass
  330. struct_c__SA_Elf32_Sym._pack_ = 1 # source:False
  331. struct_c__SA_Elf32_Sym._fields_ = [
  332. ('st_name', ctypes.c_uint32),
  333. ('st_value', ctypes.c_uint32),
  334. ('st_size', ctypes.c_uint32),
  335. ('st_info', ctypes.c_ubyte),
  336. ('st_other', ctypes.c_ubyte),
  337. ('st_shndx', ctypes.c_uint16),
  338. ]
  339. Elf32_Sym = struct_c__SA_Elf32_Sym
  340. class struct_c__SA_Elf64_Sym(Structure):
  341. pass
  342. struct_c__SA_Elf64_Sym._pack_ = 1 # source:False
  343. struct_c__SA_Elf64_Sym._fields_ = [
  344. ('st_name', ctypes.c_uint32),
  345. ('st_info', ctypes.c_ubyte),
  346. ('st_other', ctypes.c_ubyte),
  347. ('st_shndx', ctypes.c_uint16),
  348. ('st_value', ctypes.c_uint64),
  349. ('st_size', ctypes.c_uint64),
  350. ]
  351. Elf64_Sym = struct_c__SA_Elf64_Sym
  352. class struct_c__SA_Elf32_Syminfo(Structure):
  353. pass
  354. struct_c__SA_Elf32_Syminfo._pack_ = 1 # source:False
  355. struct_c__SA_Elf32_Syminfo._fields_ = [
  356. ('si_boundto', ctypes.c_uint16),
  357. ('si_flags', ctypes.c_uint16),
  358. ]
  359. Elf32_Syminfo = struct_c__SA_Elf32_Syminfo
  360. class struct_c__SA_Elf64_Syminfo(Structure):
  361. pass
  362. struct_c__SA_Elf64_Syminfo._pack_ = 1 # source:False
  363. struct_c__SA_Elf64_Syminfo._fields_ = [
  364. ('si_boundto', ctypes.c_uint16),
  365. ('si_flags', ctypes.c_uint16),
  366. ]
  367. Elf64_Syminfo = struct_c__SA_Elf64_Syminfo
  368. class struct_c__SA_Elf32_Rel(Structure):
  369. pass
  370. struct_c__SA_Elf32_Rel._pack_ = 1 # source:False
  371. struct_c__SA_Elf32_Rel._fields_ = [
  372. ('r_offset', ctypes.c_uint32),
  373. ('r_info', ctypes.c_uint32),
  374. ]
  375. Elf32_Rel = struct_c__SA_Elf32_Rel
  376. class struct_c__SA_Elf64_Rel(Structure):
  377. pass
  378. struct_c__SA_Elf64_Rel._pack_ = 1 # source:False
  379. struct_c__SA_Elf64_Rel._fields_ = [
  380. ('r_offset', ctypes.c_uint64),
  381. ('r_info', ctypes.c_uint64),
  382. ]
  383. Elf64_Rel = struct_c__SA_Elf64_Rel
  384. class struct_c__SA_Elf32_Rela(Structure):
  385. pass
  386. struct_c__SA_Elf32_Rela._pack_ = 1 # source:False
  387. struct_c__SA_Elf32_Rela._fields_ = [
  388. ('r_offset', ctypes.c_uint32),
  389. ('r_info', ctypes.c_uint32),
  390. ('r_addend', ctypes.c_int32),
  391. ]
  392. Elf32_Rela = struct_c__SA_Elf32_Rela
  393. class struct_c__SA_Elf64_Rela(Structure):
  394. pass
  395. struct_c__SA_Elf64_Rela._pack_ = 1 # source:False
  396. struct_c__SA_Elf64_Rela._fields_ = [
  397. ('r_offset', ctypes.c_uint64),
  398. ('r_info', ctypes.c_uint64),
  399. ('r_addend', ctypes.c_int64),
  400. ]
  401. Elf64_Rela = struct_c__SA_Elf64_Rela
  402. class struct_c__SA_Elf32_Phdr(Structure):
  403. pass
  404. struct_c__SA_Elf32_Phdr._pack_ = 1 # source:False
  405. struct_c__SA_Elf32_Phdr._fields_ = [
  406. ('p_type', ctypes.c_uint32),
  407. ('p_offset', ctypes.c_uint32),
  408. ('p_vaddr', ctypes.c_uint32),
  409. ('p_paddr', ctypes.c_uint32),
  410. ('p_filesz', ctypes.c_uint32),
  411. ('p_memsz', ctypes.c_uint32),
  412. ('p_flags', ctypes.c_uint32),
  413. ('p_align', ctypes.c_uint32),
  414. ]
  415. Elf32_Phdr = struct_c__SA_Elf32_Phdr
  416. class struct_c__SA_Elf64_Phdr(Structure):
  417. pass
  418. struct_c__SA_Elf64_Phdr._pack_ = 1 # source:False
  419. struct_c__SA_Elf64_Phdr._fields_ = [
  420. ('p_type', ctypes.c_uint32),
  421. ('p_flags', ctypes.c_uint32),
  422. ('p_offset', ctypes.c_uint64),
  423. ('p_vaddr', ctypes.c_uint64),
  424. ('p_paddr', ctypes.c_uint64),
  425. ('p_filesz', ctypes.c_uint64),
  426. ('p_memsz', ctypes.c_uint64),
  427. ('p_align', ctypes.c_uint64),
  428. ]
  429. Elf64_Phdr = struct_c__SA_Elf64_Phdr
  430. class struct_c__SA_Elf32_Dyn(Structure):
  431. pass
  432. class union_c__SA_Elf32_Dyn_d_un(Union):
  433. pass
  434. union_c__SA_Elf32_Dyn_d_un._pack_ = 1 # source:False
  435. union_c__SA_Elf32_Dyn_d_un._fields_ = [
  436. ('d_val', ctypes.c_uint32),
  437. ('d_ptr', ctypes.c_uint32),
  438. ]
  439. struct_c__SA_Elf32_Dyn._pack_ = 1 # source:False
  440. struct_c__SA_Elf32_Dyn._fields_ = [
  441. ('d_tag', ctypes.c_int32),
  442. ('d_un', union_c__SA_Elf32_Dyn_d_un),
  443. ]
  444. Elf32_Dyn = struct_c__SA_Elf32_Dyn
  445. class struct_c__SA_Elf64_Dyn(Structure):
  446. pass
  447. class union_c__SA_Elf64_Dyn_d_un(Union):
  448. pass
  449. union_c__SA_Elf64_Dyn_d_un._pack_ = 1 # source:False
  450. union_c__SA_Elf64_Dyn_d_un._fields_ = [
  451. ('d_val', ctypes.c_uint64),
  452. ('d_ptr', ctypes.c_uint64),
  453. ]
  454. struct_c__SA_Elf64_Dyn._pack_ = 1 # source:False
  455. struct_c__SA_Elf64_Dyn._fields_ = [
  456. ('d_tag', ctypes.c_int64),
  457. ('d_un', union_c__SA_Elf64_Dyn_d_un),
  458. ]
  459. Elf64_Dyn = struct_c__SA_Elf64_Dyn
  460. class struct_c__SA_Elf32_Verdef(Structure):
  461. pass
  462. struct_c__SA_Elf32_Verdef._pack_ = 1 # source:False
  463. struct_c__SA_Elf32_Verdef._fields_ = [
  464. ('vd_version', ctypes.c_uint16),
  465. ('vd_flags', ctypes.c_uint16),
  466. ('vd_ndx', ctypes.c_uint16),
  467. ('vd_cnt', ctypes.c_uint16),
  468. ('vd_hash', ctypes.c_uint32),
  469. ('vd_aux', ctypes.c_uint32),
  470. ('vd_next', ctypes.c_uint32),
  471. ]
  472. Elf32_Verdef = struct_c__SA_Elf32_Verdef
  473. class struct_c__SA_Elf64_Verdef(Structure):
  474. pass
  475. struct_c__SA_Elf64_Verdef._pack_ = 1 # source:False
  476. struct_c__SA_Elf64_Verdef._fields_ = [
  477. ('vd_version', ctypes.c_uint16),
  478. ('vd_flags', ctypes.c_uint16),
  479. ('vd_ndx', ctypes.c_uint16),
  480. ('vd_cnt', ctypes.c_uint16),
  481. ('vd_hash', ctypes.c_uint32),
  482. ('vd_aux', ctypes.c_uint32),
  483. ('vd_next', ctypes.c_uint32),
  484. ]
  485. Elf64_Verdef = struct_c__SA_Elf64_Verdef
  486. class struct_c__SA_Elf32_Verdaux(Structure):
  487. pass
  488. struct_c__SA_Elf32_Verdaux._pack_ = 1 # source:False
  489. struct_c__SA_Elf32_Verdaux._fields_ = [
  490. ('vda_name', ctypes.c_uint32),
  491. ('vda_next', ctypes.c_uint32),
  492. ]
  493. Elf32_Verdaux = struct_c__SA_Elf32_Verdaux
  494. class struct_c__SA_Elf64_Verdaux(Structure):
  495. pass
  496. struct_c__SA_Elf64_Verdaux._pack_ = 1 # source:False
  497. struct_c__SA_Elf64_Verdaux._fields_ = [
  498. ('vda_name', ctypes.c_uint32),
  499. ('vda_next', ctypes.c_uint32),
  500. ]
  501. Elf64_Verdaux = struct_c__SA_Elf64_Verdaux
  502. class struct_c__SA_Elf32_Verneed(Structure):
  503. pass
  504. struct_c__SA_Elf32_Verneed._pack_ = 1 # source:False
  505. struct_c__SA_Elf32_Verneed._fields_ = [
  506. ('vn_version', ctypes.c_uint16),
  507. ('vn_cnt', ctypes.c_uint16),
  508. ('vn_file', ctypes.c_uint32),
  509. ('vn_aux', ctypes.c_uint32),
  510. ('vn_next', ctypes.c_uint32),
  511. ]
  512. Elf32_Verneed = struct_c__SA_Elf32_Verneed
  513. class struct_c__SA_Elf64_Verneed(Structure):
  514. pass
  515. struct_c__SA_Elf64_Verneed._pack_ = 1 # source:False
  516. struct_c__SA_Elf64_Verneed._fields_ = [
  517. ('vn_version', ctypes.c_uint16),
  518. ('vn_cnt', ctypes.c_uint16),
  519. ('vn_file', ctypes.c_uint32),
  520. ('vn_aux', ctypes.c_uint32),
  521. ('vn_next', ctypes.c_uint32),
  522. ]
  523. Elf64_Verneed = struct_c__SA_Elf64_Verneed
  524. class struct_c__SA_Elf32_Vernaux(Structure):
  525. pass
  526. struct_c__SA_Elf32_Vernaux._pack_ = 1 # source:False
  527. struct_c__SA_Elf32_Vernaux._fields_ = [
  528. ('vna_hash', ctypes.c_uint32),
  529. ('vna_flags', ctypes.c_uint16),
  530. ('vna_other', ctypes.c_uint16),
  531. ('vna_name', ctypes.c_uint32),
  532. ('vna_next', ctypes.c_uint32),
  533. ]
  534. Elf32_Vernaux = struct_c__SA_Elf32_Vernaux
  535. class struct_c__SA_Elf64_Vernaux(Structure):
  536. pass
  537. struct_c__SA_Elf64_Vernaux._pack_ = 1 # source:False
  538. struct_c__SA_Elf64_Vernaux._fields_ = [
  539. ('vna_hash', ctypes.c_uint32),
  540. ('vna_flags', ctypes.c_uint16),
  541. ('vna_other', ctypes.c_uint16),
  542. ('vna_name', ctypes.c_uint32),
  543. ('vna_next', ctypes.c_uint32),
  544. ]
  545. Elf64_Vernaux = struct_c__SA_Elf64_Vernaux
  546. class struct_c__SA_Elf32_auxv_t(Structure):
  547. pass
  548. class union_c__SA_Elf32_auxv_t_a_un(Union):
  549. pass
  550. union_c__SA_Elf32_auxv_t_a_un._pack_ = 1 # source:False
  551. union_c__SA_Elf32_auxv_t_a_un._fields_ = [
  552. ('a_val', ctypes.c_uint32),
  553. ]
  554. struct_c__SA_Elf32_auxv_t._pack_ = 1 # source:False
  555. struct_c__SA_Elf32_auxv_t._fields_ = [
  556. ('a_type', ctypes.c_uint32),
  557. ('a_un', union_c__SA_Elf32_auxv_t_a_un),
  558. ]
  559. Elf32_auxv_t = struct_c__SA_Elf32_auxv_t
  560. class struct_c__SA_Elf64_auxv_t(Structure):
  561. pass
  562. class union_c__SA_Elf64_auxv_t_a_un(Union):
  563. pass
  564. union_c__SA_Elf64_auxv_t_a_un._pack_ = 1 # source:False
  565. union_c__SA_Elf64_auxv_t_a_un._fields_ = [
  566. ('a_val', ctypes.c_uint64),
  567. ]
  568. struct_c__SA_Elf64_auxv_t._pack_ = 1 # source:False
  569. struct_c__SA_Elf64_auxv_t._fields_ = [
  570. ('a_type', ctypes.c_uint64),
  571. ('a_un', union_c__SA_Elf64_auxv_t_a_un),
  572. ]
  573. Elf64_auxv_t = struct_c__SA_Elf64_auxv_t
  574. class struct_c__SA_Elf32_Nhdr(Structure):
  575. pass
  576. struct_c__SA_Elf32_Nhdr._pack_ = 1 # source:False
  577. struct_c__SA_Elf32_Nhdr._fields_ = [
  578. ('n_namesz', ctypes.c_uint32),
  579. ('n_descsz', ctypes.c_uint32),
  580. ('n_type', ctypes.c_uint32),
  581. ]
  582. Elf32_Nhdr = struct_c__SA_Elf32_Nhdr
  583. class struct_c__SA_Elf64_Nhdr(Structure):
  584. pass
  585. struct_c__SA_Elf64_Nhdr._pack_ = 1 # source:False
  586. struct_c__SA_Elf64_Nhdr._fields_ = [
  587. ('n_namesz', ctypes.c_uint32),
  588. ('n_descsz', ctypes.c_uint32),
  589. ('n_type', ctypes.c_uint32),
  590. ]
  591. Elf64_Nhdr = struct_c__SA_Elf64_Nhdr
  592. class struct_c__SA_Elf32_Move(Structure):
  593. pass
  594. struct_c__SA_Elf32_Move._pack_ = 1 # source:False
  595. struct_c__SA_Elf32_Move._fields_ = [
  596. ('m_value', ctypes.c_uint64),
  597. ('m_info', ctypes.c_uint32),
  598. ('m_poffset', ctypes.c_uint32),
  599. ('m_repeat', ctypes.c_uint16),
  600. ('m_stride', ctypes.c_uint16),
  601. ('PADDING_0', ctypes.c_ubyte * 4),
  602. ]
  603. Elf32_Move = struct_c__SA_Elf32_Move
  604. class struct_c__SA_Elf64_Move(Structure):
  605. pass
  606. struct_c__SA_Elf64_Move._pack_ = 1 # source:False
  607. struct_c__SA_Elf64_Move._fields_ = [
  608. ('m_value', ctypes.c_uint64),
  609. ('m_info', ctypes.c_uint64),
  610. ('m_poffset', ctypes.c_uint64),
  611. ('m_repeat', ctypes.c_uint16),
  612. ('m_stride', ctypes.c_uint16),
  613. ('PADDING_0', ctypes.c_ubyte * 4),
  614. ]
  615. Elf64_Move = struct_c__SA_Elf64_Move
  616. class union_c__UA_Elf32_gptab(Union):
  617. pass
  618. class struct_c__UA_Elf32_gptab_gt_header(Structure):
  619. pass
  620. struct_c__UA_Elf32_gptab_gt_header._pack_ = 1 # source:False
  621. struct_c__UA_Elf32_gptab_gt_header._fields_ = [
  622. ('gt_current_g_value', ctypes.c_uint32),
  623. ('gt_unused', ctypes.c_uint32),
  624. ]
  625. class struct_c__UA_Elf32_gptab_gt_entry(Structure):
  626. pass
  627. struct_c__UA_Elf32_gptab_gt_entry._pack_ = 1 # source:False
  628. struct_c__UA_Elf32_gptab_gt_entry._fields_ = [
  629. ('gt_g_value', ctypes.c_uint32),
  630. ('gt_bytes', ctypes.c_uint32),
  631. ]
  632. union_c__UA_Elf32_gptab._pack_ = 1 # source:False
  633. union_c__UA_Elf32_gptab._fields_ = [
  634. ('gt_header', struct_c__UA_Elf32_gptab_gt_header),
  635. ('gt_entry', struct_c__UA_Elf32_gptab_gt_entry),
  636. ]
  637. Elf32_gptab = union_c__UA_Elf32_gptab
  638. class struct_c__SA_Elf32_RegInfo(Structure):
  639. pass
  640. struct_c__SA_Elf32_RegInfo._pack_ = 1 # source:False
  641. struct_c__SA_Elf32_RegInfo._fields_ = [
  642. ('ri_gprmask', ctypes.c_uint32),
  643. ('ri_cprmask', ctypes.c_uint32 * 4),
  644. ('ri_gp_value', ctypes.c_int32),
  645. ]
  646. Elf32_RegInfo = struct_c__SA_Elf32_RegInfo
  647. class struct_c__SA_Elf_Options(Structure):
  648. pass
  649. struct_c__SA_Elf_Options._pack_ = 1 # source:False
  650. struct_c__SA_Elf_Options._fields_ = [
  651. ('kind', ctypes.c_ubyte),
  652. ('size', ctypes.c_ubyte),
  653. ('section', ctypes.c_uint16),
  654. ('info', ctypes.c_uint32),
  655. ]
  656. Elf_Options = struct_c__SA_Elf_Options
  657. class struct_c__SA_Elf_Options_Hw(Structure):
  658. pass
  659. struct_c__SA_Elf_Options_Hw._pack_ = 1 # source:False
  660. struct_c__SA_Elf_Options_Hw._fields_ = [
  661. ('hwp_flags1', ctypes.c_uint32),
  662. ('hwp_flags2', ctypes.c_uint32),
  663. ]
  664. Elf_Options_Hw = struct_c__SA_Elf_Options_Hw
  665. class struct_c__SA_Elf32_Lib(Structure):
  666. pass
  667. struct_c__SA_Elf32_Lib._pack_ = 1 # source:False
  668. struct_c__SA_Elf32_Lib._fields_ = [
  669. ('l_name', ctypes.c_uint32),
  670. ('l_time_stamp', ctypes.c_uint32),
  671. ('l_checksum', ctypes.c_uint32),
  672. ('l_version', ctypes.c_uint32),
  673. ('l_flags', ctypes.c_uint32),
  674. ]
  675. Elf32_Lib = struct_c__SA_Elf32_Lib
  676. class struct_c__SA_Elf64_Lib(Structure):
  677. pass
  678. struct_c__SA_Elf64_Lib._pack_ = 1 # source:False
  679. struct_c__SA_Elf64_Lib._fields_ = [
  680. ('l_name', ctypes.c_uint32),
  681. ('l_time_stamp', ctypes.c_uint32),
  682. ('l_checksum', ctypes.c_uint32),
  683. ('l_version', ctypes.c_uint32),
  684. ('l_flags', ctypes.c_uint32),
  685. ]
  686. Elf64_Lib = struct_c__SA_Elf64_Lib
  687. Elf32_Conflict = ctypes.c_uint32
  688. class struct_c__SA_Elf_MIPS_ABIFlags_v0(Structure):
  689. pass
  690. struct_c__SA_Elf_MIPS_ABIFlags_v0._pack_ = 1 # source:False
  691. struct_c__SA_Elf_MIPS_ABIFlags_v0._fields_ = [
  692. ('version', ctypes.c_uint16),
  693. ('isa_level', ctypes.c_ubyte),
  694. ('isa_rev', ctypes.c_ubyte),
  695. ('gpr_size', ctypes.c_ubyte),
  696. ('cpr1_size', ctypes.c_ubyte),
  697. ('cpr2_size', ctypes.c_ubyte),
  698. ('fp_abi', ctypes.c_ubyte),
  699. ('isa_ext', ctypes.c_uint32),
  700. ('ases', ctypes.c_uint32),
  701. ('flags1', ctypes.c_uint32),
  702. ('flags2', ctypes.c_uint32),
  703. ]
  704. Elf_MIPS_ABIFlags_v0 = struct_c__SA_Elf_MIPS_ABIFlags_v0
  705. # values for enumeration 'c__Ea_Val_GNU_MIPS_ABI_FP_ANY'
  706. c__Ea_Val_GNU_MIPS_ABI_FP_ANY__enumvalues = {
  707. 0: 'Val_GNU_MIPS_ABI_FP_ANY',
  708. 1: 'Val_GNU_MIPS_ABI_FP_DOUBLE',
  709. 2: 'Val_GNU_MIPS_ABI_FP_SINGLE',
  710. 3: 'Val_GNU_MIPS_ABI_FP_SOFT',
  711. 4: 'Val_GNU_MIPS_ABI_FP_OLD_64',
  712. 5: 'Val_GNU_MIPS_ABI_FP_XX',
  713. 6: 'Val_GNU_MIPS_ABI_FP_64',
  714. 7: 'Val_GNU_MIPS_ABI_FP_64A',
  715. 7: 'Val_GNU_MIPS_ABI_FP_MAX',
  716. }
  717. Val_GNU_MIPS_ABI_FP_ANY = 0
  718. Val_GNU_MIPS_ABI_FP_DOUBLE = 1
  719. Val_GNU_MIPS_ABI_FP_SINGLE = 2
  720. Val_GNU_MIPS_ABI_FP_SOFT = 3
  721. Val_GNU_MIPS_ABI_FP_OLD_64 = 4
  722. Val_GNU_MIPS_ABI_FP_XX = 5
  723. Val_GNU_MIPS_ABI_FP_64 = 6
  724. Val_GNU_MIPS_ABI_FP_64A = 7
  725. Val_GNU_MIPS_ABI_FP_MAX = 7
  726. c__Ea_Val_GNU_MIPS_ABI_FP_ANY = ctypes.c_uint32 # enum
  727. ssize_t = ctypes.c_int64
  728. gid_t = ctypes.c_uint32
  729. uid_t = ctypes.c_uint32
  730. useconds_t = ctypes.c_uint32
  731. pid_t = ctypes.c_int32
  732. intptr_t = ctypes.c_int64
  733. socklen_t = ctypes.c_uint32
  734. try:
  735. access = _libraries['libc'].access
  736. access.restype = ctypes.c_int32
  737. access.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
  738. except AttributeError:
  739. pass
  740. try:
  741. faccessat = _libraries['libc'].faccessat
  742. faccessat.restype = ctypes.c_int32
  743. faccessat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.c_int32]
  744. except AttributeError:
  745. pass
  746. try:
  747. lseek = _libraries['libc'].lseek
  748. lseek.restype = __off_t
  749. lseek.argtypes = [ctypes.c_int32, __off_t, ctypes.c_int32]
  750. except AttributeError:
  751. pass
  752. try:
  753. close = _libraries['libc'].close
  754. close.restype = ctypes.c_int32
  755. close.argtypes = [ctypes.c_int32]
  756. except AttributeError:
  757. pass
  758. try:
  759. closefrom = _libraries['libc'].closefrom
  760. closefrom.restype = None
  761. closefrom.argtypes = [ctypes.c_int32]
  762. except AttributeError:
  763. pass
  764. try:
  765. read = _libraries['libc'].read
  766. read.restype = ssize_t
  767. read.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t]
  768. except AttributeError:
  769. pass
  770. try:
  771. write = _libraries['libc'].write
  772. write.restype = ssize_t
  773. write.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t]
  774. except AttributeError:
  775. pass
  776. try:
  777. pread = _libraries['libc'].pread
  778. pread.restype = ssize_t
  779. pread.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t, __off_t]
  780. except AttributeError:
  781. pass
  782. try:
  783. pwrite = _libraries['libc'].pwrite
  784. pwrite.restype = ssize_t
  785. pwrite.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t, __off_t]
  786. except AttributeError:
  787. pass
  788. try:
  789. pipe = _libraries['libc'].pipe
  790. pipe.restype = ctypes.c_int32
  791. pipe.argtypes = [ctypes.c_int32 * 2]
  792. except AttributeError:
  793. pass
  794. try:
  795. alarm = _libraries['libc'].alarm
  796. alarm.restype = ctypes.c_uint32
  797. alarm.argtypes = [ctypes.c_uint32]
  798. except AttributeError:
  799. pass
  800. try:
  801. sleep = _libraries['libc'].sleep
  802. sleep.restype = ctypes.c_uint32
  803. sleep.argtypes = [ctypes.c_uint32]
  804. except AttributeError:
  805. pass
  806. __useconds_t = ctypes.c_uint32
  807. try:
  808. ualarm = _libraries['libc'].ualarm
  809. ualarm.restype = __useconds_t
  810. ualarm.argtypes = [__useconds_t, __useconds_t]
  811. except AttributeError:
  812. pass
  813. try:
  814. usleep = _libraries['libc'].usleep
  815. usleep.restype = ctypes.c_int32
  816. usleep.argtypes = [__useconds_t]
  817. except AttributeError:
  818. pass
  819. try:
  820. pause = _libraries['libc'].pause
  821. pause.restype = ctypes.c_int32
  822. pause.argtypes = []
  823. except AttributeError:
  824. pass
  825. __uid_t = ctypes.c_uint32
  826. __gid_t = ctypes.c_uint32
  827. try:
  828. chown = _libraries['libc'].chown
  829. chown.restype = ctypes.c_int32
  830. chown.argtypes = [ctypes.POINTER(ctypes.c_char), __uid_t, __gid_t]
  831. except AttributeError:
  832. pass
  833. try:
  834. fchown = _libraries['libc'].fchown
  835. fchown.restype = ctypes.c_int32
  836. fchown.argtypes = [ctypes.c_int32, __uid_t, __gid_t]
  837. except AttributeError:
  838. pass
  839. try:
  840. lchown = _libraries['libc'].lchown
  841. lchown.restype = ctypes.c_int32
  842. lchown.argtypes = [ctypes.POINTER(ctypes.c_char), __uid_t, __gid_t]
  843. except AttributeError:
  844. pass
  845. try:
  846. fchownat = _libraries['libc'].fchownat
  847. fchownat.restype = ctypes.c_int32
  848. fchownat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), __uid_t, __gid_t, ctypes.c_int32]
  849. except AttributeError:
  850. pass
  851. try:
  852. chdir = _libraries['libc'].chdir
  853. chdir.restype = ctypes.c_int32
  854. chdir.argtypes = [ctypes.POINTER(ctypes.c_char)]
  855. except AttributeError:
  856. pass
  857. try:
  858. fchdir = _libraries['libc'].fchdir
  859. fchdir.restype = ctypes.c_int32
  860. fchdir.argtypes = [ctypes.c_int32]
  861. except AttributeError:
  862. pass
  863. try:
  864. getcwd = _libraries['libc'].getcwd
  865. getcwd.restype = ctypes.POINTER(ctypes.c_char)
  866. getcwd.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
  867. except AttributeError:
  868. pass
  869. try:
  870. getwd = _libraries['libc'].getwd
  871. getwd.restype = ctypes.POINTER(ctypes.c_char)
  872. getwd.argtypes = [ctypes.POINTER(ctypes.c_char)]
  873. except AttributeError:
  874. pass
  875. try:
  876. dup = _libraries['libc'].dup
  877. dup.restype = ctypes.c_int32
  878. dup.argtypes = [ctypes.c_int32]
  879. except AttributeError:
  880. pass
  881. try:
  882. dup2 = _libraries['libc'].dup2
  883. dup2.restype = ctypes.c_int32
  884. dup2.argtypes = [ctypes.c_int32, ctypes.c_int32]
  885. except AttributeError:
  886. pass
  887. __environ = ctypes.POINTER(ctypes.POINTER(ctypes.c_char))() # Variable ctypes.POINTER(ctypes.POINTER(ctypes.c_char))
  888. try:
  889. execve = _libraries['libc'].execve
  890. execve.restype = ctypes.c_int32
  891. execve.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char) * 0, ctypes.POINTER(ctypes.c_char) * 0]
  892. except AttributeError:
  893. pass
  894. try:
  895. fexecve = _libraries['libc'].fexecve
  896. fexecve.restype = ctypes.c_int32
  897. fexecve.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char) * 0, ctypes.POINTER(ctypes.c_char) * 0]
  898. except AttributeError:
  899. pass
  900. try:
  901. execv = _libraries['libc'].execv
  902. execv.restype = ctypes.c_int32
  903. execv.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char) * 0]
  904. except AttributeError:
  905. pass
  906. try:
  907. execle = _libraries['libc'].execle
  908. execle.restype = ctypes.c_int32
  909. execle.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
  910. except AttributeError:
  911. pass
  912. try:
  913. execl = _libraries['libc'].execl
  914. execl.restype = ctypes.c_int32
  915. execl.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
  916. except AttributeError:
  917. pass
  918. try:
  919. execvp = _libraries['libc'].execvp
  920. execvp.restype = ctypes.c_int32
  921. execvp.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char) * 0]
  922. except AttributeError:
  923. pass
  924. try:
  925. execlp = _libraries['libc'].execlp
  926. execlp.restype = ctypes.c_int32
  927. execlp.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
  928. except AttributeError:
  929. pass
  930. try:
  931. nice = _libraries['libc'].nice
  932. nice.restype = ctypes.c_int32
  933. nice.argtypes = [ctypes.c_int32]
  934. except AttributeError:
  935. pass
  936. try:
  937. _exit = _libraries['libc']._exit
  938. _exit.restype = None
  939. _exit.argtypes = [ctypes.c_int32]
  940. except AttributeError:
  941. pass
  942. try:
  943. pathconf = _libraries['libc'].pathconf
  944. pathconf.restype = ctypes.c_int64
  945. pathconf.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
  946. except AttributeError:
  947. pass
  948. try:
  949. fpathconf = _libraries['libc'].fpathconf
  950. fpathconf.restype = ctypes.c_int64
  951. fpathconf.argtypes = [ctypes.c_int32, ctypes.c_int32]
  952. except AttributeError:
  953. pass
  954. try:
  955. sysconf = _libraries['libc'].sysconf
  956. sysconf.restype = ctypes.c_int64
  957. sysconf.argtypes = [ctypes.c_int32]
  958. except AttributeError:
  959. pass
  960. try:
  961. confstr = _libraries['libc'].confstr
  962. confstr.restype = size_t
  963. confstr.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), size_t]
  964. except AttributeError:
  965. pass
  966. __pid_t = ctypes.c_int32
  967. try:
  968. getpid = _libraries['libc'].getpid
  969. getpid.restype = __pid_t
  970. getpid.argtypes = []
  971. except AttributeError:
  972. pass
  973. try:
  974. getppid = _libraries['libc'].getppid
  975. getppid.restype = __pid_t
  976. getppid.argtypes = []
  977. except AttributeError:
  978. pass
  979. try:
  980. getpgrp = _libraries['libc'].getpgrp
  981. getpgrp.restype = __pid_t
  982. getpgrp.argtypes = []
  983. except AttributeError:
  984. pass
  985. try:
  986. __getpgid = _libraries['libc'].__getpgid
  987. __getpgid.restype = __pid_t
  988. __getpgid.argtypes = [__pid_t]
  989. except AttributeError:
  990. pass
  991. try:
  992. getpgid = _libraries['libc'].getpgid
  993. getpgid.restype = __pid_t
  994. getpgid.argtypes = [__pid_t]
  995. except AttributeError:
  996. pass
  997. try:
  998. setpgid = _libraries['libc'].setpgid
  999. setpgid.restype = ctypes.c_int32
  1000. setpgid.argtypes = [__pid_t, __pid_t]
  1001. except AttributeError:
  1002. pass
  1003. try:
  1004. setpgrp = _libraries['libc'].setpgrp
  1005. setpgrp.restype = ctypes.c_int32
  1006. setpgrp.argtypes = []
  1007. except AttributeError:
  1008. pass
  1009. try:
  1010. setsid = _libraries['libc'].setsid
  1011. setsid.restype = __pid_t
  1012. setsid.argtypes = []
  1013. except AttributeError:
  1014. pass
  1015. try:
  1016. getsid = _libraries['libc'].getsid
  1017. getsid.restype = __pid_t
  1018. getsid.argtypes = [__pid_t]
  1019. except AttributeError:
  1020. pass
  1021. try:
  1022. getuid = _libraries['libc'].getuid
  1023. getuid.restype = __uid_t
  1024. getuid.argtypes = []
  1025. except AttributeError:
  1026. pass
  1027. try:
  1028. geteuid = _libraries['libc'].geteuid
  1029. geteuid.restype = __uid_t
  1030. geteuid.argtypes = []
  1031. except AttributeError:
  1032. pass
  1033. try:
  1034. getgid = _libraries['libc'].getgid
  1035. getgid.restype = __gid_t
  1036. getgid.argtypes = []
  1037. except AttributeError:
  1038. pass
  1039. try:
  1040. getegid = _libraries['libc'].getegid
  1041. getegid.restype = __gid_t
  1042. getegid.argtypes = []
  1043. except AttributeError:
  1044. pass
  1045. try:
  1046. getgroups = _libraries['libc'].getgroups
  1047. getgroups.restype = ctypes.c_int32
  1048. getgroups.argtypes = [ctypes.c_int32, ctypes.c_uint32 * 0]
  1049. except AttributeError:
  1050. pass
  1051. try:
  1052. setuid = _libraries['libc'].setuid
  1053. setuid.restype = ctypes.c_int32
  1054. setuid.argtypes = [__uid_t]
  1055. except AttributeError:
  1056. pass
  1057. try:
  1058. setreuid = _libraries['libc'].setreuid
  1059. setreuid.restype = ctypes.c_int32
  1060. setreuid.argtypes = [__uid_t, __uid_t]
  1061. except AttributeError:
  1062. pass
  1063. try:
  1064. seteuid = _libraries['libc'].seteuid
  1065. seteuid.restype = ctypes.c_int32
  1066. seteuid.argtypes = [__uid_t]
  1067. except AttributeError:
  1068. pass
  1069. try:
  1070. setgid = _libraries['libc'].setgid
  1071. setgid.restype = ctypes.c_int32
  1072. setgid.argtypes = [__gid_t]
  1073. except AttributeError:
  1074. pass
  1075. try:
  1076. setregid = _libraries['libc'].setregid
  1077. setregid.restype = ctypes.c_int32
  1078. setregid.argtypes = [__gid_t, __gid_t]
  1079. except AttributeError:
  1080. pass
  1081. try:
  1082. setegid = _libraries['libc'].setegid
  1083. setegid.restype = ctypes.c_int32
  1084. setegid.argtypes = [__gid_t]
  1085. except AttributeError:
  1086. pass
  1087. try:
  1088. fork = _libraries['libc'].fork
  1089. fork.restype = __pid_t
  1090. fork.argtypes = []
  1091. except AttributeError:
  1092. pass
  1093. try:
  1094. vfork = _libraries['libc'].vfork
  1095. vfork.restype = ctypes.c_int32
  1096. vfork.argtypes = []
  1097. except AttributeError:
  1098. pass
  1099. try:
  1100. ttyname = _libraries['libc'].ttyname
  1101. ttyname.restype = ctypes.POINTER(ctypes.c_char)
  1102. ttyname.argtypes = [ctypes.c_int32]
  1103. except AttributeError:
  1104. pass
  1105. try:
  1106. ttyname_r = _libraries['libc'].ttyname_r
  1107. ttyname_r.restype = ctypes.c_int32
  1108. ttyname_r.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), size_t]
  1109. except AttributeError:
  1110. pass
  1111. try:
  1112. isatty = _libraries['libc'].isatty
  1113. isatty.restype = ctypes.c_int32
  1114. isatty.argtypes = [ctypes.c_int32]
  1115. except AttributeError:
  1116. pass
  1117. try:
  1118. ttyslot = _libraries['libc'].ttyslot
  1119. ttyslot.restype = ctypes.c_int32
  1120. ttyslot.argtypes = []
  1121. except AttributeError:
  1122. pass
  1123. try:
  1124. link = _libraries['libc'].link
  1125. link.restype = ctypes.c_int32
  1126. link.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
  1127. except AttributeError:
  1128. pass
  1129. try:
  1130. linkat = _libraries['libc'].linkat
  1131. linkat.restype = ctypes.c_int32
  1132. linkat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
  1133. except AttributeError:
  1134. pass
  1135. try:
  1136. symlink = _libraries['libc'].symlink
  1137. symlink.restype = ctypes.c_int32
  1138. symlink.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
  1139. except AttributeError:
  1140. pass
  1141. try:
  1142. readlink = _libraries['libc'].readlink
  1143. readlink.restype = ssize_t
  1144. readlink.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), size_t]
  1145. except AttributeError:
  1146. pass
  1147. try:
  1148. symlinkat = _libraries['libc'].symlinkat
  1149. symlinkat.restype = ctypes.c_int32
  1150. symlinkat.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char)]
  1151. except AttributeError:
  1152. pass
  1153. try:
  1154. readlinkat = _libraries['libc'].readlinkat
  1155. readlinkat.restype = ssize_t
  1156. readlinkat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), size_t]
  1157. except AttributeError:
  1158. pass
  1159. try:
  1160. unlink = _libraries['libc'].unlink
  1161. unlink.restype = ctypes.c_int32
  1162. unlink.argtypes = [ctypes.POINTER(ctypes.c_char)]
  1163. except AttributeError:
  1164. pass
  1165. try:
  1166. unlinkat = _libraries['libc'].unlinkat
  1167. unlinkat.restype = ctypes.c_int32
  1168. unlinkat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
  1169. except AttributeError:
  1170. pass
  1171. try:
  1172. rmdir = _libraries['libc'].rmdir
  1173. rmdir.restype = ctypes.c_int32
  1174. rmdir.argtypes = [ctypes.POINTER(ctypes.c_char)]
  1175. except AttributeError:
  1176. pass
  1177. try:
  1178. tcgetpgrp = _libraries['libc'].tcgetpgrp
  1179. tcgetpgrp.restype = __pid_t
  1180. tcgetpgrp.argtypes = [ctypes.c_int32]
  1181. except AttributeError:
  1182. pass
  1183. try:
  1184. tcsetpgrp = _libraries['libc'].tcsetpgrp
  1185. tcsetpgrp.restype = ctypes.c_int32
  1186. tcsetpgrp.argtypes = [ctypes.c_int32, __pid_t]
  1187. except AttributeError:
  1188. pass
  1189. try:
  1190. getlogin = _libraries['libc'].getlogin
  1191. getlogin.restype = ctypes.POINTER(ctypes.c_char)
  1192. getlogin.argtypes = []
  1193. except AttributeError:
  1194. pass
  1195. try:
  1196. getlogin_r = _libraries['libc'].getlogin_r
  1197. getlogin_r.restype = ctypes.c_int32
  1198. getlogin_r.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
  1199. except AttributeError:
  1200. pass
  1201. try:
  1202. setlogin = _libraries['libc'].setlogin
  1203. setlogin.restype = ctypes.c_int32
  1204. setlogin.argtypes = [ctypes.POINTER(ctypes.c_char)]
  1205. except AttributeError:
  1206. pass
  1207. try:
  1208. gethostname = _libraries['libc'].gethostname
  1209. gethostname.restype = ctypes.c_int32
  1210. gethostname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
  1211. except AttributeError:
  1212. pass
  1213. try:
  1214. sethostname = _libraries['libc'].sethostname
  1215. sethostname.restype = ctypes.c_int32
  1216. sethostname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
  1217. except AttributeError:
  1218. pass
  1219. try:
  1220. sethostid = _libraries['libc'].sethostid
  1221. sethostid.restype = ctypes.c_int32
  1222. sethostid.argtypes = [ctypes.c_int64]
  1223. except AttributeError:
  1224. pass
  1225. try:
  1226. getdomainname = _libraries['libc'].getdomainname
  1227. getdomainname.restype = ctypes.c_int32
  1228. getdomainname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
  1229. except AttributeError:
  1230. pass
  1231. try:
  1232. setdomainname = _libraries['libc'].setdomainname
  1233. setdomainname.restype = ctypes.c_int32
  1234. setdomainname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
  1235. except AttributeError:
  1236. pass
  1237. try:
  1238. vhangup = _libraries['libc'].vhangup
  1239. vhangup.restype = ctypes.c_int32
  1240. vhangup.argtypes = []
  1241. except AttributeError:
  1242. pass
  1243. try:
  1244. revoke = _libraries['libc'].revoke
  1245. revoke.restype = ctypes.c_int32
  1246. revoke.argtypes = [ctypes.POINTER(ctypes.c_char)]
  1247. except AttributeError:
  1248. pass
  1249. try:
  1250. profil = _libraries['libc'].profil
  1251. profil.restype = ctypes.c_int32
  1252. profil.argtypes = [ctypes.POINTER(ctypes.c_uint16), size_t, size_t, ctypes.c_uint32]
  1253. except AttributeError:
  1254. pass
  1255. try:
  1256. acct = _libraries['libc'].acct
  1257. acct.restype = ctypes.c_int32
  1258. acct.argtypes = [ctypes.POINTER(ctypes.c_char)]
  1259. except AttributeError:
  1260. pass
  1261. try:
  1262. getusershell = _libraries['libc'].getusershell
  1263. getusershell.restype = ctypes.POINTER(ctypes.c_char)
  1264. getusershell.argtypes = []
  1265. except AttributeError:
  1266. pass
  1267. try:
  1268. endusershell = _libraries['libc'].endusershell
  1269. endusershell.restype = None
  1270. endusershell.argtypes = []
  1271. except AttributeError:
  1272. pass
  1273. try:
  1274. setusershell = _libraries['libc'].setusershell
  1275. setusershell.restype = None
  1276. setusershell.argtypes = []
  1277. except AttributeError:
  1278. pass
  1279. try:
  1280. daemon = _libraries['libc'].daemon
  1281. daemon.restype = ctypes.c_int32
  1282. daemon.argtypes = [ctypes.c_int32, ctypes.c_int32]
  1283. except AttributeError:
  1284. pass
  1285. try:
  1286. chroot = _libraries['libc'].chroot
  1287. chroot.restype = ctypes.c_int32
  1288. chroot.argtypes = [ctypes.POINTER(ctypes.c_char)]
  1289. except AttributeError:
  1290. pass
  1291. try:
  1292. getpass = _libraries['libc'].getpass
  1293. getpass.restype = ctypes.POINTER(ctypes.c_char)
  1294. getpass.argtypes = [ctypes.POINTER(ctypes.c_char)]
  1295. except AttributeError:
  1296. pass
  1297. try:
  1298. fsync = _libraries['libc'].fsync
  1299. fsync.restype = ctypes.c_int32
  1300. fsync.argtypes = [ctypes.c_int32]
  1301. except AttributeError:
  1302. pass
  1303. try:
  1304. gethostid = _libraries['libc'].gethostid
  1305. gethostid.restype = ctypes.c_int64
  1306. gethostid.argtypes = []
  1307. except AttributeError:
  1308. pass
  1309. try:
  1310. sync = _libraries['libc'].sync
  1311. sync.restype = None
  1312. sync.argtypes = []
  1313. except AttributeError:
  1314. pass
  1315. try:
  1316. getpagesize = _libraries['libc'].getpagesize
  1317. getpagesize.restype = ctypes.c_int32
  1318. getpagesize.argtypes = []
  1319. except AttributeError:
  1320. pass
  1321. try:
  1322. getdtablesize = _libraries['libc'].getdtablesize
  1323. getdtablesize.restype = ctypes.c_int32
  1324. getdtablesize.argtypes = []
  1325. except AttributeError:
  1326. pass
  1327. try:
  1328. truncate = _libraries['libc'].truncate
  1329. truncate.restype = ctypes.c_int32
  1330. truncate.argtypes = [ctypes.POINTER(ctypes.c_char), __off_t]
  1331. except AttributeError:
  1332. pass
  1333. try:
  1334. ftruncate = _libraries['libc'].ftruncate
  1335. ftruncate.restype = ctypes.c_int32
  1336. ftruncate.argtypes = [ctypes.c_int32, __off_t]
  1337. except AttributeError:
  1338. pass
  1339. try:
  1340. brk = _libraries['libc'].brk
  1341. brk.restype = ctypes.c_int32
  1342. brk.argtypes = [ctypes.POINTER(None)]
  1343. except AttributeError:
  1344. pass
  1345. try:
  1346. sbrk = _libraries['libc'].sbrk
  1347. sbrk.restype = ctypes.POINTER(None)
  1348. sbrk.argtypes = [intptr_t]
  1349. except AttributeError:
  1350. pass
  1351. try:
  1352. syscall = _libraries['libc'].syscall
  1353. syscall.restype = ctypes.c_int64
  1354. syscall.argtypes = [ctypes.c_int64]
  1355. except AttributeError:
  1356. pass
  1357. try:
  1358. lockf = _libraries['libc'].lockf
  1359. lockf.restype = ctypes.c_int32
  1360. lockf.argtypes = [ctypes.c_int32, ctypes.c_int32, __off_t]
  1361. except AttributeError:
  1362. pass
  1363. try:
  1364. fdatasync = _libraries['libc'].fdatasync
  1365. fdatasync.restype = ctypes.c_int32
  1366. fdatasync.argtypes = [ctypes.c_int32]
  1367. except AttributeError:
  1368. pass
  1369. try:
  1370. crypt = _libraries['libc'].crypt
  1371. crypt.restype = ctypes.POINTER(ctypes.c_char)
  1372. crypt.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
  1373. except AttributeError:
  1374. pass
  1375. try:
  1376. getentropy = _libraries['libc'].getentropy
  1377. getentropy.restype = ctypes.c_int32
  1378. getentropy.argtypes = [ctypes.POINTER(None), size_t]
  1379. except AttributeError:
  1380. pass
  1381. __all__ = \
  1382. ['Elf32_Addr', 'Elf32_Chdr', 'Elf32_Conflict', 'Elf32_Dyn',
  1383. 'Elf32_Ehdr', 'Elf32_Half', 'Elf32_Lib', 'Elf32_Move',
  1384. 'Elf32_Nhdr', 'Elf32_Off', 'Elf32_Phdr', 'Elf32_RegInfo',
  1385. 'Elf32_Rel', 'Elf32_Rela', 'Elf32_Section', 'Elf32_Shdr',
  1386. 'Elf32_Sword', 'Elf32_Sxword', 'Elf32_Sym', 'Elf32_Syminfo',
  1387. 'Elf32_Verdaux', 'Elf32_Verdef', 'Elf32_Vernaux', 'Elf32_Verneed',
  1388. 'Elf32_Versym', 'Elf32_Word', 'Elf32_Xword', 'Elf32_auxv_t',
  1389. 'Elf32_gptab', 'Elf64_Addr', 'Elf64_Chdr', 'Elf64_Dyn',
  1390. 'Elf64_Ehdr', 'Elf64_Half', 'Elf64_Lib', 'Elf64_Move',
  1391. 'Elf64_Nhdr', 'Elf64_Off', 'Elf64_Phdr', 'Elf64_Rel',
  1392. 'Elf64_Rela', 'Elf64_Section', 'Elf64_Shdr', 'Elf64_Sword',
  1393. 'Elf64_Sxword', 'Elf64_Sym', 'Elf64_Syminfo', 'Elf64_Verdaux',
  1394. 'Elf64_Verdef', 'Elf64_Vernaux', 'Elf64_Verneed', 'Elf64_Versym',
  1395. 'Elf64_Word', 'Elf64_Xword', 'Elf64_auxv_t',
  1396. 'Elf_MIPS_ABIFlags_v0', 'Elf_Options', 'Elf_Options_Hw',
  1397. 'Val_GNU_MIPS_ABI_FP_64', 'Val_GNU_MIPS_ABI_FP_64A',
  1398. 'Val_GNU_MIPS_ABI_FP_ANY', 'Val_GNU_MIPS_ABI_FP_DOUBLE',
  1399. 'Val_GNU_MIPS_ABI_FP_MAX', 'Val_GNU_MIPS_ABI_FP_OLD_64',
  1400. 'Val_GNU_MIPS_ABI_FP_SINGLE', 'Val_GNU_MIPS_ABI_FP_SOFT',
  1401. 'Val_GNU_MIPS_ABI_FP_XX', '__environ', '__getpgid', '__gid_t',
  1402. '__off_t', '__pid_t', '__uid_t', '__useconds_t', '_exit',
  1403. 'access', 'acct', 'alarm', 'brk', 'c__Ea_Val_GNU_MIPS_ABI_FP_ANY',
  1404. 'chdir', 'chown', 'chroot', 'close', 'closefrom', 'confstr',
  1405. 'crypt', 'daemon', 'dup', 'dup2', 'endusershell', 'execl',
  1406. 'execle', 'execlp', 'execv', 'execve', 'execvp', 'faccessat',
  1407. 'fchdir', 'fchown', 'fchownat', 'fdatasync', 'fexecve', 'fork',
  1408. 'fpathconf', 'fsync', 'ftruncate', 'getcwd', 'getdomainname',
  1409. 'getdtablesize', 'getegid', 'getentropy', 'geteuid', 'getgid',
  1410. 'getgroups', 'gethostid', 'gethostname', 'getlogin', 'getlogin_r',
  1411. 'getpagesize', 'getpass', 'getpgid', 'getpgrp', 'getpid',
  1412. 'getppid', 'getsid', 'getuid', 'getusershell', 'getwd', 'gid_t',
  1413. 'intptr_t', 'isatty', 'lchown', 'link', 'linkat', 'lockf',
  1414. 'lseek', 'madvise', 'mincore', 'mlock', 'mlockall', 'mmap',
  1415. 'mode_t', 'mprotect', 'msync', 'munlock', 'munlockall', 'munmap',
  1416. 'nice', 'off_t', 'pathconf', 'pause', 'pid_t', 'pipe',
  1417. 'posix_madvise', 'pread', 'profil', 'pwrite', 'read', 'readlink',
  1418. 'readlinkat', 'revoke', 'rmdir', 'sbrk', 'setdomainname',
  1419. 'setegid', 'seteuid', 'setgid', 'sethostid', 'sethostname',
  1420. 'setlogin', 'setpgid', 'setpgrp', 'setregid', 'setreuid',
  1421. 'setsid', 'setuid', 'setusershell', 'shm_open', 'shm_unlink',
  1422. 'size_t', 'sleep', 'socklen_t', 'ssize_t',
  1423. 'struct_c__SA_Elf32_Chdr', 'struct_c__SA_Elf32_Dyn',
  1424. 'struct_c__SA_Elf32_Ehdr', 'struct_c__SA_Elf32_Lib',
  1425. 'struct_c__SA_Elf32_Move', 'struct_c__SA_Elf32_Nhdr',
  1426. 'struct_c__SA_Elf32_Phdr', 'struct_c__SA_Elf32_RegInfo',
  1427. 'struct_c__SA_Elf32_Rel', 'struct_c__SA_Elf32_Rela',
  1428. 'struct_c__SA_Elf32_Shdr', 'struct_c__SA_Elf32_Sym',
  1429. 'struct_c__SA_Elf32_Syminfo', 'struct_c__SA_Elf32_Verdaux',
  1430. 'struct_c__SA_Elf32_Verdef', 'struct_c__SA_Elf32_Vernaux',
  1431. 'struct_c__SA_Elf32_Verneed', 'struct_c__SA_Elf32_auxv_t',
  1432. 'struct_c__SA_Elf64_Chdr', 'struct_c__SA_Elf64_Dyn',
  1433. 'struct_c__SA_Elf64_Ehdr', 'struct_c__SA_Elf64_Lib',
  1434. 'struct_c__SA_Elf64_Move', 'struct_c__SA_Elf64_Nhdr',
  1435. 'struct_c__SA_Elf64_Phdr', 'struct_c__SA_Elf64_Rel',
  1436. 'struct_c__SA_Elf64_Rela', 'struct_c__SA_Elf64_Shdr',
  1437. 'struct_c__SA_Elf64_Sym', 'struct_c__SA_Elf64_Syminfo',
  1438. 'struct_c__SA_Elf64_Verdaux', 'struct_c__SA_Elf64_Verdef',
  1439. 'struct_c__SA_Elf64_Vernaux', 'struct_c__SA_Elf64_Verneed',
  1440. 'struct_c__SA_Elf64_auxv_t', 'struct_c__SA_Elf_MIPS_ABIFlags_v0',
  1441. 'struct_c__SA_Elf_Options', 'struct_c__SA_Elf_Options_Hw',
  1442. 'struct_c__UA_Elf32_gptab_gt_entry',
  1443. 'struct_c__UA_Elf32_gptab_gt_header', 'symlink', 'symlinkat',
  1444. 'sync', 'syscall', 'sysconf', 'tcgetpgrp', 'tcsetpgrp',
  1445. 'truncate', 'ttyname', 'ttyname_r', 'ttyslot', 'ualarm', 'uid_t',
  1446. 'union_c__SA_Elf32_Dyn_d_un', 'union_c__SA_Elf32_auxv_t_a_un',
  1447. 'union_c__SA_Elf64_Dyn_d_un', 'union_c__SA_Elf64_auxv_t_a_un',
  1448. 'union_c__UA_Elf32_gptab', 'unlink', 'unlinkat', 'useconds_t',
  1449. 'usleep', 'vfork', 'vhangup', 'write']
  1450. _ELF_H = 1
  1451. EI_NIDENT = (16)
  1452. EI_MAG0 = 0
  1453. ELFMAG0 = 0x7f
  1454. EI_MAG1 = 1
  1455. ELFMAG1 = 'E'
  1456. EI_MAG2 = 2
  1457. ELFMAG2 = 'L'
  1458. EI_MAG3 = 3
  1459. ELFMAG3 = 'F'
  1460. ELFMAG = "\177ELF"
  1461. SELFMAG = 4
  1462. EI_CLASS = 4
  1463. ELFCLASSNONE = 0
  1464. ELFCLASS32 = 1
  1465. ELFCLASS64 = 2
  1466. ELFCLASSNUM = 3
  1467. EI_DATA = 5
  1468. ELFDATANONE = 0
  1469. ELFDATA2LSB = 1
  1470. ELFDATA2MSB = 2
  1471. ELFDATANUM = 3
  1472. EI_VERSION = 6
  1473. EI_OSABI = 7
  1474. ELFOSABI_NONE = 0
  1475. ELFOSABI_SYSV = 0
  1476. ELFOSABI_HPUX = 1
  1477. ELFOSABI_NETBSD = 2
  1478. ELFOSABI_GNU = 3
  1479. ELFOSABI_LINUX = ELFOSABI_GNU
  1480. ELFOSABI_SOLARIS = 6
  1481. ELFOSABI_AIX = 7
  1482. ELFOSABI_IRIX = 8
  1483. ELFOSABI_FREEBSD = 9
  1484. ELFOSABI_TRU64 = 10
  1485. ELFOSABI_MODESTO = 11
  1486. ELFOSABI_OPENBSD = 12
  1487. ELFOSABI_ARM_AEABI = 64
  1488. ELFOSABI_ARM = 97
  1489. ELFOSABI_STANDALONE = 255
  1490. EI_ABIVERSION = 8
  1491. EI_PAD = 9
  1492. ET_NONE = 0
  1493. ET_REL = 1
  1494. ET_EXEC = 2
  1495. ET_DYN = 3
  1496. ET_CORE = 4
  1497. ET_NUM = 5
  1498. ET_LOOS = 0xfe00
  1499. ET_HIOS = 0xfeff
  1500. ET_LOPROC = 0xff00
  1501. ET_HIPROC = 0xffff
  1502. EM_NONE = 0
  1503. EM_M32 = 1
  1504. EM_SPARC = 2
  1505. EM_386 = 3
  1506. EM_68K = 4
  1507. EM_88K = 5
  1508. EM_IAMCU = 6
  1509. EM_860 = 7
  1510. EM_MIPS = 8
  1511. EM_S370 = 9
  1512. EM_MIPS_RS3_LE = 10
  1513. EM_PARISC = 15
  1514. EM_VPP500 = 17
  1515. EM_SPARC32PLUS = 18
  1516. EM_960 = 19
  1517. EM_PPC = 20
  1518. EM_PPC64 = 21
  1519. EM_S390 = 22
  1520. EM_SPU = 23
  1521. EM_V800 = 36
  1522. EM_FR20 = 37
  1523. EM_RH32 = 38
  1524. EM_RCE = 39
  1525. EM_ARM = 40
  1526. EM_FAKE_ALPHA = 41
  1527. EM_SH = 42
  1528. EM_SPARCV9 = 43
  1529. EM_TRICORE = 44
  1530. EM_ARC = 45
  1531. EM_H8_300 = 46
  1532. EM_H8_300H = 47
  1533. EM_H8S = 48
  1534. EM_H8_500 = 49
  1535. EM_IA_64 = 50
  1536. EM_MIPS_X = 51
  1537. EM_COLDFIRE = 52
  1538. EM_68HC12 = 53
  1539. EM_MMA = 54
  1540. EM_PCP = 55
  1541. EM_NCPU = 56
  1542. EM_NDR1 = 57
  1543. EM_STARCORE = 58
  1544. EM_ME16 = 59
  1545. EM_ST100 = 60
  1546. EM_TINYJ = 61
  1547. EM_X86_64 = 62
  1548. EM_PDSP = 63
  1549. EM_PDP10 = 64
  1550. EM_PDP11 = 65
  1551. EM_FX66 = 66
  1552. EM_ST9PLUS = 67
  1553. EM_ST7 = 68
  1554. EM_68HC16 = 69
  1555. EM_68HC11 = 70
  1556. EM_68HC08 = 71
  1557. EM_68HC05 = 72
  1558. EM_SVX = 73
  1559. EM_ST19 = 74
  1560. EM_VAX = 75
  1561. EM_CRIS = 76
  1562. EM_JAVELIN = 77
  1563. EM_FIREPATH = 78
  1564. EM_ZSP = 79
  1565. EM_MMIX = 80
  1566. EM_HUANY = 81
  1567. EM_PRISM = 82
  1568. EM_AVR = 83
  1569. EM_FR30 = 84
  1570. EM_D10V = 85
  1571. EM_D30V = 86
  1572. EM_V850 = 87
  1573. EM_M32R = 88
  1574. EM_MN10300 = 89
  1575. EM_MN10200 = 90
  1576. EM_PJ = 91
  1577. EM_OPENRISC = 92
  1578. EM_ARC_COMPACT = 93
  1579. EM_XTENSA = 94
  1580. EM_VIDEOCORE = 95
  1581. EM_TMM_GPP = 96
  1582. EM_NS32K = 97
  1583. EM_TPC = 98
  1584. EM_SNP1K = 99
  1585. EM_ST200 = 100
  1586. EM_IP2K = 101
  1587. EM_MAX = 102
  1588. EM_CR = 103
  1589. EM_F2MC16 = 104
  1590. EM_MSP430 = 105
  1591. EM_BLACKFIN = 106
  1592. EM_SE_C33 = 107
  1593. EM_SEP = 108
  1594. EM_ARCA = 109
  1595. EM_UNICORE = 110
  1596. EM_EXCESS = 111
  1597. EM_DXP = 112
  1598. EM_ALTERA_NIOS2 = 113
  1599. EM_CRX = 114
  1600. EM_XGATE = 115
  1601. EM_C166 = 116
  1602. EM_M16C = 117
  1603. EM_DSPIC30F = 118
  1604. EM_CE = 119
  1605. EM_M32C = 120
  1606. EM_TSK3000 = 131
  1607. EM_RS08 = 132
  1608. EM_SHARC = 133
  1609. EM_ECOG2 = 134
  1610. EM_SCORE7 = 135
  1611. EM_DSP24 = 136
  1612. EM_VIDEOCORE3 = 137
  1613. EM_LATTICEMICO32 = 138
  1614. EM_SE_C17 = 139
  1615. EM_TI_C6000 = 140
  1616. EM_TI_C2000 = 141
  1617. EM_TI_C5500 = 142
  1618. EM_TI_ARP32 = 143
  1619. EM_TI_PRU = 144
  1620. EM_MMDSP_PLUS = 160
  1621. EM_CYPRESS_M8C = 161
  1622. EM_R32C = 162
  1623. EM_TRIMEDIA = 163
  1624. EM_QDSP6 = 164
  1625. EM_8051 = 165
  1626. EM_STXP7X = 166
  1627. EM_NDS32 = 167
  1628. EM_ECOG1X = 168
  1629. EM_MAXQ30 = 169
  1630. EM_XIMO16 = 170
  1631. EM_MANIK = 171
  1632. EM_CRAYNV2 = 172
  1633. EM_RX = 173
  1634. EM_METAG = 174
  1635. EM_MCST_ELBRUS = 175
  1636. EM_ECOG16 = 176
  1637. EM_CR16 = 177
  1638. EM_ETPU = 178
  1639. EM_SLE9X = 179
  1640. EM_L10M = 180
  1641. EM_K10M = 181
  1642. EM_AARCH64 = 183
  1643. EM_AVR32 = 185
  1644. EM_STM8 = 186
  1645. EM_TILE64 = 187
  1646. EM_TILEPRO = 188
  1647. EM_MICROBLAZE = 189
  1648. EM_CUDA = 190
  1649. EM_TILEGX = 191
  1650. EM_CLOUDSHIELD = 192
  1651. EM_COREA_1ST = 193
  1652. EM_COREA_2ND = 194
  1653. EM_ARCV2 = 195
  1654. EM_OPEN8 = 196
  1655. EM_RL78 = 197
  1656. EM_VIDEOCORE5 = 198
  1657. EM_78KOR = 199
  1658. EM_56800EX = 200
  1659. EM_BA1 = 201
  1660. EM_BA2 = 202
  1661. EM_XCORE = 203
  1662. EM_MCHP_PIC = 204
  1663. EM_INTELGT = 205
  1664. EM_KM32 = 210
  1665. EM_KMX32 = 211
  1666. EM_EMX16 = 212
  1667. EM_EMX8 = 213
  1668. EM_KVARC = 214
  1669. EM_CDP = 215
  1670. EM_COGE = 216
  1671. EM_COOL = 217
  1672. EM_NORC = 218
  1673. EM_CSR_KALIMBA = 219
  1674. EM_Z80 = 220
  1675. EM_VISIUM = 221
  1676. EM_FT32 = 222
  1677. EM_MOXIE = 223
  1678. EM_AMDGPU = 224
  1679. EM_RISCV = 243
  1680. EM_BPF = 247
  1681. EM_CSKY = 252
  1682. EM_NUM = 253
  1683. EM_ARC_A5 = EM_ARC_COMPACT
  1684. EM_ALPHA = 0x9026
  1685. EV_NONE = 0
  1686. EV_CURRENT = 1
  1687. EV_NUM = 2
  1688. SHN_UNDEF = 0
  1689. SHN_LORESERVE = 0xff00
  1690. SHN_LOPROC = 0xff00
  1691. SHN_HIPROC = 0xff1f
  1692. SHN_LOOS = 0xff20
  1693. SHN_HIOS = 0xff3f
  1694. SHN_ABS = 0xfff1
  1695. SHN_COMMON = 0xfff2
  1696. SHN_XINDEX = 0xffff
  1697. SHN_HIRESERVE = 0xffff
  1698. SHT_NULL = 0
  1699. SHT_PROGBITS = 1
  1700. SHT_SYMTAB = 2
  1701. SHT_STRTAB = 3
  1702. SHT_RELA = 4
  1703. SHT_HASH = 5
  1704. SHT_DYNAMIC = 6
  1705. SHT_NOTE = 7
  1706. SHT_NOBITS = 8
  1707. SHT_REL = 9
  1708. SHT_SHLIB = 10
  1709. SHT_DYNSYM = 11
  1710. SHT_INIT_ARRAY = 14
  1711. SHT_FINI_ARRAY = 15
  1712. SHT_PREINIT_ARRAY = 16
  1713. SHT_GROUP = 17
  1714. SHT_SYMTAB_SHNDX = 18
  1715. SHT_NUM = 19
  1716. SHT_LOOS = 0x60000000
  1717. SHT_GNU_ATTRIBUTES = 0x6ffffff5
  1718. SHT_GNU_HASH = 0x6ffffff6
  1719. SHT_GNU_LIBLIST = 0x6ffffff7
  1720. SHT_CHECKSUM = 0x6ffffff8
  1721. SHT_LOSUNW = 0x6ffffffa
  1722. SHT_SUNW_move = 0x6ffffffa
  1723. SHT_SUNW_COMDAT = 0x6ffffffb
  1724. SHT_SUNW_syminfo = 0x6ffffffc
  1725. SHT_GNU_verdef = 0x6ffffffd
  1726. SHT_GNU_verneed = 0x6ffffffe
  1727. SHT_GNU_versym = 0x6fffffff
  1728. SHT_HISUNW = 0x6fffffff
  1729. SHT_HIOS = 0x6fffffff
  1730. SHT_LOPROC = 0x70000000
  1731. SHT_HIPROC = 0x7fffffff
  1732. SHT_LOUSER = 0x80000000
  1733. SHT_HIUSER = 0x8fffffff
  1734. SHF_WRITE = (1 << 0)
  1735. SHF_ALLOC = (1 << 1)
  1736. SHF_EXECINSTR = (1 << 2)
  1737. SHF_MERGE = (1 << 4)
  1738. SHF_STRINGS = (1 << 5)
  1739. SHF_INFO_LINK = (1 << 6)
  1740. SHF_LINK_ORDER = (1 << 7)
  1741. SHF_GROUP = (1 << 9)
  1742. SHF_TLS = (1 << 10)
  1743. SHF_COMPRESSED = (1 << 11)
  1744. SHF_MASKOS = 0x0ff00000
  1745. SHF_MASKPROC = 0xf0000000
  1746. SHF_GNU_RETAIN = (1 << 21)
  1747. ELFCOMPRESS_ZLIB = 1
  1748. ELFCOMPRESS_LOOS = 0x60000000
  1749. ELFCOMPRESS_HIOS = 0x6fffffff
  1750. ELFCOMPRESS_LOPROC = 0x70000000
  1751. ELFCOMPRESS_HIPROC = 0x7fffffff
  1752. GRP_COMDAT = 0x1
  1753. SYMINFO_BT_SELF = 0xffff
  1754. SYMINFO_BT_PARENT = 0xfffe
  1755. SYMINFO_BT_LOWRESERVE = 0xff00
  1756. SYMINFO_FLG_DIRECT = 0x0001
  1757. SYMINFO_FLG_PASSTHRU = 0x0002
  1758. SYMINFO_FLG_COPY = 0x0004
  1759. SYMINFO_NONE = 0
  1760. SYMINFO_CURRENT = 1
  1761. SYMINFO_NUM = 2
  1762. def ELF32_ST_BIND(val): return (((ctypes.c_ubyte) (val)) >> 4)
  1763. def ELF32_ST_TYPE(val): return ((val) & 0xf)
  1764. def ELF32_ST_INFO(bind, type): return (((bind) << 4) + ((type) & 0xf))
  1765. def ELF64_ST_BIND(val): return ELF32_ST_BIND (val)
  1766. def ELF64_ST_TYPE(val): return ELF32_ST_TYPE (val)
  1767. def ELF64_ST_INFO(bind, type): return ELF32_ST_INFO ((bind), (type))
  1768. STB_LOCAL = 0
  1769. STB_GLOBAL = 1
  1770. STB_WEAK = 2
  1771. STB_NUM = 3
  1772. STB_LOOS = 10
  1773. STB_GNU_UNIQUE = 10
  1774. STB_HIOS = 12
  1775. STB_LOPROC = 13
  1776. STB_HIPROC = 15
  1777. STT_NOTYPE = 0
  1778. STT_OBJECT = 1
  1779. STT_FUNC = 2
  1780. STT_SECTION = 3
  1781. STT_FILE = 4
  1782. STT_COMMON = 5
  1783. STT_TLS = 6
  1784. STT_NUM = 7
  1785. STT_LOOS = 10
  1786. STT_GNU_IFUNC = 10
  1787. STT_HIOS = 12
  1788. STT_LOPROC = 13
  1789. STT_HIPROC = 15
  1790. STN_UNDEF = 0
  1791. def ELF32_ST_VISIBILITY(o): return ((o) & 0x03)
  1792. def ELF64_ST_VISIBILITY(o): return ELF32_ST_VISIBILITY (o)
  1793. STV_DEFAULT = 0
  1794. STV_INTERNAL = 1
  1795. STV_HIDDEN = 2
  1796. STV_PROTECTED = 3
  1797. def ELF32_R_SYM(val): return ((val) >> 8)
  1798. def ELF32_R_TYPE(val): return ((val) & 0xff)
  1799. def ELF32_R_INFO(sym, type): return (((sym) << 8) + ((type) & 0xff))
  1800. def ELF64_R_SYM(i): return ((i) >> 32)
  1801. def ELF64_R_TYPE(i): return ((i) & 0xffffffff)
  1802. def ELF64_R_INFO(sym,type): return ((((Elf64_Xword) (sym)) << 32) + (type))
  1803. PN_XNUM = 0xffff
  1804. PT_NULL = 0
  1805. PT_LOAD = 1
  1806. PT_DYNAMIC = 2
  1807. PT_INTERP = 3
  1808. PT_NOTE = 4
  1809. PT_SHLIB = 5
  1810. PT_PHDR = 6
  1811. PT_TLS = 7
  1812. PT_NUM = 8
  1813. PT_LOOS = 0x60000000
  1814. PT_GNU_EH_FRAME = 0x6474e550
  1815. PT_GNU_STACK = 0x6474e551
  1816. PT_GNU_RELRO = 0x6474e552
  1817. PT_GNU_PROPERTY = 0x6474e553
  1818. PT_LOSUNW = 0x6ffffffa
  1819. PT_SUNWBSS = 0x6ffffffa
  1820. PT_SUNWSTACK = 0x6ffffffb
  1821. PT_HISUNW = 0x6fffffff
  1822. PT_HIOS = 0x6fffffff
  1823. PT_LOPROC = 0x70000000
  1824. PT_HIPROC = 0x7fffffff
  1825. PF_X = (1 << 0)
  1826. PF_W = (1 << 1)
  1827. PF_R = (1 << 2)
  1828. PF_MASKOS = 0x0ff00000
  1829. PF_MASKPROC = 0xf0000000
  1830. NT_PRSTATUS = 1
  1831. NT_FPREGSET = 2
  1832. NT_PRPSINFO = 3
  1833. NT_PRXREG = 4
  1834. NT_TASKSTRUCT = 4
  1835. NT_PLATFORM = 5
  1836. NT_AUXV = 6
  1837. NT_GWINDOWS = 7
  1838. NT_ASRS = 8
  1839. NT_PSTATUS = 10
  1840. NT_PSINFO = 13
  1841. NT_PRCRED = 14
  1842. NT_UTSNAME = 15
  1843. NT_LWPSTATUS = 16
  1844. NT_LWPSINFO = 17
  1845. NT_PRFPXREG = 20
  1846. NT_PRXFPREG = 0x46e62b7f
  1847. NT_PPC_VMX = 0x100
  1848. NT_PPC_SPE = 0x101
  1849. NT_PPC_VSX = 0x102
  1850. NT_PPC_TAR = 0x103
  1851. NT_PPC_PPR = 0x104
  1852. NT_PPC_DSCR = 0x105
  1853. NT_PPC_EBB = 0x106
  1854. NT_PPC_PMU = 0x107
  1855. NT_PPC_TM_CGPR = 0x108
  1856. NT_PPC_TM_CFPR = 0x109
  1857. NT_PPC_TM_CVMX = 0x10a
  1858. NT_PPC_TM_CVSX = 0x10b
  1859. NT_PPC_TM_SPR = 0x10c
  1860. NT_386_TLS = 0x200
  1861. NT_386_IOPERM = 0x201
  1862. NT_X86_XSTATE = 0x202
  1863. NT_S390_HIGH_GPRS = 0x300
  1864. NT_S390_TIMER = 0x301
  1865. NT_S390_TODCMP = 0x302
  1866. NT_S390_TODPREG = 0x303
  1867. NT_S390_CTRS = 0x304
  1868. NT_S390_PREFIX = 0x305
  1869. NT_S390_LAST_BREAK = 0x306
  1870. NT_S390_SYSTEM_CALL = 0x307
  1871. NT_S390_TDB = 0x308
  1872. NT_S390_VXRS_HIGH = 0x30a
  1873. NT_S390_GS_CB = 0x30b
  1874. NT_S390_RI_CB = 0x30d
  1875. NT_ARM_VFP = 0x400
  1876. NT_ARM_TLS = 0x401
  1877. NT_ARM_HW_BREAK = 0x402
  1878. NT_ARM_HW_WATCH = 0x403
  1879. NT_ARM_SYSTEM_CALL = 0x404
  1880. NT_VMCOREDD = 0x700
  1881. NT_MIPS_DSP = 0x800
  1882. NT_MIPS_FP_MODE = 0x801
  1883. NT_MIPS_MSA = 0x802
  1884. NT_VERSION = 1
  1885. DT_NULL = 0
  1886. DT_NEEDED = 1
  1887. DT_PLTRELSZ = 2
  1888. DT_PLTGOT = 3
  1889. DT_HASH = 4
  1890. DT_STRTAB = 5
  1891. DT_SYMTAB = 6
  1892. DT_RELA = 7
  1893. DT_RELASZ = 8
  1894. DT_RELAENT = 9
  1895. DT_STRSZ = 10
  1896. DT_SYMENT = 11
  1897. DT_INIT = 12
  1898. DT_FINI = 13
  1899. DT_SONAME = 14
  1900. DT_RPATH = 15
  1901. DT_SYMBOLIC = 16
  1902. DT_REL = 17
  1903. DT_RELSZ = 18
  1904. DT_RELENT = 19
  1905. DT_PLTREL = 20
  1906. DT_DEBUG = 21
  1907. DT_TEXTREL = 22
  1908. DT_JMPREL = 23
  1909. DT_BIND_NOW = 24
  1910. DT_INIT_ARRAY = 25
  1911. DT_FINI_ARRAY = 26
  1912. DT_INIT_ARRAYSZ = 27
  1913. DT_FINI_ARRAYSZ = 28
  1914. DT_RUNPATH = 29
  1915. DT_FLAGS = 30
  1916. DT_ENCODING = 32
  1917. DT_PREINIT_ARRAY = 32
  1918. DT_PREINIT_ARRAYSZ = 33
  1919. DT_SYMTAB_SHNDX = 34
  1920. DT_NUM = 35
  1921. DT_LOOS = 0x6000000d
  1922. DT_HIOS = 0x6ffff000
  1923. DT_LOPROC = 0x70000000
  1924. DT_HIPROC = 0x7fffffff
  1925. DT_VALRNGLO = 0x6ffffd00
  1926. DT_GNU_PRELINKED = 0x6ffffdf5
  1927. DT_GNU_CONFLICTSZ = 0x6ffffdf6
  1928. DT_GNU_LIBLISTSZ = 0x6ffffdf7
  1929. DT_CHECKSUM = 0x6ffffdf8
  1930. DT_PLTPADSZ = 0x6ffffdf9
  1931. DT_MOVEENT = 0x6ffffdfa
  1932. DT_MOVESZ = 0x6ffffdfb
  1933. DT_FEATURE_1 = 0x6ffffdfc
  1934. DT_SYMINSZ = 0x6ffffdfe
  1935. DT_SYMINENT = 0x6ffffdff
  1936. DT_VALRNGHI = 0x6ffffdff
  1937. def DT_VALTAGIDX(tag): return (DT_VALRNGHI - (tag))
  1938. DT_VALNUM = 12
  1939. DT_ADDRRNGLO = 0x6ffffe00
  1940. DT_GNU_HASH = 0x6ffffef5
  1941. DT_TLSDESC_PLT = 0x6ffffef6
  1942. DT_TLSDESC_GOT = 0x6ffffef7
  1943. DT_GNU_CONFLICT = 0x6ffffef8
  1944. DT_GNU_LIBLIST = 0x6ffffef9
  1945. DT_CONFIG = 0x6ffffefa
  1946. DT_DEPAUDIT = 0x6ffffefb
  1947. DT_AUDIT = 0x6ffffefc
  1948. DT_PLTPAD = 0x6ffffefd
  1949. DT_MOVETAB = 0x6ffffefe
  1950. DT_SYMINFO = 0x6ffffeff
  1951. DT_ADDRRNGHI = 0x6ffffeff
  1952. def DT_ADDRTAGIDX(tag): return (DT_ADDRRNGHI - (tag))
  1953. DT_ADDRNUM = 11
  1954. DT_VERSYM = 0x6ffffff0
  1955. DT_RELACOUNT = 0x6ffffff9
  1956. DT_RELCOUNT = 0x6ffffffa
  1957. DT_FLAGS_1 = 0x6ffffffb
  1958. DT_VERDEFNUM = 0x6ffffffd
  1959. DT_VERNEEDNUM = 0x6fffffff
  1960. def DT_VERSIONTAGIDX(tag): return (DT_VERNEEDNUM - (tag))
  1961. DT_VERSIONTAGNUM = 16
  1962. DT_AUXILIARY = 0x7ffffffd
  1963. DT_FILTER = 0x7fffffff
  1964. def DT_EXTRATAGIDX(tag): return ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1)
  1965. DT_EXTRANUM = 3
  1966. DF_ORIGIN = 0x00000001
  1967. DF_SYMBOLIC = 0x00000002
  1968. DF_TEXTREL = 0x00000004
  1969. DF_BIND_NOW = 0x00000008
  1970. DF_STATIC_TLS = 0x00000010
  1971. DF_1_NOW = 0x00000001
  1972. DF_1_GLOBAL = 0x00000002
  1973. DF_1_GROUP = 0x00000004
  1974. DF_1_NODELETE = 0x00000008
  1975. DF_1_LOADFLTR = 0x00000010
  1976. DF_1_INITFIRST = 0x00000020
  1977. DF_1_NOOPEN = 0x00000040
  1978. DF_1_ORIGIN = 0x00000080
  1979. DF_1_DIRECT = 0x00000100
  1980. DF_1_TRANS = 0x00000200
  1981. DF_1_INTERPOSE = 0x00000400
  1982. DF_1_NODEFLIB = 0x00000800
  1983. DF_1_NODUMP = 0x00001000
  1984. DF_1_CONFALT = 0x00002000
  1985. DF_1_ENDFILTEE = 0x00004000
  1986. DF_1_DISPRELDNE = 0x00008000
  1987. DF_1_DISPRELPND = 0x00010000
  1988. DF_1_NODIRECT = 0x00020000
  1989. DF_1_IGNMULDEF = 0x00040000
  1990. DF_1_NOKSYMS = 0x00080000
  1991. DF_1_NOHDR = 0x00100000
  1992. DF_1_EDITED = 0x00200000
  1993. DF_1_NORELOC = 0x00400000
  1994. DF_1_SYMINTPOSE = 0x00800000
  1995. DF_1_GLOBAUDIT = 0x01000000
  1996. DF_1_SINGLETON = 0x02000000
  1997. DF_1_STUB = 0x04000000
  1998. DF_1_PIE = 0x08000000
  1999. DF_1_KMOD = 0x10000000
  2000. DF_1_WEAKFILTER = 0x20000000
  2001. DF_1_NOCOMMON = 0x40000000
  2002. DTF_1_PARINIT = 0x00000001
  2003. DTF_1_CONFEXP = 0x00000002
  2004. DF_P1_LAZYLOAD = 0x00000001
  2005. VER_DEF_NONE = 0
  2006. VER_DEF_CURRENT = 1
  2007. VER_DEF_NUM = 2
  2008. VER_FLG_BASE = 0x1
  2009. VER_FLG_WEAK = 0x2
  2010. VER_NDX_LOCAL = 0
  2011. VER_NDX_GLOBAL = 1
  2012. VER_NDX_LORESERVE = 0xff00
  2013. VER_NDX_ELIMINATE = 0xff01
  2014. VER_NEED_NONE = 0
  2015. VER_NEED_CURRENT = 1
  2016. VER_NEED_NUM = 2
  2017. VER_FLG_WEAK = 0x2
  2018. AT_NULL = 0
  2019. AT_IGNORE = 1
  2020. AT_EXECFD = 2
  2021. AT_PHDR = 3
  2022. AT_PHENT = 4
  2023. AT_PHNUM = 5
  2024. AT_PAGESZ = 6
  2025. AT_BASE = 7
  2026. AT_FLAGS = 8
  2027. AT_ENTRY = 9
  2028. AT_NOTELF = 10
  2029. AT_UID = 11
  2030. AT_EUID = 12
  2031. AT_GID = 13
  2032. AT_EGID = 14
  2033. AT_CLKTCK = 17
  2034. AT_PLATFORM = 15
  2035. AT_FPUCW = 18
  2036. AT_DCACHEBSIZE = 19
  2037. AT_ICACHEBSIZE = 20
  2038. AT_UCACHEBSIZE = 21
  2039. AT_IGNOREPPC = 22
  2040. AT_SECURE = 23
  2041. AT_BASE_PLATFORM = 24
  2042. AT_RANDOM = 25
  2043. AT_EXECFN = 31
  2044. AT_SYSINFO = 32
  2045. AT_SYSINFO_EHDR = 33
  2046. AT_L1I_CACHESHAPE = 34
  2047. AT_L1D_CACHESHAPE = 35
  2048. AT_L2_CACHESHAPE = 36
  2049. AT_L3_CACHESHAPE = 37
  2050. AT_L1I_CACHESIZE = 40
  2051. AT_L1I_CACHEGEOMETRY = 41
  2052. AT_L1D_CACHESIZE = 42
  2053. AT_L1D_CACHEGEOMETRY = 43
  2054. AT_L2_CACHESIZE = 44
  2055. AT_L2_CACHEGEOMETRY = 45
  2056. AT_L3_CACHESIZE = 46
  2057. AT_L3_CACHEGEOMETRY = 47
  2058. AT_MINSIGSTKSZ = 51
  2059. ELF_NOTE_SOLARIS = "SUNW Solaris"
  2060. ELF_NOTE_GNU = "GNU"
  2061. ELF_NOTE_FDO = "FDO"
  2062. ELF_NOTE_PAGESIZE_HINT = 1
  2063. NT_GNU_ABI_TAG = 1
  2064. ELF_NOTE_ABI = NT_GNU_ABI_TAG
  2065. ELF_NOTE_OS_LINUX = 0
  2066. ELF_NOTE_OS_GNU = 1
  2067. ELF_NOTE_OS_SOLARIS2 = 2
  2068. ELF_NOTE_OS_FREEBSD = 3
  2069. NT_GNU_HWCAP = 2
  2070. NT_GNU_BUILD_ID = 3
  2071. NT_GNU_GOLD_VERSION = 4
  2072. NT_GNU_PROPERTY_TYPE_0 = 5
  2073. NT_FDO_PACKAGING_METADATA = 0xcafe1a7e
  2074. NOTE_GNU_PROPERTY_SECTION_NAME = ".note.gnu.property"
  2075. GNU_PROPERTY_STACK_SIZE = 1
  2076. GNU_PROPERTY_NO_COPY_ON_PROTECTED = 2
  2077. GNU_PROPERTY_UINT32_AND_LO = 0xb0000000
  2078. GNU_PROPERTY_UINT32_AND_HI = 0xb0007fff
  2079. GNU_PROPERTY_UINT32_OR_LO = 0xb0008000
  2080. GNU_PROPERTY_UINT32_OR_HI = 0xb000ffff
  2081. GNU_PROPERTY_1_NEEDED = GNU_PROPERTY_UINT32_OR_LO
  2082. GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS = (1 << 0)
  2083. GNU_PROPERTY_LOPROC = 0xc0000000
  2084. GNU_PROPERTY_HIPROC = 0xdfffffff
  2085. GNU_PROPERTY_LOUSER = 0xe0000000
  2086. GNU_PROPERTY_HIUSER = 0xffffffff
  2087. GNU_PROPERTY_AARCH64_FEATURE_1_AND = 0xc0000000
  2088. GNU_PROPERTY_AARCH64_FEATURE_1_BTI = (1 << 0)
  2089. GNU_PROPERTY_AARCH64_FEATURE_1_PAC = (1 << 1)
  2090. GNU_PROPERTY_X86_ISA_1_USED = 0xc0010002
  2091. GNU_PROPERTY_X86_ISA_1_NEEDED = 0xc0008002
  2092. GNU_PROPERTY_X86_FEATURE_1_AND = 0xc0000002
  2093. GNU_PROPERTY_X86_ISA_1_BASELINE = (1 << 0)
  2094. GNU_PROPERTY_X86_ISA_1_V2 = (1 << 1)
  2095. GNU_PROPERTY_X86_ISA_1_V3 = (1 << 2)
  2096. GNU_PROPERTY_X86_ISA_1_V4 = (1 << 3)
  2097. GNU_PROPERTY_X86_FEATURE_1_IBT = (1 << 0)
  2098. GNU_PROPERTY_X86_FEATURE_1_SHSTK = (1 << 1)
  2099. def ELF32_M_SYM(info): return ((info) >> 8)
  2100. def ELF32_M_SIZE(info): return ((ctypes.c_ubyte) (info))
  2101. def ELF32_M_INFO(sym, size): return (((sym) << 8) + (ctypes.c_ubyte) (size))
  2102. def ELF64_M_SYM(info): return ELF32_M_SYM (info)
  2103. def ELF64_M_SIZE(info): return ELF32_M_SIZE (info)
  2104. def ELF64_M_INFO(sym, size): return ELF32_M_INFO (sym, size)
  2105. EF_CPU32 = 0x00810000
  2106. R_68K_NONE = 0
  2107. R_68K_32 = 1
  2108. R_68K_16 = 2
  2109. R_68K_8 = 3
  2110. R_68K_PC32 = 4
  2111. R_68K_PC16 = 5
  2112. R_68K_PC8 = 6
  2113. R_68K_GOT32 = 7
  2114. R_68K_GOT16 = 8
  2115. R_68K_GOT8 = 9
  2116. R_68K_GOT32O = 10
  2117. R_68K_GOT16O = 11
  2118. R_68K_GOT8O = 12
  2119. R_68K_PLT32 = 13
  2120. R_68K_PLT16 = 14
  2121. R_68K_PLT8 = 15
  2122. R_68K_PLT32O = 16
  2123. R_68K_PLT16O = 17
  2124. R_68K_PLT8O = 18
  2125. R_68K_COPY = 19
  2126. R_68K_GLOB_DAT = 20
  2127. R_68K_JMP_SLOT = 21
  2128. R_68K_RELATIVE = 22
  2129. R_68K_TLS_GD32 = 25
  2130. R_68K_TLS_GD16 = 26
  2131. R_68K_TLS_GD8 = 27
  2132. R_68K_TLS_LDM32 = 28
  2133. R_68K_TLS_LDM16 = 29
  2134. R_68K_TLS_LDM8 = 30
  2135. R_68K_TLS_LDO32 = 31
  2136. R_68K_TLS_LDO16 = 32
  2137. R_68K_TLS_LDO8 = 33
  2138. R_68K_TLS_IE32 = 34
  2139. R_68K_TLS_IE16 = 35
  2140. R_68K_TLS_IE8 = 36
  2141. R_68K_TLS_DTPMOD32 = 40
  2142. R_68K_TLS_DTPREL32 = 41
  2143. R_68K_TLS_TPREL32 = 42
  2144. R_68K_NUM = 43
  2145. R_386_NONE = 0
  2146. R_386_32 = 1
  2147. R_386_PC32 = 2
  2148. R_386_GOT32 = 3
  2149. R_386_PLT32 = 4
  2150. R_386_COPY = 5
  2151. R_386_GLOB_DAT = 6
  2152. R_386_JMP_SLOT = 7
  2153. R_386_RELATIVE = 8
  2154. R_386_GOTOFF = 9
  2155. R_386_GOTPC = 10
  2156. R_386_32PLT = 11
  2157. R_386_TLS_TPOFF = 14
  2158. R_386_16 = 20
  2159. R_386_PC16 = 21
  2160. R_386_8 = 22
  2161. R_386_PC8 = 23
  2162. R_386_TLS_GD_PUSH = 25
  2163. R_386_TLS_GD_POP = 27
  2164. R_386_TLS_LDM_PUSH = 29
  2165. R_386_TLS_LDM_POP = 31
  2166. R_386_TLS_LDO_32 = 32
  2167. R_386_TLS_DTPMOD32 = 35
  2168. R_386_TLS_DTPOFF32 = 36
  2169. R_386_TLS_TPOFF32 = 37
  2170. R_386_SIZE32 = 38
  2171. R_386_TLS_GOTDESC = 39
  2172. R_386_IRELATIVE = 42
  2173. R_386_NUM = 44
  2174. STT_SPARC_REGISTER = 13
  2175. EF_SPARCV9_MM = 3
  2176. EF_SPARCV9_TSO = 0
  2177. EF_SPARCV9_PSO = 1
  2178. EF_SPARCV9_RMO = 2
  2179. EF_SPARC_LEDATA = 0x800000
  2180. EF_SPARC_EXT_MASK = 0xFFFF00
  2181. EF_SPARC_32PLUS = 0x000100
  2182. EF_SPARC_SUN_US1 = 0x000200
  2183. EF_SPARC_HAL_R1 = 0x000400
  2184. EF_SPARC_SUN_US3 = 0x000800
  2185. R_SPARC_NONE = 0
  2186. R_SPARC_8 = 1
  2187. R_SPARC_16 = 2
  2188. R_SPARC_32 = 3
  2189. R_SPARC_DISP8 = 4
  2190. R_SPARC_DISP16 = 5
  2191. R_SPARC_DISP32 = 6
  2192. R_SPARC_WDISP30 = 7
  2193. R_SPARC_WDISP22 = 8
  2194. R_SPARC_HI22 = 9
  2195. R_SPARC_22 = 10
  2196. R_SPARC_13 = 11
  2197. R_SPARC_LO10 = 12
  2198. R_SPARC_GOT10 = 13
  2199. R_SPARC_GOT13 = 14
  2200. R_SPARC_GOT22 = 15
  2201. R_SPARC_PC10 = 16
  2202. R_SPARC_PC22 = 17
  2203. R_SPARC_WPLT30 = 18
  2204. R_SPARC_COPY = 19
  2205. R_SPARC_GLOB_DAT = 20
  2206. R_SPARC_JMP_SLOT = 21
  2207. R_SPARC_RELATIVE = 22
  2208. R_SPARC_UA32 = 23
  2209. R_SPARC_PLT32 = 24
  2210. R_SPARC_HIPLT22 = 25
  2211. R_SPARC_LOPLT10 = 26
  2212. R_SPARC_PCPLT32 = 27
  2213. R_SPARC_PCPLT22 = 28
  2214. R_SPARC_PCPLT10 = 29
  2215. R_SPARC_10 = 30
  2216. R_SPARC_11 = 31
  2217. R_SPARC_64 = 32
  2218. R_SPARC_OLO10 = 33
  2219. R_SPARC_HH22 = 34
  2220. R_SPARC_HM10 = 35
  2221. R_SPARC_LM22 = 36
  2222. R_SPARC_PC_HH22 = 37
  2223. R_SPARC_PC_HM10 = 38
  2224. R_SPARC_PC_LM22 = 39
  2225. R_SPARC_WDISP16 = 40
  2226. R_SPARC_WDISP19 = 41
  2227. R_SPARC_GLOB_JMP = 42
  2228. R_SPARC_7 = 43
  2229. R_SPARC_5 = 44
  2230. R_SPARC_6 = 45
  2231. R_SPARC_DISP64 = 46
  2232. R_SPARC_PLT64 = 47
  2233. R_SPARC_HIX22 = 48
  2234. R_SPARC_LOX10 = 49
  2235. R_SPARC_H44 = 50
  2236. R_SPARC_M44 = 51
  2237. R_SPARC_L44 = 52
  2238. R_SPARC_REGISTER = 53
  2239. R_SPARC_UA64 = 54
  2240. R_SPARC_UA16 = 55
  2241. R_SPARC_TLS_GD_HI22 = 56
  2242. R_SPARC_TLS_GD_LO10 = 57
  2243. R_SPARC_TLS_GD_ADD = 58
  2244. R_SPARC_TLS_GD_CALL = 59
  2245. R_SPARC_TLS_LDM_HI22 = 60
  2246. R_SPARC_TLS_LDM_LO10 = 61
  2247. R_SPARC_TLS_LDM_ADD = 62
  2248. R_SPARC_TLS_LDM_CALL = 63
  2249. R_SPARC_TLS_LDO_HIX22 = 64
  2250. R_SPARC_TLS_LDO_LOX10 = 65
  2251. R_SPARC_TLS_LDO_ADD = 66
  2252. R_SPARC_TLS_IE_HI22 = 67
  2253. R_SPARC_TLS_IE_LO10 = 68
  2254. R_SPARC_TLS_IE_LD = 69
  2255. R_SPARC_TLS_IE_LDX = 70
  2256. R_SPARC_TLS_IE_ADD = 71
  2257. R_SPARC_TLS_LE_HIX22 = 72
  2258. R_SPARC_TLS_LE_LOX10 = 73
  2259. R_SPARC_TLS_DTPMOD32 = 74
  2260. R_SPARC_TLS_DTPMOD64 = 75
  2261. R_SPARC_TLS_DTPOFF32 = 76
  2262. R_SPARC_TLS_DTPOFF64 = 77
  2263. R_SPARC_TLS_TPOFF32 = 78
  2264. R_SPARC_TLS_TPOFF64 = 79
  2265. R_SPARC_GOTDATA_HIX22 = 80
  2266. R_SPARC_GOTDATA_LOX10 = 81
  2267. R_SPARC_GOTDATA_OP_HIX22 = 82
  2268. R_SPARC_GOTDATA_OP_LOX10 = 83
  2269. R_SPARC_GOTDATA_OP = 84
  2270. R_SPARC_H34 = 85
  2271. R_SPARC_SIZE32 = 86
  2272. R_SPARC_SIZE64 = 87
  2273. R_SPARC_WDISP10 = 88
  2274. R_SPARC_JMP_IREL = 248
  2275. R_SPARC_IRELATIVE = 249
  2276. R_SPARC_GNU_VTINHERIT = 250
  2277. R_SPARC_GNU_VTENTRY = 251
  2278. R_SPARC_REV32 = 252
  2279. R_SPARC_NUM = 253
  2280. DT_SPARC_REGISTER = 0x70000001
  2281. DT_SPARC_NUM = 2
  2282. EF_MIPS_NOREORDER = 1
  2283. EF_MIPS_PIC = 2
  2284. EF_MIPS_CPIC = 4
  2285. EF_MIPS_XGOT = 8
  2286. EF_MIPS_64BIT_WHIRL = 16
  2287. EF_MIPS_ABI2 = 32
  2288. EF_MIPS_ABI_ON32 = 64
  2289. EF_MIPS_FP64 = 512
  2290. EF_MIPS_NAN2008 = 1024
  2291. EF_MIPS_ARCH = 0xf0000000
  2292. EF_MIPS_ARCH_1 = 0x00000000
  2293. EF_MIPS_ARCH_2 = 0x10000000
  2294. EF_MIPS_ARCH_3 = 0x20000000
  2295. EF_MIPS_ARCH_4 = 0x30000000
  2296. EF_MIPS_ARCH_5 = 0x40000000
  2297. EF_MIPS_ARCH_32 = 0x50000000
  2298. EF_MIPS_ARCH_64 = 0x60000000
  2299. EF_MIPS_ARCH_32R2 = 0x70000000
  2300. EF_MIPS_ARCH_64R2 = 0x80000000
  2301. E_MIPS_ARCH_1 = EF_MIPS_ARCH_1
  2302. E_MIPS_ARCH_2 = EF_MIPS_ARCH_2
  2303. E_MIPS_ARCH_3 = EF_MIPS_ARCH_3
  2304. E_MIPS_ARCH_4 = EF_MIPS_ARCH_4
  2305. E_MIPS_ARCH_5 = EF_MIPS_ARCH_5
  2306. E_MIPS_ARCH_32 = EF_MIPS_ARCH_32
  2307. E_MIPS_ARCH_64 = EF_MIPS_ARCH_64
  2308. SHN_MIPS_ACOMMON = 0xff00
  2309. SHN_MIPS_TEXT = 0xff01
  2310. SHN_MIPS_DATA = 0xff02
  2311. SHN_MIPS_SCOMMON = 0xff03
  2312. SHN_MIPS_SUNDEFINED = 0xff04
  2313. SHT_MIPS_LIBLIST = 0x70000000
  2314. SHT_MIPS_MSYM = 0x70000001
  2315. SHT_MIPS_CONFLICT = 0x70000002
  2316. SHT_MIPS_GPTAB = 0x70000003
  2317. SHT_MIPS_UCODE = 0x70000004
  2318. SHT_MIPS_DEBUG = 0x70000005
  2319. SHT_MIPS_REGINFO = 0x70000006
  2320. SHT_MIPS_PACKAGE = 0x70000007
  2321. SHT_MIPS_PACKSYM = 0x70000008
  2322. SHT_MIPS_RELD = 0x70000009
  2323. SHT_MIPS_IFACE = 0x7000000b
  2324. SHT_MIPS_CONTENT = 0x7000000c
  2325. SHT_MIPS_OPTIONS = 0x7000000d
  2326. SHT_MIPS_SHDR = 0x70000010
  2327. SHT_MIPS_FDESC = 0x70000011
  2328. SHT_MIPS_EXTSYM = 0x70000012
  2329. SHT_MIPS_DENSE = 0x70000013
  2330. SHT_MIPS_PDESC = 0x70000014
  2331. SHT_MIPS_LOCSYM = 0x70000015
  2332. SHT_MIPS_AUXSYM = 0x70000016
  2333. SHT_MIPS_OPTSYM = 0x70000017
  2334. SHT_MIPS_LOCSTR = 0x70000018
  2335. SHT_MIPS_LINE = 0x70000019
  2336. SHT_MIPS_RFDESC = 0x7000001a
  2337. SHT_MIPS_DELTASYM = 0x7000001b
  2338. SHT_MIPS_DELTAINST = 0x7000001c
  2339. SHT_MIPS_DELTACLASS = 0x7000001d
  2340. SHT_MIPS_DWARF = 0x7000001e
  2341. SHT_MIPS_DELTADECL = 0x7000001f
  2342. SHT_MIPS_SYMBOL_LIB = 0x70000020
  2343. SHT_MIPS_EVENTS = 0x70000021
  2344. SHT_MIPS_TRANSLATE = 0x70000022
  2345. SHT_MIPS_PIXIE = 0x70000023
  2346. SHT_MIPS_XLATE = 0x70000024
  2347. SHT_MIPS_XLATE_DEBUG = 0x70000025
  2348. SHT_MIPS_WHIRL = 0x70000026
  2349. SHT_MIPS_EH_REGION = 0x70000027
  2350. SHT_MIPS_XLATE_OLD = 0x70000028
  2351. SHT_MIPS_PDR_EXCEPTION = 0x70000029
  2352. SHT_MIPS_XHASH = 0x7000002b
  2353. SHF_MIPS_GPREL = 0x10000000
  2354. SHF_MIPS_MERGE = 0x20000000
  2355. SHF_MIPS_ADDR = 0x40000000
  2356. SHF_MIPS_STRINGS = 0x80000000
  2357. SHF_MIPS_NOSTRIP = 0x08000000
  2358. SHF_MIPS_LOCAL = 0x04000000
  2359. SHF_MIPS_NAMES = 0x02000000
  2360. SHF_MIPS_NODUPE = 0x01000000
  2361. STO_MIPS_DEFAULT = 0x0
  2362. STO_MIPS_INTERNAL = 0x1
  2363. STO_MIPS_HIDDEN = 0x2
  2364. STO_MIPS_PROTECTED = 0x3
  2365. STO_MIPS_PLT = 0x8
  2366. STO_MIPS_SC_ALIGN_UNUSED = 0xff
  2367. STB_MIPS_SPLIT_COMMON = 13
  2368. ODK_NULL = 0
  2369. ODK_REGINFO = 1
  2370. ODK_EXCEPTIONS = 2
  2371. ODK_PAD = 3
  2372. ODK_HWPATCH = 4
  2373. ODK_FILL = 5
  2374. ODK_TAGS = 6
  2375. ODK_HWAND = 7
  2376. ODK_HWOR = 8
  2377. OEX_FPU_MIN = 0x1f
  2378. OEX_FPU_MAX = 0x1f00
  2379. OEX_PAGE0 = 0x10000
  2380. OEX_SMM = 0x20000
  2381. OEX_FPDBUG = 0x40000
  2382. OEX_PRECISEFP = OEX_FPDBUG
  2383. OEX_DISMISS = 0x80000
  2384. OEX_FPU_INVAL = 0x10
  2385. OEX_FPU_DIV0 = 0x08
  2386. OEX_FPU_OFLO = 0x04
  2387. OEX_FPU_UFLO = 0x02
  2388. OEX_FPU_INEX = 0x01
  2389. OHW_R4KEOP = 0x1
  2390. OHW_R8KPFETCH = 0x2
  2391. OHW_R5KEOP = 0x4
  2392. OHW_R5KCVTL = 0x8
  2393. OPAD_PREFIX = 0x1
  2394. OPAD_POSTFIX = 0x2
  2395. OPAD_SYMBOL = 0x4
  2396. OHWA0_R4KEOP_CHECKED = 0x00000001
  2397. OHWA1_R4KEOP_CLEAN = 0x00000002
  2398. R_MIPS_NONE = 0
  2399. R_MIPS_16 = 1
  2400. R_MIPS_32 = 2
  2401. R_MIPS_REL32 = 3
  2402. R_MIPS_26 = 4
  2403. R_MIPS_HI16 = 5
  2404. R_MIPS_LO16 = 6
  2405. R_MIPS_GPREL16 = 7
  2406. R_MIPS_LITERAL = 8
  2407. R_MIPS_GOT16 = 9
  2408. R_MIPS_PC16 = 10
  2409. R_MIPS_CALL16 = 11
  2410. R_MIPS_GPREL32 = 12
  2411. R_MIPS_SHIFT5 = 16
  2412. R_MIPS_SHIFT6 = 17
  2413. R_MIPS_64 = 18
  2414. R_MIPS_GOT_DISP = 19
  2415. R_MIPS_GOT_PAGE = 20
  2416. R_MIPS_GOT_OFST = 21
  2417. R_MIPS_GOT_HI16 = 22
  2418. R_MIPS_GOT_LO16 = 23
  2419. R_MIPS_SUB = 24
  2420. R_MIPS_INSERT_A = 25
  2421. R_MIPS_INSERT_B = 26
  2422. R_MIPS_DELETE = 27
  2423. R_MIPS_HIGHER = 28
  2424. R_MIPS_HIGHEST = 29
  2425. R_MIPS_CALL_HI16 = 30
  2426. R_MIPS_CALL_LO16 = 31
  2427. R_MIPS_SCN_DISP = 32
  2428. R_MIPS_REL16 = 33
  2429. R_MIPS_ADD_IMMEDIATE = 34
  2430. R_MIPS_PJUMP = 35
  2431. R_MIPS_RELGOT = 36
  2432. R_MIPS_JALR = 37
  2433. R_MIPS_TLS_DTPMOD32 = 38
  2434. R_MIPS_TLS_DTPREL32 = 39
  2435. R_MIPS_TLS_DTPMOD64 = 40
  2436. R_MIPS_TLS_DTPREL64 = 41
  2437. R_MIPS_TLS_GD = 42
  2438. R_MIPS_TLS_LDM = 43
  2439. R_MIPS_TLS_DTPREL_HI16 = 44
  2440. R_MIPS_TLS_DTPREL_LO16 = 45
  2441. R_MIPS_TLS_GOTTPREL = 46
  2442. R_MIPS_TLS_TPREL32 = 47
  2443. R_MIPS_TLS_TPREL64 = 48
  2444. R_MIPS_TLS_TPREL_HI16 = 49
  2445. R_MIPS_TLS_TPREL_LO16 = 50
  2446. R_MIPS_GLOB_DAT = 51
  2447. R_MIPS_COPY = 126
  2448. R_MIPS_JUMP_SLOT = 127
  2449. R_MIPS_NUM = 128
  2450. PT_MIPS_REGINFO = 0x70000000
  2451. PT_MIPS_RTPROC = 0x70000001
  2452. PT_MIPS_OPTIONS = 0x70000002
  2453. PT_MIPS_ABIFLAGS = 0x70000003
  2454. PF_MIPS_LOCAL = 0x10000000
  2455. DT_MIPS_RLD_VERSION = 0x70000001
  2456. DT_MIPS_TIME_STAMP = 0x70000002
  2457. DT_MIPS_ICHECKSUM = 0x70000003
  2458. DT_MIPS_IVERSION = 0x70000004
  2459. DT_MIPS_FLAGS = 0x70000005
  2460. DT_MIPS_BASE_ADDRESS = 0x70000006
  2461. DT_MIPS_MSYM = 0x70000007
  2462. DT_MIPS_CONFLICT = 0x70000008
  2463. DT_MIPS_LIBLIST = 0x70000009
  2464. DT_MIPS_LOCAL_GOTNO = 0x7000000a
  2465. DT_MIPS_CONFLICTNO = 0x7000000b
  2466. DT_MIPS_LIBLISTNO = 0x70000010
  2467. DT_MIPS_SYMTABNO = 0x70000011
  2468. DT_MIPS_UNREFEXTNO = 0x70000012
  2469. DT_MIPS_GOTSYM = 0x70000013
  2470. DT_MIPS_HIPAGENO = 0x70000014
  2471. DT_MIPS_RLD_MAP = 0x70000016
  2472. DT_MIPS_DELTA_CLASS = 0x70000017
  2473. DT_MIPS_DELTA_INSTANCE = 0x70000019
  2474. DT_MIPS_DELTA_RELOC = 0x7000001b
  2475. DT_MIPS_CXX_FLAGS = 0x70000022
  2476. DT_MIPS_PIXIE_INIT = 0x70000023
  2477. DT_MIPS_SYMBOL_LIB = 0x70000024
  2478. DT_MIPS_LOCALPAGE_GOTIDX = 0x70000025
  2479. DT_MIPS_LOCAL_GOTIDX = 0x70000026
  2480. DT_MIPS_HIDDEN_GOTIDX = 0x70000027
  2481. DT_MIPS_PROTECTED_GOTIDX = 0x70000028
  2482. DT_MIPS_OPTIONS = 0x70000029
  2483. DT_MIPS_INTERFACE = 0x7000002a
  2484. DT_MIPS_DYNSTR_ALIGN = 0x7000002b
  2485. DT_MIPS_INTERFACE_SIZE = 0x7000002c
  2486. DT_MIPS_COMPACT_SIZE = 0x7000002f
  2487. DT_MIPS_GP_VALUE = 0x70000030
  2488. DT_MIPS_AUX_DYNAMIC = 0x70000031
  2489. DT_MIPS_PLTGOT = 0x70000032
  2490. DT_MIPS_RWPLT = 0x70000034
  2491. DT_MIPS_RLD_MAP_REL = 0x70000035
  2492. DT_MIPS_XHASH = 0x70000036
  2493. RHF_NONE = 0
  2494. RHF_QUICKSTART = (1 << 0)
  2495. RHF_NOTPOT = (1 << 1)
  2496. RHF_NO_LIBRARY_REPLACEMENT = (1 << 2)
  2497. RHF_NO_MOVE = (1 << 3)
  2498. RHF_SGI_ONLY = (1 << 4)
  2499. RHF_GUARANTEE_INIT = (1 << 5)
  2500. RHF_DELTA_C_PLUS_PLUS = (1 << 6)
  2501. RHF_GUARANTEE_START_INIT = (1 << 7)
  2502. RHF_PIXIE = (1 << 8)
  2503. RHF_DEFAULT_DELAY_LOAD = (1 << 9)
  2504. RHF_REQUICKSTART = (1 << 10)
  2505. RHF_REQUICKSTARTED = (1 << 11)
  2506. RHF_CORD = (1 << 12)
  2507. RHF_NO_UNRES_UNDEF = (1 << 13)
  2508. RHF_RLD_ORDER_SAFE = (1 << 14)
  2509. LL_NONE = 0
  2510. LL_EXACT_MATCH = (1 << 0)
  2511. LL_IGNORE_INT_VER = (1 << 1)
  2512. LL_REQUIRE_MINOR = (1 << 2)
  2513. LL_EXPORTS = (1 << 3)
  2514. LL_DELAY_LOAD = (1 << 4)
  2515. LL_DELTA = (1 << 5)
  2516. MIPS_AFL_REG_NONE = 0x00
  2517. MIPS_AFL_REG_32 = 0x01
  2518. MIPS_AFL_REG_64 = 0x02
  2519. MIPS_AFL_REG_128 = 0x03
  2520. MIPS_AFL_ASE_DSP = 0x00000001
  2521. MIPS_AFL_ASE_DSPR2 = 0x00000002
  2522. MIPS_AFL_ASE_EVA = 0x00000004
  2523. MIPS_AFL_ASE_MCU = 0x00000008
  2524. MIPS_AFL_ASE_MDMX = 0x00000010
  2525. MIPS_AFL_ASE_MIPS3D = 0x00000020
  2526. MIPS_AFL_ASE_MT = 0x00000040
  2527. MIPS_AFL_ASE_SMARTMIPS = 0x00000080
  2528. MIPS_AFL_ASE_VIRT = 0x00000100
  2529. MIPS_AFL_ASE_MSA = 0x00000200
  2530. MIPS_AFL_ASE_MIPS16 = 0x00000400
  2531. MIPS_AFL_ASE_MICROMIPS = 0x00000800
  2532. MIPS_AFL_ASE_XPA = 0x00001000
  2533. MIPS_AFL_ASE_MASK = 0x00001fff
  2534. MIPS_AFL_EXT_XLR = 1
  2535. MIPS_AFL_EXT_OCTEON2 = 2
  2536. MIPS_AFL_EXT_OCTEONP = 3
  2537. MIPS_AFL_EXT_LOONGSON_3A = 4
  2538. MIPS_AFL_EXT_OCTEON = 5
  2539. MIPS_AFL_EXT_5900 = 6
  2540. MIPS_AFL_EXT_4650 = 7
  2541. MIPS_AFL_EXT_4010 = 8
  2542. MIPS_AFL_EXT_4100 = 9
  2543. MIPS_AFL_EXT_3900 = 10
  2544. MIPS_AFL_EXT_10000 = 11
  2545. MIPS_AFL_EXT_SB1 = 12
  2546. MIPS_AFL_EXT_4111 = 13
  2547. MIPS_AFL_EXT_4120 = 14
  2548. MIPS_AFL_EXT_5400 = 15
  2549. MIPS_AFL_EXT_5500 = 16
  2550. MIPS_AFL_EXT_LOONGSON_2E = 17
  2551. MIPS_AFL_EXT_LOONGSON_2F = 18
  2552. MIPS_AFL_FLAGS1_ODDSPREG = 1
  2553. EF_PARISC_TRAPNIL = 0x00010000
  2554. EF_PARISC_EXT = 0x00020000
  2555. EF_PARISC_LSB = 0x00040000
  2556. EF_PARISC_WIDE = 0x00080000
  2557. EF_PARISC_LAZYSWAP = 0x00400000
  2558. EF_PARISC_ARCH = 0x0000ffff
  2559. EFA_PARISC_1_0 = 0x020b
  2560. EFA_PARISC_1_1 = 0x0210
  2561. EFA_PARISC_2_0 = 0x0214
  2562. SHN_PARISC_HUGE_COMMON = 0xff01
  2563. SHT_PARISC_EXT = 0x70000000
  2564. SHT_PARISC_UNWIND = 0x70000001
  2565. SHT_PARISC_DOC = 0x70000002
  2566. SHF_PARISC_SHORT = 0x20000000
  2567. SHF_PARISC_HUGE = 0x40000000
  2568. SHF_PARISC_SBP = 0x80000000
  2569. STT_PARISC_MILLICODE = 13
  2570. STT_HP_OPAQUE = (STT_LOOS + 0x1)
  2571. STT_HP_STUB = (STT_LOOS + 0x2)
  2572. R_PARISC_NONE = 0
  2573. R_PARISC_DIR32 = 1
  2574. R_PARISC_DIR21L = 2
  2575. R_PARISC_DIR17R = 3
  2576. R_PARISC_DIR17F = 4
  2577. R_PARISC_DIR14R = 6
  2578. R_PARISC_PCREL32 = 9
  2579. R_PARISC_PCREL21L = 10
  2580. R_PARISC_PCREL17R = 11
  2581. R_PARISC_PCREL17F = 12
  2582. R_PARISC_PCREL14R = 14
  2583. R_PARISC_DPREL21L = 18
  2584. R_PARISC_DPREL14R = 22
  2585. R_PARISC_GPREL21L = 26
  2586. R_PARISC_GPREL14R = 30
  2587. R_PARISC_LTOFF21L = 34
  2588. R_PARISC_LTOFF14R = 38
  2589. R_PARISC_SECREL32 = 41
  2590. R_PARISC_SEGBASE = 48
  2591. R_PARISC_SEGREL32 = 49
  2592. R_PARISC_PLTOFF21L = 50
  2593. R_PARISC_PLTOFF14R = 54
  2594. R_PARISC_LTOFF_FPTR32 = 57
  2595. R_PARISC_LTOFF_FPTR21L = 58
  2596. R_PARISC_LTOFF_FPTR14R = 62
  2597. R_PARISC_FPTR64 = 64
  2598. R_PARISC_PLABEL32 = 65
  2599. R_PARISC_PLABEL21L = 66
  2600. R_PARISC_PLABEL14R = 70
  2601. R_PARISC_PCREL64 = 72
  2602. R_PARISC_PCREL22F = 74
  2603. R_PARISC_PCREL14WR = 75
  2604. R_PARISC_PCREL14DR = 76
  2605. R_PARISC_PCREL16F = 77
  2606. R_PARISC_PCREL16WF = 78
  2607. R_PARISC_PCREL16DF = 79
  2608. R_PARISC_DIR64 = 80
  2609. R_PARISC_DIR14WR = 83
  2610. R_PARISC_DIR14DR = 84
  2611. R_PARISC_DIR16F = 85
  2612. R_PARISC_DIR16WF = 86
  2613. R_PARISC_DIR16DF = 87
  2614. R_PARISC_GPREL64 = 88
  2615. R_PARISC_GPREL14WR = 91
  2616. R_PARISC_GPREL14DR = 92
  2617. R_PARISC_GPREL16F = 93
  2618. R_PARISC_GPREL16WF = 94
  2619. R_PARISC_GPREL16DF = 95
  2620. R_PARISC_LTOFF64 = 96
  2621. R_PARISC_LTOFF14WR = 99
  2622. R_PARISC_LTOFF14DR = 100
  2623. R_PARISC_LTOFF16F = 101
  2624. R_PARISC_LTOFF16WF = 102
  2625. R_PARISC_LTOFF16DF = 103
  2626. R_PARISC_SECREL64 = 104
  2627. R_PARISC_SEGREL64 = 112
  2628. R_PARISC_PLTOFF14WR = 115
  2629. R_PARISC_PLTOFF14DR = 116
  2630. R_PARISC_PLTOFF16F = 117
  2631. R_PARISC_PLTOFF16WF = 118
  2632. R_PARISC_PLTOFF16DF = 119
  2633. R_PARISC_LTOFF_FPTR64 = 120
  2634. R_PARISC_LTOFF_FPTR14WR = 123
  2635. R_PARISC_LTOFF_FPTR14DR = 124
  2636. R_PARISC_LTOFF_FPTR16F = 125
  2637. R_PARISC_LTOFF_FPTR16WF = 126
  2638. R_PARISC_LTOFF_FPTR16DF = 127
  2639. R_PARISC_LORESERVE = 128
  2640. R_PARISC_COPY = 128
  2641. R_PARISC_IPLT = 129
  2642. R_PARISC_EPLT = 130
  2643. R_PARISC_TPREL32 = 153
  2644. R_PARISC_TPREL21L = 154
  2645. R_PARISC_TPREL14R = 158
  2646. R_PARISC_LTOFF_TP21L = 162
  2647. R_PARISC_LTOFF_TP14R = 166
  2648. R_PARISC_LTOFF_TP14F = 167
  2649. R_PARISC_TPREL64 = 216
  2650. R_PARISC_TPREL14WR = 219
  2651. R_PARISC_TPREL14DR = 220
  2652. R_PARISC_TPREL16F = 221
  2653. R_PARISC_TPREL16WF = 222
  2654. R_PARISC_TPREL16DF = 223
  2655. R_PARISC_LTOFF_TP64 = 224
  2656. R_PARISC_LTOFF_TP14WR = 227
  2657. R_PARISC_LTOFF_TP14DR = 228
  2658. R_PARISC_LTOFF_TP16F = 229
  2659. R_PARISC_LTOFF_TP16WF = 230
  2660. R_PARISC_LTOFF_TP16DF = 231
  2661. R_PARISC_GNU_VTENTRY = 232
  2662. R_PARISC_GNU_VTINHERIT = 233
  2663. R_PARISC_TLS_GD21L = 234
  2664. R_PARISC_TLS_GD14R = 235
  2665. R_PARISC_TLS_GDCALL = 236
  2666. R_PARISC_TLS_LDM21L = 237
  2667. R_PARISC_TLS_LDM14R = 238
  2668. R_PARISC_TLS_LDMCALL = 239
  2669. R_PARISC_TLS_LDO21L = 240
  2670. R_PARISC_TLS_LDO14R = 241
  2671. R_PARISC_TLS_DTPMOD32 = 242
  2672. R_PARISC_TLS_DTPMOD64 = 243
  2673. R_PARISC_TLS_DTPOFF32 = 244
  2674. R_PARISC_TLS_DTPOFF64 = 245
  2675. R_PARISC_TLS_LE21L = R_PARISC_TPREL21L
  2676. R_PARISC_TLS_LE14R = R_PARISC_TPREL14R
  2677. R_PARISC_TLS_IE21L = R_PARISC_LTOFF_TP21L
  2678. R_PARISC_TLS_IE14R = R_PARISC_LTOFF_TP14R
  2679. R_PARISC_TLS_TPREL32 = R_PARISC_TPREL32
  2680. R_PARISC_TLS_TPREL64 = R_PARISC_TPREL64
  2681. R_PARISC_HIRESERVE = 255
  2682. PT_HP_TLS = (PT_LOOS + 0x0)
  2683. PT_HP_CORE_NONE = (PT_LOOS + 0x1)
  2684. PT_HP_CORE_VERSION = (PT_LOOS + 0x2)
  2685. PT_HP_CORE_KERNEL = (PT_LOOS + 0x3)
  2686. PT_HP_CORE_COMM = (PT_LOOS + 0x4)
  2687. PT_HP_CORE_PROC = (PT_LOOS + 0x5)
  2688. PT_HP_CORE_LOADABLE = (PT_LOOS + 0x6)
  2689. PT_HP_CORE_STACK = (PT_LOOS + 0x7)
  2690. PT_HP_CORE_SHM = (PT_LOOS + 0x8)
  2691. PT_HP_CORE_MMF = (PT_LOOS + 0x9)
  2692. PT_HP_PARALLEL = (PT_LOOS + 0x10)
  2693. PT_HP_FASTBIND = (PT_LOOS + 0x11)
  2694. PT_HP_OPT_ANNOT = (PT_LOOS + 0x12)
  2695. PT_HP_HSL_ANNOT = (PT_LOOS + 0x13)
  2696. PT_HP_STACK = (PT_LOOS + 0x14)
  2697. PT_PARISC_ARCHEXT = 0x70000000
  2698. PT_PARISC_UNWIND = 0x70000001
  2699. PF_PARISC_SBP = 0x08000000
  2700. PF_HP_PAGE_SIZE = 0x00100000
  2701. PF_HP_FAR_SHARED = 0x00200000
  2702. PF_HP_NEAR_SHARED = 0x00400000
  2703. PF_HP_CODE = 0x01000000
  2704. PF_HP_MODIFY = 0x02000000
  2705. PF_HP_LAZYSWAP = 0x04000000
  2706. PF_HP_SBP = 0x08000000
  2707. EF_ALPHA_32BIT = 1
  2708. EF_ALPHA_CANRELAX = 2
  2709. SHT_ALPHA_DEBUG = 0x70000001
  2710. SHT_ALPHA_REGINFO = 0x70000002
  2711. SHF_ALPHA_GPREL = 0x10000000
  2712. STO_ALPHA_NOPV = 0x80
  2713. STO_ALPHA_STD_GPLOAD = 0x88
  2714. R_ALPHA_NONE = 0
  2715. R_ALPHA_REFLONG = 1
  2716. R_ALPHA_REFQUAD = 2
  2717. R_ALPHA_GPREL32 = 3
  2718. R_ALPHA_LITERAL = 4
  2719. R_ALPHA_LITUSE = 5
  2720. R_ALPHA_GPDISP = 6
  2721. R_ALPHA_BRADDR = 7
  2722. R_ALPHA_HINT = 8
  2723. R_ALPHA_SREL16 = 9
  2724. R_ALPHA_SREL32 = 10
  2725. R_ALPHA_SREL64 = 11
  2726. R_ALPHA_GPRELHIGH = 17
  2727. R_ALPHA_GPRELLOW = 18
  2728. R_ALPHA_GPREL16 = 19
  2729. R_ALPHA_COPY = 24
  2730. R_ALPHA_GLOB_DAT = 25
  2731. R_ALPHA_JMP_SLOT = 26
  2732. R_ALPHA_RELATIVE = 27
  2733. R_ALPHA_TLS_GD_HI = 28
  2734. R_ALPHA_TLSGD = 29
  2735. R_ALPHA_TLS_LDM = 30
  2736. R_ALPHA_DTPMOD64 = 31
  2737. R_ALPHA_GOTDTPREL = 32
  2738. R_ALPHA_DTPREL64 = 33
  2739. R_ALPHA_DTPRELHI = 34
  2740. R_ALPHA_DTPRELLO = 35
  2741. R_ALPHA_DTPREL16 = 36
  2742. R_ALPHA_GOTTPREL = 37
  2743. R_ALPHA_TPREL64 = 38
  2744. R_ALPHA_TPRELHI = 39
  2745. R_ALPHA_TPRELLO = 40
  2746. R_ALPHA_TPREL16 = 41
  2747. R_ALPHA_NUM = 46
  2748. LITUSE_ALPHA_ADDR = 0
  2749. LITUSE_ALPHA_BASE = 1
  2750. LITUSE_ALPHA_BYTOFF = 2
  2751. LITUSE_ALPHA_JSR = 3
  2752. LITUSE_ALPHA_TLS_GD = 4
  2753. LITUSE_ALPHA_TLS_LDM = 5
  2754. DT_ALPHA_PLTRO = (DT_LOPROC + 0)
  2755. DT_ALPHA_NUM = 1
  2756. EF_PPC_EMB = 0x80000000
  2757. EF_PPC_RELOCATABLE = 0x00010000
  2758. R_PPC_NONE = 0
  2759. R_PPC_ADDR32 = 1
  2760. R_PPC_ADDR24 = 2
  2761. R_PPC_ADDR16 = 3
  2762. R_PPC_ADDR16_LO = 4
  2763. R_PPC_ADDR16_HI = 5
  2764. R_PPC_ADDR16_HA = 6
  2765. R_PPC_ADDR14 = 7
  2766. R_PPC_ADDR14_BRTAKEN = 8
  2767. R_PPC_ADDR14_BRNTAKEN = 9
  2768. R_PPC_REL24 = 10
  2769. R_PPC_REL14 = 11
  2770. R_PPC_REL14_BRTAKEN = 12
  2771. R_PPC_REL14_BRNTAKEN = 13
  2772. R_PPC_GOT16 = 14
  2773. R_PPC_GOT16_LO = 15
  2774. R_PPC_GOT16_HI = 16
  2775. R_PPC_GOT16_HA = 17
  2776. R_PPC_PLTREL24 = 18
  2777. R_PPC_COPY = 19
  2778. R_PPC_GLOB_DAT = 20
  2779. R_PPC_JMP_SLOT = 21
  2780. R_PPC_RELATIVE = 22
  2781. R_PPC_LOCAL24PC = 23
  2782. R_PPC_UADDR32 = 24
  2783. R_PPC_UADDR16 = 25
  2784. R_PPC_REL32 = 26
  2785. R_PPC_PLT32 = 27
  2786. R_PPC_PLTREL32 = 28
  2787. R_PPC_PLT16_LO = 29
  2788. R_PPC_PLT16_HI = 30
  2789. R_PPC_PLT16_HA = 31
  2790. R_PPC_SDAREL16 = 32
  2791. R_PPC_SECTOFF = 33
  2792. R_PPC_SECTOFF_LO = 34
  2793. R_PPC_SECTOFF_HI = 35
  2794. R_PPC_SECTOFF_HA = 36
  2795. R_PPC_TLS = 67
  2796. R_PPC_DTPMOD32 = 68
  2797. R_PPC_TPREL16 = 69
  2798. R_PPC_TPREL16_LO = 70
  2799. R_PPC_TPREL16_HI = 71
  2800. R_PPC_TPREL16_HA = 72
  2801. R_PPC_TPREL32 = 73
  2802. R_PPC_DTPREL16 = 74
  2803. R_PPC_DTPREL16_LO = 75
  2804. R_PPC_DTPREL16_HI = 76
  2805. R_PPC_DTPREL16_HA = 77
  2806. R_PPC_DTPREL32 = 78
  2807. R_PPC_GOT_TLSGD16 = 79
  2808. R_PPC_GOT_TLSGD16_LO = 80
  2809. R_PPC_GOT_TLSGD16_HI = 81
  2810. R_PPC_GOT_TLSGD16_HA = 82
  2811. R_PPC_GOT_TLSLD16 = 83
  2812. R_PPC_GOT_TLSLD16_LO = 84
  2813. R_PPC_GOT_TLSLD16_HI = 85
  2814. R_PPC_GOT_TLSLD16_HA = 86
  2815. R_PPC_GOT_TPREL16 = 87
  2816. R_PPC_GOT_TPREL16_LO = 88
  2817. R_PPC_GOT_TPREL16_HI = 89
  2818. R_PPC_GOT_TPREL16_HA = 90
  2819. R_PPC_GOT_DTPREL16 = 91
  2820. R_PPC_GOT_DTPREL16_LO = 92
  2821. R_PPC_GOT_DTPREL16_HI = 93
  2822. R_PPC_GOT_DTPREL16_HA = 94
  2823. R_PPC_TLSGD = 95
  2824. R_PPC_TLSLD = 96
  2825. R_PPC_EMB_NADDR32 = 101
  2826. R_PPC_EMB_NADDR16 = 102
  2827. R_PPC_EMB_NADDR16_LO = 103
  2828. R_PPC_EMB_NADDR16_HI = 104
  2829. R_PPC_EMB_NADDR16_HA = 105
  2830. R_PPC_EMB_SDAI16 = 106
  2831. R_PPC_EMB_SDA2I16 = 107
  2832. R_PPC_EMB_SDA2REL = 108
  2833. R_PPC_EMB_SDA21 = 109
  2834. R_PPC_EMB_MRKREF = 110
  2835. R_PPC_EMB_RELSEC16 = 111
  2836. R_PPC_EMB_RELST_LO = 112
  2837. R_PPC_EMB_RELST_HI = 113
  2838. R_PPC_EMB_RELST_HA = 114
  2839. R_PPC_EMB_BIT_FLD = 115
  2840. R_PPC_EMB_RELSDA = 116
  2841. R_PPC_DIAB_SDA21_LO = 180
  2842. R_PPC_DIAB_SDA21_HI = 181
  2843. R_PPC_DIAB_SDA21_HA = 182
  2844. R_PPC_DIAB_RELSDA_LO = 183
  2845. R_PPC_DIAB_RELSDA_HI = 184
  2846. R_PPC_DIAB_RELSDA_HA = 185
  2847. R_PPC_IRELATIVE = 248
  2848. R_PPC_REL16 = 249
  2849. R_PPC_REL16_LO = 250
  2850. R_PPC_REL16_HI = 251
  2851. R_PPC_REL16_HA = 252
  2852. R_PPC_TOC16 = 255
  2853. DT_PPC_GOT = (DT_LOPROC + 0)
  2854. DT_PPC_OPT = (DT_LOPROC + 1)
  2855. DT_PPC_NUM = 2
  2856. PPC_OPT_TLS = 1
  2857. R_PPC64_NONE = R_PPC_NONE
  2858. R_PPC64_ADDR32 = R_PPC_ADDR32
  2859. R_PPC64_ADDR24 = R_PPC_ADDR24
  2860. R_PPC64_ADDR16 = R_PPC_ADDR16
  2861. R_PPC64_ADDR16_LO = R_PPC_ADDR16_LO
  2862. R_PPC64_ADDR16_HI = R_PPC_ADDR16_HI
  2863. R_PPC64_ADDR16_HA = R_PPC_ADDR16_HA
  2864. R_PPC64_ADDR14 = R_PPC_ADDR14
  2865. R_PPC64_ADDR14_BRTAKEN = R_PPC_ADDR14_BRTAKEN
  2866. R_PPC64_ADDR14_BRNTAKEN = R_PPC_ADDR14_BRNTAKEN
  2867. R_PPC64_REL24 = R_PPC_REL24
  2868. R_PPC64_REL14 = R_PPC_REL14
  2869. R_PPC64_REL14_BRTAKEN = R_PPC_REL14_BRTAKEN
  2870. R_PPC64_REL14_BRNTAKEN = R_PPC_REL14_BRNTAKEN
  2871. R_PPC64_GOT16 = R_PPC_GOT16
  2872. R_PPC64_GOT16_LO = R_PPC_GOT16_LO
  2873. R_PPC64_GOT16_HI = R_PPC_GOT16_HI
  2874. R_PPC64_GOT16_HA = R_PPC_GOT16_HA
  2875. R_PPC64_COPY = R_PPC_COPY
  2876. R_PPC64_GLOB_DAT = R_PPC_GLOB_DAT
  2877. R_PPC64_JMP_SLOT = R_PPC_JMP_SLOT
  2878. R_PPC64_RELATIVE = R_PPC_RELATIVE
  2879. R_PPC64_UADDR32 = R_PPC_UADDR32
  2880. R_PPC64_UADDR16 = R_PPC_UADDR16
  2881. R_PPC64_REL32 = R_PPC_REL32
  2882. R_PPC64_PLT32 = R_PPC_PLT32
  2883. R_PPC64_PLTREL32 = R_PPC_PLTREL32
  2884. R_PPC64_PLT16_LO = R_PPC_PLT16_LO
  2885. R_PPC64_PLT16_HI = R_PPC_PLT16_HI
  2886. R_PPC64_PLT16_HA = R_PPC_PLT16_HA
  2887. R_PPC64_SECTOFF = R_PPC_SECTOFF
  2888. R_PPC64_SECTOFF_LO = R_PPC_SECTOFF_LO
  2889. R_PPC64_SECTOFF_HI = R_PPC_SECTOFF_HI
  2890. R_PPC64_SECTOFF_HA = R_PPC_SECTOFF_HA
  2891. R_PPC64_ADDR30 = 37
  2892. R_PPC64_ADDR64 = 38
  2893. R_PPC64_ADDR16_HIGHER = 39
  2894. R_PPC64_ADDR16_HIGHERA = 40
  2895. R_PPC64_ADDR16_HIGHEST = 41
  2896. R_PPC64_ADDR16_HIGHESTA = 42
  2897. R_PPC64_UADDR64 = 43
  2898. R_PPC64_REL64 = 44
  2899. R_PPC64_PLT64 = 45
  2900. R_PPC64_PLTREL64 = 46
  2901. R_PPC64_TOC16 = 47
  2902. R_PPC64_TOC16_LO = 48
  2903. R_PPC64_TOC16_HI = 49
  2904. R_PPC64_TOC16_HA = 50
  2905. R_PPC64_TOC = 51
  2906. R_PPC64_PLTGOT16 = 52
  2907. R_PPC64_PLTGOT16_LO = 53
  2908. R_PPC64_PLTGOT16_HI = 54
  2909. R_PPC64_PLTGOT16_HA = 55
  2910. R_PPC64_ADDR16_DS = 56
  2911. R_PPC64_ADDR16_LO_DS = 57
  2912. R_PPC64_GOT16_DS = 58
  2913. R_PPC64_GOT16_LO_DS = 59
  2914. R_PPC64_PLT16_LO_DS = 60
  2915. R_PPC64_SECTOFF_DS = 61
  2916. R_PPC64_SECTOFF_LO_DS = 62
  2917. R_PPC64_TOC16_DS = 63
  2918. R_PPC64_TOC16_LO_DS = 64
  2919. R_PPC64_PLTGOT16_DS = 65
  2920. R_PPC64_PLTGOT16_LO_DS = 66
  2921. R_PPC64_TLS = 67
  2922. R_PPC64_DTPMOD64 = 68
  2923. R_PPC64_TPREL16 = 69
  2924. R_PPC64_TPREL16_LO = 70
  2925. R_PPC64_TPREL16_HI = 71
  2926. R_PPC64_TPREL16_HA = 72
  2927. R_PPC64_TPREL64 = 73
  2928. R_PPC64_DTPREL16 = 74
  2929. R_PPC64_DTPREL16_LO = 75
  2930. R_PPC64_DTPREL16_HI = 76
  2931. R_PPC64_DTPREL16_HA = 77
  2932. R_PPC64_DTPREL64 = 78
  2933. R_PPC64_GOT_TLSGD16 = 79
  2934. R_PPC64_GOT_TLSGD16_LO = 80
  2935. R_PPC64_GOT_TLSGD16_HI = 81
  2936. R_PPC64_GOT_TLSGD16_HA = 82
  2937. R_PPC64_GOT_TLSLD16 = 83
  2938. R_PPC64_GOT_TLSLD16_LO = 84
  2939. R_PPC64_GOT_TLSLD16_HI = 85
  2940. R_PPC64_GOT_TLSLD16_HA = 86
  2941. R_PPC64_GOT_TPREL16_DS = 87
  2942. R_PPC64_GOT_TPREL16_LO_DS = 88
  2943. R_PPC64_GOT_TPREL16_HI = 89
  2944. R_PPC64_GOT_TPREL16_HA = 90
  2945. R_PPC64_GOT_DTPREL16_DS = 91
  2946. R_PPC64_GOT_DTPREL16_LO_DS = 92
  2947. R_PPC64_GOT_DTPREL16_HI = 93
  2948. R_PPC64_GOT_DTPREL16_HA = 94
  2949. R_PPC64_TPREL16_DS = 95
  2950. R_PPC64_TPREL16_LO_DS = 96
  2951. R_PPC64_TPREL16_HIGHER = 97
  2952. R_PPC64_TPREL16_HIGHERA = 98
  2953. R_PPC64_TPREL16_HIGHEST = 99
  2954. R_PPC64_TPREL16_HIGHESTA = 100
  2955. R_PPC64_DTPREL16_DS = 101
  2956. R_PPC64_DTPREL16_LO_DS = 102
  2957. R_PPC64_DTPREL16_HIGHER = 103
  2958. R_PPC64_DTPREL16_HIGHERA = 104
  2959. R_PPC64_DTPREL16_HIGHEST = 105
  2960. R_PPC64_DTPREL16_HIGHESTA = 106
  2961. R_PPC64_TLSGD = 107
  2962. R_PPC64_TLSLD = 108
  2963. R_PPC64_TOCSAVE = 109
  2964. R_PPC64_ADDR16_HIGH = 110
  2965. R_PPC64_ADDR16_HIGHA = 111
  2966. R_PPC64_TPREL16_HIGH = 112
  2967. R_PPC64_TPREL16_HIGHA = 113
  2968. R_PPC64_DTPREL16_HIGH = 114
  2969. R_PPC64_DTPREL16_HIGHA = 115
  2970. R_PPC64_JMP_IREL = 247
  2971. R_PPC64_IRELATIVE = 248
  2972. R_PPC64_REL16 = 249
  2973. R_PPC64_REL16_LO = 250
  2974. R_PPC64_REL16_HI = 251
  2975. R_PPC64_REL16_HA = 252
  2976. EF_PPC64_ABI = 3
  2977. DT_PPC64_GLINK = (DT_LOPROC + 0)
  2978. DT_PPC64_OPD = (DT_LOPROC + 1)
  2979. DT_PPC64_OPDSZ = (DT_LOPROC + 2)
  2980. DT_PPC64_OPT = (DT_LOPROC + 3)
  2981. DT_PPC64_NUM = 4
  2982. PPC64_OPT_TLS = 1
  2983. PPC64_OPT_MULTI_TOC = 2
  2984. PPC64_OPT_LOCALENTRY = 4
  2985. STO_PPC64_LOCAL_BIT = 5
  2986. STO_PPC64_LOCAL_MASK = (7 << STO_PPC64_LOCAL_BIT)
  2987. EF_ARM_RELEXEC = 0x01
  2988. EF_ARM_HASENTRY = 0x02
  2989. EF_ARM_INTERWORK = 0x04
  2990. EF_ARM_APCS_26 = 0x08
  2991. EF_ARM_APCS_FLOAT = 0x10
  2992. EF_ARM_PIC = 0x20
  2993. EF_ARM_ALIGN8 = 0x40
  2994. EF_ARM_NEW_ABI = 0x80
  2995. EF_ARM_OLD_ABI = 0x100
  2996. EF_ARM_SOFT_FLOAT = 0x200
  2997. EF_ARM_VFP_FLOAT = 0x400
  2998. EF_ARM_MAVERICK_FLOAT = 0x800
  2999. EF_ARM_ABI_FLOAT_SOFT = 0x200
  3000. EF_ARM_ABI_FLOAT_HARD = 0x400
  3001. EF_ARM_SYMSARESORTED = 0x04
  3002. EF_ARM_DYNSYMSUSESEGIDX = 0x08
  3003. EF_ARM_MAPSYMSFIRST = 0x10
  3004. EF_ARM_EABIMASK = 0XFF000000
  3005. EF_ARM_BE8 = 0x00800000
  3006. EF_ARM_LE8 = 0x00400000
  3007. def EF_ARM_EABI_VERSION(flags): return ((flags) & EF_ARM_EABIMASK)
  3008. EF_ARM_EABI_UNKNOWN = 0x00000000
  3009. EF_ARM_EABI_VER1 = 0x01000000
  3010. EF_ARM_EABI_VER2 = 0x02000000
  3011. EF_ARM_EABI_VER3 = 0x03000000
  3012. EF_ARM_EABI_VER4 = 0x04000000
  3013. EF_ARM_EABI_VER5 = 0x05000000
  3014. STT_ARM_TFUNC = STT_LOPROC
  3015. STT_ARM_16BIT = STT_HIPROC
  3016. SHF_ARM_ENTRYSECT = 0x10000000
  3017. PF_ARM_PI = 0x20000000
  3018. PF_ARM_ABS = 0x40000000
  3019. PT_ARM_EXIDX = (PT_LOPROC + 1)
  3020. SHT_ARM_EXIDX = (SHT_LOPROC + 1)
  3021. SHT_ARM_PREEMPTMAP = (SHT_LOPROC + 2)
  3022. SHT_ARM_ATTRIBUTES = (SHT_LOPROC + 3)
  3023. R_AARCH64_NONE = 0
  3024. R_AARCH64_P32_ABS32 = 1
  3025. R_AARCH64_P32_COPY = 180
  3026. R_AARCH64_P32_GLOB_DAT = 181
  3027. R_AARCH64_P32_JUMP_SLOT = 182
  3028. R_AARCH64_P32_RELATIVE = 183
  3029. R_AARCH64_P32_TLS_DTPMOD = 184
  3030. R_AARCH64_P32_TLS_DTPREL = 185
  3031. R_AARCH64_P32_TLS_TPREL = 186
  3032. R_AARCH64_P32_TLSDESC = 187
  3033. R_AARCH64_P32_IRELATIVE = 188
  3034. R_AARCH64_ABS64 = 257
  3035. R_AARCH64_ABS32 = 258
  3036. R_AARCH64_ABS16 = 259
  3037. R_AARCH64_PREL64 = 260
  3038. R_AARCH64_PREL32 = 261
  3039. R_AARCH64_PREL16 = 262
  3040. R_AARCH64_MOVW_UABS_G0 = 263
  3041. R_AARCH64_MOVW_UABS_G0_NC = 264
  3042. R_AARCH64_MOVW_UABS_G1 = 265
  3043. R_AARCH64_MOVW_UABS_G1_NC = 266
  3044. R_AARCH64_MOVW_UABS_G2 = 267
  3045. R_AARCH64_MOVW_UABS_G2_NC = 268
  3046. R_AARCH64_MOVW_UABS_G3 = 269
  3047. R_AARCH64_MOVW_SABS_G0 = 270
  3048. R_AARCH64_MOVW_SABS_G1 = 271
  3049. R_AARCH64_MOVW_SABS_G2 = 272
  3050. R_AARCH64_LD_PREL_LO19 = 273
  3051. R_AARCH64_ADR_PREL_LO21 = 274
  3052. R_AARCH64_ADR_PREL_PG_HI21 = 275
  3053. R_AARCH64_ADR_PREL_PG_HI21_NC = 276
  3054. R_AARCH64_ADD_ABS_LO12_NC = 277
  3055. R_AARCH64_LDST8_ABS_LO12_NC = 278
  3056. R_AARCH64_TSTBR14 = 279
  3057. R_AARCH64_CONDBR19 = 280
  3058. R_AARCH64_JUMP26 = 282
  3059. R_AARCH64_CALL26 = 283
  3060. R_AARCH64_LDST16_ABS_LO12_NC = 284
  3061. R_AARCH64_LDST32_ABS_LO12_NC = 285
  3062. R_AARCH64_LDST64_ABS_LO12_NC = 286
  3063. R_AARCH64_MOVW_PREL_G0 = 287
  3064. R_AARCH64_MOVW_PREL_G0_NC = 288
  3065. R_AARCH64_MOVW_PREL_G1 = 289
  3066. R_AARCH64_MOVW_PREL_G1_NC = 290
  3067. R_AARCH64_MOVW_PREL_G2 = 291
  3068. R_AARCH64_MOVW_PREL_G2_NC = 292
  3069. R_AARCH64_MOVW_PREL_G3 = 293
  3070. R_AARCH64_LDST128_ABS_LO12_NC = 299
  3071. R_AARCH64_MOVW_GOTOFF_G0 = 300
  3072. R_AARCH64_MOVW_GOTOFF_G0_NC = 301
  3073. R_AARCH64_MOVW_GOTOFF_G1 = 302
  3074. R_AARCH64_MOVW_GOTOFF_G1_NC = 303
  3075. R_AARCH64_MOVW_GOTOFF_G2 = 304
  3076. R_AARCH64_MOVW_GOTOFF_G2_NC = 305
  3077. R_AARCH64_MOVW_GOTOFF_G3 = 306
  3078. R_AARCH64_GOTREL64 = 307
  3079. R_AARCH64_GOTREL32 = 308
  3080. R_AARCH64_GOT_LD_PREL19 = 309
  3081. R_AARCH64_LD64_GOTOFF_LO15 = 310
  3082. R_AARCH64_ADR_GOT_PAGE = 311
  3083. R_AARCH64_LD64_GOT_LO12_NC = 312
  3084. R_AARCH64_LD64_GOTPAGE_LO15 = 313
  3085. R_AARCH64_TLSGD_ADR_PREL21 = 512
  3086. R_AARCH64_TLSGD_ADR_PAGE21 = 513
  3087. R_AARCH64_TLSGD_ADD_LO12_NC = 514
  3088. R_AARCH64_TLSGD_MOVW_G1 = 515
  3089. R_AARCH64_TLSGD_MOVW_G0_NC = 516
  3090. R_AARCH64_TLSLD_ADR_PREL21 = 517
  3091. R_AARCH64_TLSLD_ADR_PAGE21 = 518
  3092. R_AARCH64_TLSLD_ADD_LO12_NC = 519
  3093. R_AARCH64_TLSLD_MOVW_G1 = 520
  3094. R_AARCH64_TLSLD_MOVW_G0_NC = 521
  3095. R_AARCH64_TLSLD_LD_PREL19 = 522
  3096. R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523
  3097. R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524
  3098. R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525
  3099. R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526
  3100. R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527
  3101. R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528
  3102. R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529
  3103. R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530
  3104. R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531
  3105. R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532
  3106. R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533
  3107. R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534
  3108. R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535
  3109. R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536
  3110. R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537
  3111. R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538
  3112. R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539
  3113. R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540
  3114. R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541
  3115. R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542
  3116. R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543
  3117. R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544
  3118. R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545
  3119. R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546
  3120. R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547
  3121. R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548
  3122. R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549
  3123. R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550
  3124. R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551
  3125. R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552
  3126. R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553
  3127. R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554
  3128. R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555
  3129. R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556
  3130. R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557
  3131. R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558
  3132. R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559
  3133. R_AARCH64_TLSDESC_LD_PREL19 = 560
  3134. R_AARCH64_TLSDESC_ADR_PREL21 = 561
  3135. R_AARCH64_TLSDESC_ADR_PAGE21 = 562
  3136. R_AARCH64_TLSDESC_LD64_LO12 = 563
  3137. R_AARCH64_TLSDESC_ADD_LO12 = 564
  3138. R_AARCH64_TLSDESC_OFF_G1 = 565
  3139. R_AARCH64_TLSDESC_OFF_G0_NC = 566
  3140. R_AARCH64_TLSDESC_LDR = 567
  3141. R_AARCH64_TLSDESC_ADD = 568
  3142. R_AARCH64_TLSDESC_CALL = 569
  3143. R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570
  3144. R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571
  3145. R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572
  3146. R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573
  3147. R_AARCH64_COPY = 1024
  3148. R_AARCH64_GLOB_DAT = 1025
  3149. R_AARCH64_JUMP_SLOT = 1026
  3150. R_AARCH64_RELATIVE = 1027
  3151. R_AARCH64_TLS_DTPMOD = 1028
  3152. R_AARCH64_TLS_DTPREL = 1029
  3153. R_AARCH64_TLS_TPREL = 1030
  3154. R_AARCH64_TLSDESC = 1031
  3155. R_AARCH64_IRELATIVE = 1032
  3156. DT_AARCH64_BTI_PLT = (DT_LOPROC + 1)
  3157. DT_AARCH64_PAC_PLT = (DT_LOPROC + 3)
  3158. DT_AARCH64_VARIANT_PCS = (DT_LOPROC + 5)
  3159. DT_AARCH64_NUM = 6
  3160. STO_AARCH64_VARIANT_PCS = 0x80
  3161. R_ARM_NONE = 0
  3162. R_ARM_ABS32 = 2
  3163. R_ARM_REL32 = 3
  3164. R_ARM_PC13 = 4
  3165. R_ARM_ABS16 = 5
  3166. R_ARM_ABS12 = 6
  3167. R_ARM_THM_ABS5 = 7
  3168. R_ARM_ABS8 = 8
  3169. R_ARM_SBREL32 = 9
  3170. R_ARM_THM_PC22 = 10
  3171. R_ARM_AMP_VCALL9 = 12
  3172. R_ARM_SWI24 = 13
  3173. R_ARM_TLS_DESC = 13
  3174. R_ARM_THM_SWI8 = 14
  3175. R_ARM_XPC25 = 15
  3176. R_ARM_THM_XPC22 = 16
  3177. R_ARM_TLS_DTPMOD32 = 17
  3178. R_ARM_TLS_DTPOFF32 = 18
  3179. R_ARM_TLS_TPOFF32 = 19
  3180. R_ARM_COPY = 20
  3181. R_ARM_GLOB_DAT = 21
  3182. R_ARM_JUMP_SLOT = 22
  3183. R_ARM_RELATIVE = 23
  3184. R_ARM_GOTOFF = 24
  3185. R_ARM_GOTPC = 25
  3186. R_ARM_GOT32 = 26
  3187. R_ARM_PLT32 = 27
  3188. R_ARM_CALL = 28
  3189. R_ARM_THM_JUMP24 = 30
  3190. R_ARM_BASE_ABS = 31
  3191. R_ARM_ALU_PCREL_7_0 = 32
  3192. R_ARM_ALU_PCREL_15_8 = 33
  3193. R_ARM_ALU_PCREL_23_15 = 34
  3194. R_ARM_LDR_SBREL_11_0 = 35
  3195. R_ARM_ALU_SBREL_19_12 = 36
  3196. R_ARM_ALU_SBREL_27_20 = 37
  3197. R_ARM_TARGET1 = 38
  3198. R_ARM_SBREL31 = 39
  3199. R_ARM_V4BX = 40
  3200. R_ARM_TARGET2 = 41
  3201. R_ARM_PREL31 = 42
  3202. R_ARM_MOVW_ABS_NC = 43
  3203. R_ARM_MOVT_ABS = 44
  3204. R_ARM_MOVW_PREL_NC = 45
  3205. R_ARM_MOVT_PREL = 46
  3206. R_ARM_THM_MOVW_ABS_NC = 47
  3207. R_ARM_ABS32_NOI = 55
  3208. R_ARM_REL32_NOI = 56
  3209. R_ARM_ALU_PC_G0_NC = 57
  3210. R_ARM_ALU_PC_G0 = 58
  3211. R_ARM_ALU_PC_G1_NC = 59
  3212. R_ARM_ALU_PC_G1 = 60
  3213. R_ARM_ALU_PC_G2 = 61
  3214. R_ARM_LDR_PC_G1 = 62
  3215. R_ARM_LDR_PC_G2 = 63
  3216. R_ARM_LDC_PC_G0 = 67
  3217. R_ARM_LDC_PC_G1 = 68
  3218. R_ARM_LDC_PC_G2 = 69
  3219. R_ARM_ALU_SB_G0_NC = 70
  3220. R_ARM_ALU_SB_G0 = 71
  3221. R_ARM_ALU_SB_G1_NC = 72
  3222. R_ARM_ALU_SB_G1 = 73
  3223. R_ARM_ALU_SB_G2 = 74
  3224. R_ARM_LDC_SB_G0 = 81
  3225. R_ARM_LDC_SB_G1 = 82
  3226. R_ARM_LDC_SB_G2 = 83
  3227. R_ARM_TLS_GOTDESC = 90
  3228. R_ARM_TLS_CALL = 91
  3229. R_ARM_TLS_DESCSEQ = 92
  3230. R_ARM_THM_TLS_CALL = 93
  3231. R_ARM_PLT32_ABS = 94
  3232. R_ARM_GOT_ABS = 95
  3233. R_ARM_GOT_PREL = 96
  3234. R_ARM_GOTRELAX = 99
  3235. R_ARM_GNU_VTENTRY = 100
  3236. R_ARM_GNU_VTINHERIT = 101
  3237. R_ARM_THM_PC11 = 102
  3238. R_ARM_ME_TOO = 128
  3239. R_ARM_THM_TLS_DESCSEQ = 129
  3240. R_ARM_THM_TLS_DESCSEQ16 = 129
  3241. R_ARM_THM_TLS_DESCSEQ32 = 130
  3242. R_ARM_IRELATIVE = 160
  3243. R_ARM_RXPC25 = 249
  3244. R_ARM_RSBREL32 = 250
  3245. R_ARM_THM_RPC22 = 251
  3246. R_ARM_RREL32 = 252
  3247. R_ARM_RABS22 = 253
  3248. R_ARM_RPC24 = 254
  3249. R_ARM_RBASE = 255
  3250. R_ARM_NUM = 256
  3251. R_CKCORE_NONE = 0
  3252. R_CKCORE_ADDR32 = 1
  3253. R_CKCORE_PCRELIMM8BY4 = 2
  3254. R_CKCORE_PCRELIMM11BY2 = 3
  3255. R_CKCORE_PCREL32 = 5
  3256. R_CKCORE_PCRELJSR_IMM11BY2 = 6
  3257. R_CKCORE_RELATIVE = 9
  3258. R_CKCORE_COPY = 10
  3259. R_CKCORE_GLOB_DAT = 11
  3260. R_CKCORE_JUMP_SLOT = 12
  3261. R_CKCORE_GOTOFF = 13
  3262. R_CKCORE_GOTPC = 14
  3263. R_CKCORE_GOT32 = 15
  3264. R_CKCORE_PLT32 = 16
  3265. R_CKCORE_ADDRGOT = 17
  3266. R_CKCORE_ADDRPLT = 18
  3267. R_CKCORE_PCREL_IMM26BY2 = 19
  3268. R_CKCORE_PCREL_IMM16BY2 = 20
  3269. R_CKCORE_PCREL_IMM16BY4 = 21
  3270. R_CKCORE_PCREL_IMM10BY2 = 22
  3271. R_CKCORE_PCREL_IMM10BY4 = 23
  3272. R_CKCORE_ADDR_HI16 = 24
  3273. R_CKCORE_ADDR_LO16 = 25
  3274. R_CKCORE_GOTPC_HI16 = 26
  3275. R_CKCORE_GOTPC_LO16 = 27
  3276. R_CKCORE_GOTOFF_HI16 = 28
  3277. R_CKCORE_GOTOFF_LO16 = 29
  3278. R_CKCORE_GOT12 = 30
  3279. R_CKCORE_GOT_HI16 = 31
  3280. R_CKCORE_GOT_LO16 = 32
  3281. R_CKCORE_PLT12 = 33
  3282. R_CKCORE_PLT_HI16 = 34
  3283. R_CKCORE_PLT_LO16 = 35
  3284. R_CKCORE_ADDRGOT_HI16 = 36
  3285. R_CKCORE_ADDRGOT_LO16 = 37
  3286. R_CKCORE_ADDRPLT_HI16 = 38
  3287. R_CKCORE_ADDRPLT_LO16 = 39
  3288. R_CKCORE_PCREL_JSR_IMM26BY2 = 40
  3289. R_CKCORE_TOFFSET_LO16 = 41
  3290. R_CKCORE_DOFFSET_LO16 = 42
  3291. R_CKCORE_PCREL_IMM18BY2 = 43
  3292. R_CKCORE_DOFFSET_IMM18 = 44
  3293. R_CKCORE_DOFFSET_IMM18BY2 = 45
  3294. R_CKCORE_DOFFSET_IMM18BY4 = 46
  3295. R_CKCORE_GOT_IMM18BY4 = 48
  3296. R_CKCORE_PLT_IMM18BY4 = 49
  3297. R_CKCORE_PCREL_IMM7BY4 = 50
  3298. R_CKCORE_TLS_LE32 = 51
  3299. R_CKCORE_TLS_IE32 = 52
  3300. R_CKCORE_TLS_GD32 = 53
  3301. R_CKCORE_TLS_LDM32 = 54
  3302. R_CKCORE_TLS_LDO32 = 55
  3303. R_CKCORE_TLS_DTPMOD32 = 56
  3304. R_CKCORE_TLS_DTPOFF32 = 57
  3305. R_CKCORE_TLS_TPOFF32 = 58
  3306. EF_CSKY_ABIMASK = 0XF0000000
  3307. EF_CSKY_OTHER = 0X0FFF0000
  3308. EF_CSKY_PROCESSOR = 0X0000FFFF
  3309. EF_CSKY_ABIV1 = 0X10000000
  3310. EF_CSKY_ABIV2 = 0X20000000
  3311. SHT_CSKY_ATTRIBUTES = (SHT_LOPROC + 1)
  3312. EF_IA_64_MASKOS = 0x0000000f
  3313. EF_IA_64_ABI64 = 0x00000010
  3314. EF_IA_64_ARCH = 0xff000000
  3315. PT_IA_64_ARCHEXT = (PT_LOPROC + 0)
  3316. PT_IA_64_UNWIND = (PT_LOPROC + 1)
  3317. PT_IA_64_HP_OPT_ANOT = (PT_LOOS + 0x12)
  3318. PT_IA_64_HP_HSL_ANOT = (PT_LOOS + 0x13)
  3319. PT_IA_64_HP_STACK = (PT_LOOS + 0x14)
  3320. PF_IA_64_NORECOV = 0x80000000
  3321. SHT_IA_64_EXT = (SHT_LOPROC + 0)
  3322. SHT_IA_64_UNWIND = (SHT_LOPROC + 1)
  3323. SHF_IA_64_SHORT = 0x10000000
  3324. SHF_IA_64_NORECOV = 0x20000000
  3325. DT_IA_64_PLT_RESERVE = (DT_LOPROC + 0)
  3326. DT_IA_64_NUM = 1
  3327. R_IA64_NONE = 0x00
  3328. R_IA64_IMM14 = 0x21
  3329. R_IA64_IMM22 = 0x22
  3330. R_IA64_IMM64 = 0x23
  3331. R_IA64_DIR32MSB = 0x24
  3332. R_IA64_DIR32LSB = 0x25
  3333. R_IA64_DIR64MSB = 0x26
  3334. R_IA64_DIR64LSB = 0x27
  3335. R_IA64_GPREL22 = 0x2a
  3336. R_IA64_GPREL64I = 0x2b
  3337. R_IA64_GPREL32MSB = 0x2c
  3338. R_IA64_GPREL32LSB = 0x2d
  3339. R_IA64_GPREL64MSB = 0x2e
  3340. R_IA64_GPREL64LSB = 0x2f
  3341. R_IA64_LTOFF22 = 0x32
  3342. R_IA64_LTOFF64I = 0x33
  3343. R_IA64_PLTOFF22 = 0x3a
  3344. R_IA64_PLTOFF64I = 0x3b
  3345. R_IA64_PLTOFF64MSB = 0x3e
  3346. R_IA64_PLTOFF64LSB = 0x3f
  3347. R_IA64_FPTR64I = 0x43
  3348. R_IA64_FPTR32MSB = 0x44
  3349. R_IA64_FPTR32LSB = 0x45
  3350. R_IA64_FPTR64MSB = 0x46
  3351. R_IA64_FPTR64LSB = 0x47
  3352. R_IA64_PCREL60B = 0x48
  3353. R_IA64_PCREL21B = 0x49
  3354. R_IA64_PCREL21M = 0x4a
  3355. R_IA64_PCREL21F = 0x4b
  3356. R_IA64_PCREL32MSB = 0x4c
  3357. R_IA64_PCREL32LSB = 0x4d
  3358. R_IA64_PCREL64MSB = 0x4e
  3359. R_IA64_PCREL64LSB = 0x4f
  3360. R_IA64_LTOFF_FPTR22 = 0x52
  3361. R_IA64_LTOFF_FPTR64I = 0x53
  3362. R_IA64_LTOFF_FPTR32MSB = 0x54
  3363. R_IA64_LTOFF_FPTR32LSB = 0x55
  3364. R_IA64_LTOFF_FPTR64MSB = 0x56
  3365. R_IA64_LTOFF_FPTR64LSB = 0x57
  3366. R_IA64_SEGREL32MSB = 0x5c
  3367. R_IA64_SEGREL32LSB = 0x5d
  3368. R_IA64_SEGREL64MSB = 0x5e
  3369. R_IA64_SEGREL64LSB = 0x5f
  3370. R_IA64_SECREL32MSB = 0x64
  3371. R_IA64_SECREL32LSB = 0x65
  3372. R_IA64_SECREL64MSB = 0x66
  3373. R_IA64_SECREL64LSB = 0x67
  3374. R_IA64_REL32MSB = 0x6c
  3375. R_IA64_REL32LSB = 0x6d
  3376. R_IA64_REL64MSB = 0x6e
  3377. R_IA64_REL64LSB = 0x6f
  3378. R_IA64_LTV32MSB = 0x74
  3379. R_IA64_LTV32LSB = 0x75
  3380. R_IA64_LTV64MSB = 0x76
  3381. R_IA64_LTV64LSB = 0x77
  3382. R_IA64_PCREL21BI = 0x79
  3383. R_IA64_PCREL22 = 0x7a
  3384. R_IA64_PCREL64I = 0x7b
  3385. R_IA64_IPLTMSB = 0x80
  3386. R_IA64_IPLTLSB = 0x81
  3387. R_IA64_COPY = 0x84
  3388. R_IA64_SUB = 0x85
  3389. R_IA64_LTOFF22X = 0x86
  3390. R_IA64_LDXMOV = 0x87
  3391. R_IA64_TPREL14 = 0x91
  3392. R_IA64_TPREL22 = 0x92
  3393. R_IA64_TPREL64I = 0x93
  3394. R_IA64_TPREL64MSB = 0x96
  3395. R_IA64_TPREL64LSB = 0x97
  3396. R_IA64_LTOFF_TPREL22 = 0x9a
  3397. R_IA64_DTPMOD64MSB = 0xa6
  3398. R_IA64_DTPMOD64LSB = 0xa7
  3399. R_IA64_LTOFF_DTPMOD22 = 0xaa
  3400. R_IA64_DTPREL14 = 0xb1
  3401. R_IA64_DTPREL22 = 0xb2
  3402. R_IA64_DTPREL64I = 0xb3
  3403. R_IA64_DTPREL32MSB = 0xb4
  3404. R_IA64_DTPREL32LSB = 0xb5
  3405. R_IA64_DTPREL64MSB = 0xb6
  3406. R_IA64_DTPREL64LSB = 0xb7
  3407. R_IA64_LTOFF_DTPREL22 = 0xba
  3408. EF_SH_MACH_MASK = 0x1f
  3409. EF_SH_UNKNOWN = 0x0
  3410. EF_SH1 = 0x1
  3411. EF_SH2 = 0x2
  3412. EF_SH3 = 0x3
  3413. EF_SH_DSP = 0x4
  3414. EF_SH3_DSP = 0x5
  3415. EF_SH4AL_DSP = 0x6
  3416. EF_SH3E = 0x8
  3417. EF_SH4 = 0x9
  3418. EF_SH2E = 0xb
  3419. EF_SH4A = 0xc
  3420. EF_SH2A = 0xd
  3421. EF_SH4_NOFPU = 0x10
  3422. EF_SH4A_NOFPU = 0x11
  3423. EF_SH4_NOMMU_NOFPU = 0x12
  3424. EF_SH2A_NOFPU = 0x13
  3425. EF_SH3_NOMMU = 0x14
  3426. EF_SH2A_SH4_NOFPU = 0x15
  3427. EF_SH2A_SH3_NOFPU = 0x16
  3428. EF_SH2A_SH4 = 0x17
  3429. EF_SH2A_SH3E = 0x18
  3430. R_SH_NONE = 0
  3431. R_SH_DIR32 = 1
  3432. R_SH_REL32 = 2
  3433. R_SH_DIR8WPN = 3
  3434. R_SH_IND12W = 4
  3435. R_SH_DIR8WPL = 5
  3436. R_SH_DIR8WPZ = 6
  3437. R_SH_DIR8BP = 7
  3438. R_SH_DIR8W = 8
  3439. R_SH_DIR8L = 9
  3440. R_SH_SWITCH16 = 25
  3441. R_SH_SWITCH32 = 26
  3442. R_SH_USES = 27
  3443. R_SH_COUNT = 28
  3444. R_SH_ALIGN = 29
  3445. R_SH_CODE = 30
  3446. R_SH_DATA = 31
  3447. R_SH_LABEL = 32
  3448. R_SH_SWITCH8 = 33
  3449. R_SH_GNU_VTINHERIT = 34
  3450. R_SH_GNU_VTENTRY = 35
  3451. R_SH_TLS_GD_32 = 144
  3452. R_SH_TLS_LD_32 = 145
  3453. R_SH_TLS_LDO_32 = 146
  3454. R_SH_TLS_IE_32 = 147
  3455. R_SH_TLS_LE_32 = 148
  3456. R_SH_TLS_DTPMOD32 = 149
  3457. R_SH_TLS_DTPOFF32 = 150
  3458. R_SH_TLS_TPOFF32 = 151
  3459. R_SH_GOT32 = 160
  3460. R_SH_PLT32 = 161
  3461. R_SH_COPY = 162
  3462. R_SH_GLOB_DAT = 163
  3463. R_SH_JMP_SLOT = 164
  3464. R_SH_RELATIVE = 165
  3465. R_SH_GOTOFF = 166
  3466. R_SH_GOTPC = 167
  3467. R_SH_NUM = 256
  3468. EF_S390_HIGH_GPRS = 0x00000001
  3469. R_390_NONE = 0
  3470. R_390_8 = 1
  3471. R_390_12 = 2
  3472. R_390_16 = 3
  3473. R_390_32 = 4
  3474. R_390_PC32 = 5
  3475. R_390_GOT12 = 6
  3476. R_390_GOT32 = 7
  3477. R_390_PLT32 = 8
  3478. R_390_COPY = 9
  3479. R_390_GLOB_DAT = 10
  3480. R_390_JMP_SLOT = 11
  3481. R_390_RELATIVE = 12
  3482. R_390_GOTOFF32 = 13
  3483. R_390_GOTPC = 14
  3484. R_390_GOT16 = 15
  3485. R_390_PC16 = 16
  3486. R_390_PC16DBL = 17
  3487. R_390_PLT16DBL = 18
  3488. R_390_PC32DBL = 19
  3489. R_390_PLT32DBL = 20
  3490. R_390_GOTPCDBL = 21
  3491. R_390_64 = 22
  3492. R_390_PC64 = 23
  3493. R_390_GOT64 = 24
  3494. R_390_PLT64 = 25
  3495. R_390_GOTENT = 26
  3496. R_390_GOTOFF16 = 27
  3497. R_390_GOTOFF64 = 28
  3498. R_390_GOTPLT12 = 29
  3499. R_390_GOTPLT16 = 30
  3500. R_390_GOTPLT32 = 31
  3501. R_390_GOTPLT64 = 32
  3502. R_390_GOTPLTENT = 33
  3503. R_390_PLTOFF16 = 34
  3504. R_390_PLTOFF32 = 35
  3505. R_390_PLTOFF64 = 36
  3506. R_390_TLS_LOAD = 37
  3507. R_390_TLS_DTPMOD = 54
  3508. R_390_TLS_DTPOFF = 55
  3509. R_390_20 = 57
  3510. R_390_GOT20 = 58
  3511. R_390_GOTPLT20 = 59
  3512. R_390_IRELATIVE = 61
  3513. R_390_NUM = 62
  3514. R_CRIS_NONE = 0
  3515. R_CRIS_8 = 1
  3516. R_CRIS_16 = 2
  3517. R_CRIS_32 = 3
  3518. R_CRIS_8_PCREL = 4
  3519. R_CRIS_16_PCREL = 5
  3520. R_CRIS_32_PCREL = 6
  3521. R_CRIS_GNU_VTINHERIT = 7
  3522. R_CRIS_GNU_VTENTRY = 8
  3523. R_CRIS_COPY = 9
  3524. R_CRIS_GLOB_DAT = 10
  3525. R_CRIS_JUMP_SLOT = 11
  3526. R_CRIS_RELATIVE = 12
  3527. R_CRIS_16_GOT = 13
  3528. R_CRIS_32_GOT = 14
  3529. R_CRIS_16_GOTPLT = 15
  3530. R_CRIS_32_GOTPLT = 16
  3531. R_CRIS_32_GOTREL = 17
  3532. R_CRIS_32_PLT_GOTREL = 18
  3533. R_CRIS_32_PLT_PCREL = 19
  3534. R_CRIS_NUM = 20
  3535. R_X86_64_NONE = 0
  3536. R_X86_64_64 = 1
  3537. R_X86_64_PC32 = 2
  3538. R_X86_64_GOT32 = 3
  3539. R_X86_64_PLT32 = 4
  3540. R_X86_64_COPY = 5
  3541. R_X86_64_GLOB_DAT = 6
  3542. R_X86_64_JUMP_SLOT = 7
  3543. R_X86_64_RELATIVE = 8
  3544. R_X86_64_32 = 10
  3545. R_X86_64_32S = 11
  3546. R_X86_64_16 = 12
  3547. R_X86_64_PC16 = 13
  3548. R_X86_64_8 = 14
  3549. R_X86_64_PC8 = 15
  3550. R_X86_64_DTPMOD64 = 16
  3551. R_X86_64_DTPOFF64 = 17
  3552. R_X86_64_TPOFF64 = 18
  3553. R_X86_64_DTPOFF32 = 21
  3554. R_X86_64_TPOFF32 = 23
  3555. R_X86_64_PC64 = 24
  3556. R_X86_64_GOTOFF64 = 25
  3557. R_X86_64_GOT64 = 27
  3558. R_X86_64_GOTPC64 = 29
  3559. R_X86_64_GOTPLT64 = 30
  3560. R_X86_64_SIZE32 = 32
  3561. R_X86_64_SIZE64 = 33
  3562. R_X86_64_GOTPC32_TLSDESC = 34
  3563. R_X86_64_TLSDESC = 36
  3564. R_X86_64_IRELATIVE = 37
  3565. R_X86_64_RELATIVE64 = 38
  3566. R_X86_64_NUM = 43
  3567. SHT_X86_64_UNWIND = 0x70000001
  3568. R_MN10300_NONE = 0
  3569. R_MN10300_32 = 1
  3570. R_MN10300_16 = 2
  3571. R_MN10300_8 = 3
  3572. R_MN10300_PCREL32 = 4
  3573. R_MN10300_PCREL16 = 5
  3574. R_MN10300_PCREL8 = 6
  3575. R_MN10300_GNU_VTINHERIT = 7
  3576. R_MN10300_GNU_VTENTRY = 8
  3577. R_MN10300_24 = 9
  3578. R_MN10300_GOTPC32 = 10
  3579. R_MN10300_GOTPC16 = 11
  3580. R_MN10300_GOTOFF32 = 12
  3581. R_MN10300_GOTOFF24 = 13
  3582. R_MN10300_GOTOFF16 = 14
  3583. R_MN10300_PLT32 = 15
  3584. R_MN10300_PLT16 = 16
  3585. R_MN10300_GOT32 = 17
  3586. R_MN10300_GOT24 = 18
  3587. R_MN10300_GOT16 = 19
  3588. R_MN10300_COPY = 20
  3589. R_MN10300_GLOB_DAT = 21
  3590. R_MN10300_JMP_SLOT = 22
  3591. R_MN10300_RELATIVE = 23
  3592. R_MN10300_TLS_GD = 24
  3593. R_MN10300_TLS_LD = 25
  3594. R_MN10300_TLS_LDO = 26
  3595. R_MN10300_TLS_DTPMOD = 30
  3596. R_MN10300_TLS_DTPOFF = 31
  3597. R_MN10300_TLS_TPOFF = 32
  3598. R_MN10300_NUM = 35
  3599. R_M32R_NONE = 0
  3600. R_M32R_16 = 1
  3601. R_M32R_32 = 2
  3602. R_M32R_24 = 3
  3603. R_M32R_10_PCREL = 4
  3604. R_M32R_18_PCREL = 5
  3605. R_M32R_26_PCREL = 6
  3606. R_M32R_HI16_ULO = 7
  3607. R_M32R_HI16_SLO = 8
  3608. R_M32R_LO16 = 9
  3609. R_M32R_SDA16 = 10
  3610. R_M32R_GNU_VTINHERIT = 11
  3611. R_M32R_GNU_VTENTRY = 12
  3612. R_M32R_16_RELA = 33
  3613. R_M32R_32_RELA = 34
  3614. R_M32R_24_RELA = 35
  3615. R_M32R_10_PCREL_RELA = 36
  3616. R_M32R_18_PCREL_RELA = 37
  3617. R_M32R_26_PCREL_RELA = 38
  3618. R_M32R_HI16_ULO_RELA = 39
  3619. R_M32R_HI16_SLO_RELA = 40
  3620. R_M32R_LO16_RELA = 41
  3621. R_M32R_SDA16_RELA = 42
  3622. R_M32R_RELA_GNU_VTINHERIT = 43
  3623. R_M32R_RELA_GNU_VTENTRY = 44
  3624. R_M32R_REL32 = 45
  3625. R_M32R_GOT24 = 48
  3626. R_M32R_26_PLTREL = 49
  3627. R_M32R_COPY = 50
  3628. R_M32R_GLOB_DAT = 51
  3629. R_M32R_JMP_SLOT = 52
  3630. R_M32R_RELATIVE = 53
  3631. R_M32R_GOTOFF = 54
  3632. R_M32R_GOTPC24 = 55
  3633. R_M32R_GOT16_LO = 58
  3634. R_M32R_GOTOFF_LO = 64
  3635. R_M32R_NUM = 256
  3636. R_MICROBLAZE_NONE = 0
  3637. R_MICROBLAZE_32 = 1
  3638. R_MICROBLAZE_32_PCREL = 2
  3639. R_MICROBLAZE_64_PCREL = 3
  3640. R_MICROBLAZE_32_PCREL_LO = 4
  3641. R_MICROBLAZE_64 = 5
  3642. R_MICROBLAZE_32_LO = 6
  3643. R_MICROBLAZE_SRO32 = 7
  3644. R_MICROBLAZE_SRW32 = 8
  3645. R_MICROBLAZE_64_NONE = 9
  3646. R_MICROBLAZE_32_SYM_OP_SYM = 10
  3647. R_MICROBLAZE_GNU_VTINHERIT = 11
  3648. R_MICROBLAZE_GNU_VTENTRY = 12
  3649. R_MICROBLAZE_GOTPC_64 = 13
  3650. R_MICROBLAZE_GOT_64 = 14
  3651. R_MICROBLAZE_PLT_64 = 15
  3652. R_MICROBLAZE_REL = 16
  3653. R_MICROBLAZE_JUMP_SLOT = 17
  3654. R_MICROBLAZE_GLOB_DAT = 18
  3655. R_MICROBLAZE_GOTOFF_64 = 19
  3656. R_MICROBLAZE_GOTOFF_32 = 20
  3657. R_MICROBLAZE_COPY = 21
  3658. R_MICROBLAZE_TLS = 22
  3659. R_MICROBLAZE_TLSGD = 23
  3660. R_MICROBLAZE_TLSLD = 24
  3661. R_MICROBLAZE_TLSDTPMOD32 = 25
  3662. R_MICROBLAZE_TLSDTPREL32 = 26
  3663. R_MICROBLAZE_TLSDTPREL64 = 27
  3664. R_MICROBLAZE_TLSGOTTPREL32 = 28
  3665. R_MICROBLAZE_TLSTPREL32 = 29
  3666. DT_NIOS2_GP = 0x70000002
  3667. R_NIOS2_NONE = 0
  3668. R_NIOS2_S16 = 1
  3669. R_NIOS2_U16 = 2
  3670. R_NIOS2_PCREL16 = 3
  3671. R_NIOS2_CALL26 = 4
  3672. R_NIOS2_IMM5 = 5
  3673. R_NIOS2_CACHE_OPX = 6
  3674. R_NIOS2_IMM6 = 7
  3675. R_NIOS2_IMM8 = 8
  3676. R_NIOS2_HI16 = 9
  3677. R_NIOS2_LO16 = 10
  3678. R_NIOS2_HIADJ16 = 11
  3679. R_NIOS2_BFD_RELOC_32 = 12
  3680. R_NIOS2_BFD_RELOC_16 = 13
  3681. R_NIOS2_BFD_RELOC_8 = 14
  3682. R_NIOS2_GPREL = 15
  3683. R_NIOS2_GNU_VTINHERIT = 16
  3684. R_NIOS2_GNU_VTENTRY = 17
  3685. R_NIOS2_UJMP = 18
  3686. R_NIOS2_CJMP = 19
  3687. R_NIOS2_CALLR = 20
  3688. R_NIOS2_GOT16 = 22
  3689. R_NIOS2_CALL16 = 23
  3690. R_NIOS2_GOTOFF_LO = 24
  3691. R_NIOS2_GOTOFF_HA = 25
  3692. R_NIOS2_PCREL_LO = 26
  3693. R_NIOS2_PCREL_HA = 27
  3694. R_NIOS2_TLS_GD16 = 28
  3695. R_NIOS2_TLS_LDM16 = 29
  3696. R_NIOS2_TLS_LDO16 = 30
  3697. R_NIOS2_TLS_IE16 = 31
  3698. R_NIOS2_TLS_LE16 = 32
  3699. R_NIOS2_TLS_DTPMOD = 33
  3700. R_NIOS2_TLS_DTPREL = 34
  3701. R_NIOS2_TLS_TPREL = 35
  3702. R_NIOS2_COPY = 36
  3703. R_NIOS2_GLOB_DAT = 37
  3704. R_NIOS2_JUMP_SLOT = 38
  3705. R_NIOS2_RELATIVE = 39
  3706. R_NIOS2_GOTOFF = 40
  3707. R_NIOS2_CALL26_NOAT = 41
  3708. R_NIOS2_GOT_LO = 42
  3709. R_NIOS2_GOT_HA = 43
  3710. R_NIOS2_CALL_LO = 44
  3711. R_NIOS2_CALL_HA = 45
  3712. R_TILEPRO_NONE = 0
  3713. R_TILEPRO_32 = 1
  3714. R_TILEPRO_16 = 2
  3715. R_TILEPRO_8 = 3
  3716. R_TILEPRO_32_PCREL = 4
  3717. R_TILEPRO_16_PCREL = 5
  3718. R_TILEPRO_8_PCREL = 6
  3719. R_TILEPRO_LO16 = 7
  3720. R_TILEPRO_HI16 = 8
  3721. R_TILEPRO_HA16 = 9
  3722. R_TILEPRO_COPY = 10
  3723. R_TILEPRO_GLOB_DAT = 11
  3724. R_TILEPRO_JMP_SLOT = 12
  3725. R_TILEPRO_RELATIVE = 13
  3726. R_TILEPRO_BROFF_X1 = 14
  3727. R_TILEPRO_JOFFLONG_X1 = 15
  3728. R_TILEPRO_JOFFLONG_X1_PLT = 16
  3729. R_TILEPRO_IMM8_X0 = 17
  3730. R_TILEPRO_IMM8_Y0 = 18
  3731. R_TILEPRO_IMM8_X1 = 19
  3732. R_TILEPRO_IMM8_Y1 = 20
  3733. R_TILEPRO_MT_IMM15_X1 = 21
  3734. R_TILEPRO_MF_IMM15_X1 = 22
  3735. R_TILEPRO_IMM16_X0 = 23
  3736. R_TILEPRO_IMM16_X1 = 24
  3737. R_TILEPRO_IMM16_X0_LO = 25
  3738. R_TILEPRO_IMM16_X1_LO = 26
  3739. R_TILEPRO_IMM16_X0_HI = 27
  3740. R_TILEPRO_IMM16_X1_HI = 28
  3741. R_TILEPRO_IMM16_X0_HA = 29
  3742. R_TILEPRO_IMM16_X1_HA = 30
  3743. R_TILEPRO_IMM16_X0_PCREL = 31
  3744. R_TILEPRO_IMM16_X1_PCREL = 32
  3745. R_TILEPRO_IMM16_X0_LO_PCREL = 33
  3746. R_TILEPRO_IMM16_X1_LO_PCREL = 34
  3747. R_TILEPRO_IMM16_X0_HI_PCREL = 35
  3748. R_TILEPRO_IMM16_X1_HI_PCREL = 36
  3749. R_TILEPRO_IMM16_X0_HA_PCREL = 37
  3750. R_TILEPRO_IMM16_X1_HA_PCREL = 38
  3751. R_TILEPRO_IMM16_X0_GOT = 39
  3752. R_TILEPRO_IMM16_X1_GOT = 40
  3753. R_TILEPRO_IMM16_X0_GOT_LO = 41
  3754. R_TILEPRO_IMM16_X1_GOT_LO = 42
  3755. R_TILEPRO_IMM16_X0_GOT_HI = 43
  3756. R_TILEPRO_IMM16_X1_GOT_HI = 44
  3757. R_TILEPRO_IMM16_X0_GOT_HA = 45
  3758. R_TILEPRO_IMM16_X1_GOT_HA = 46
  3759. R_TILEPRO_MMSTART_X0 = 47
  3760. R_TILEPRO_MMEND_X0 = 48
  3761. R_TILEPRO_MMSTART_X1 = 49
  3762. R_TILEPRO_MMEND_X1 = 50
  3763. R_TILEPRO_SHAMT_X0 = 51
  3764. R_TILEPRO_SHAMT_X1 = 52
  3765. R_TILEPRO_SHAMT_Y0 = 53
  3766. R_TILEPRO_SHAMT_Y1 = 54
  3767. R_TILEPRO_DEST_IMM8_X1 = 55
  3768. R_TILEPRO_TLS_GD_CALL = 60
  3769. R_TILEPRO_IMM8_X0_TLS_GD_ADD = 61
  3770. R_TILEPRO_IMM8_X1_TLS_GD_ADD = 62
  3771. R_TILEPRO_IMM8_Y0_TLS_GD_ADD = 63
  3772. R_TILEPRO_IMM8_Y1_TLS_GD_ADD = 64
  3773. R_TILEPRO_TLS_IE_LOAD = 65
  3774. R_TILEPRO_IMM16_X0_TLS_GD = 66
  3775. R_TILEPRO_IMM16_X1_TLS_GD = 67
  3776. R_TILEPRO_IMM16_X0_TLS_GD_LO = 68
  3777. R_TILEPRO_IMM16_X1_TLS_GD_LO = 69
  3778. R_TILEPRO_IMM16_X0_TLS_GD_HI = 70
  3779. R_TILEPRO_IMM16_X1_TLS_GD_HI = 71
  3780. R_TILEPRO_IMM16_X0_TLS_GD_HA = 72
  3781. R_TILEPRO_IMM16_X1_TLS_GD_HA = 73
  3782. R_TILEPRO_IMM16_X0_TLS_IE = 74
  3783. R_TILEPRO_IMM16_X1_TLS_IE = 75
  3784. R_TILEPRO_IMM16_X0_TLS_IE_LO = 76
  3785. R_TILEPRO_IMM16_X1_TLS_IE_LO = 77
  3786. R_TILEPRO_IMM16_X0_TLS_IE_HI = 78
  3787. R_TILEPRO_IMM16_X1_TLS_IE_HI = 79
  3788. R_TILEPRO_IMM16_X0_TLS_IE_HA = 80
  3789. R_TILEPRO_IMM16_X1_TLS_IE_HA = 81
  3790. R_TILEPRO_TLS_DTPMOD32 = 82
  3791. R_TILEPRO_TLS_DTPOFF32 = 83
  3792. R_TILEPRO_TLS_TPOFF32 = 84
  3793. R_TILEPRO_IMM16_X0_TLS_LE = 85
  3794. R_TILEPRO_IMM16_X1_TLS_LE = 86
  3795. R_TILEPRO_IMM16_X0_TLS_LE_LO = 87
  3796. R_TILEPRO_IMM16_X1_TLS_LE_LO = 88
  3797. R_TILEPRO_IMM16_X0_TLS_LE_HI = 89
  3798. R_TILEPRO_IMM16_X1_TLS_LE_HI = 90
  3799. R_TILEPRO_IMM16_X0_TLS_LE_HA = 91
  3800. R_TILEPRO_IMM16_X1_TLS_LE_HA = 92
  3801. R_TILEPRO_GNU_VTINHERIT = 128
  3802. R_TILEPRO_GNU_VTENTRY = 129
  3803. R_TILEPRO_NUM = 130
  3804. R_TILEGX_NONE = 0
  3805. R_TILEGX_64 = 1
  3806. R_TILEGX_32 = 2
  3807. R_TILEGX_16 = 3
  3808. R_TILEGX_8 = 4
  3809. R_TILEGX_64_PCREL = 5
  3810. R_TILEGX_32_PCREL = 6
  3811. R_TILEGX_16_PCREL = 7
  3812. R_TILEGX_8_PCREL = 8
  3813. R_TILEGX_HW0 = 9
  3814. R_TILEGX_HW1 = 10
  3815. R_TILEGX_HW2 = 11
  3816. R_TILEGX_HW3 = 12
  3817. R_TILEGX_HW0_LAST = 13
  3818. R_TILEGX_HW1_LAST = 14
  3819. R_TILEGX_HW2_LAST = 15
  3820. R_TILEGX_COPY = 16
  3821. R_TILEGX_GLOB_DAT = 17
  3822. R_TILEGX_JMP_SLOT = 18
  3823. R_TILEGX_RELATIVE = 19
  3824. R_TILEGX_BROFF_X1 = 20
  3825. R_TILEGX_JUMPOFF_X1 = 21
  3826. R_TILEGX_JUMPOFF_X1_PLT = 22
  3827. R_TILEGX_IMM8_X0 = 23
  3828. R_TILEGX_IMM8_Y0 = 24
  3829. R_TILEGX_IMM8_X1 = 25
  3830. R_TILEGX_IMM8_Y1 = 26
  3831. R_TILEGX_DEST_IMM8_X1 = 27
  3832. R_TILEGX_MT_IMM14_X1 = 28
  3833. R_TILEGX_MF_IMM14_X1 = 29
  3834. R_TILEGX_MMSTART_X0 = 30
  3835. R_TILEGX_MMEND_X0 = 31
  3836. R_TILEGX_SHAMT_X0 = 32
  3837. R_TILEGX_SHAMT_X1 = 33
  3838. R_TILEGX_SHAMT_Y0 = 34
  3839. R_TILEGX_SHAMT_Y1 = 35
  3840. R_TILEGX_IMM16_X0_HW0 = 36
  3841. R_TILEGX_IMM16_X1_HW0 = 37
  3842. R_TILEGX_IMM16_X0_HW1 = 38
  3843. R_TILEGX_IMM16_X1_HW1 = 39
  3844. R_TILEGX_IMM16_X0_HW2 = 40
  3845. R_TILEGX_IMM16_X1_HW2 = 41
  3846. R_TILEGX_IMM16_X0_HW3 = 42
  3847. R_TILEGX_IMM16_X1_HW3 = 43
  3848. R_TILEGX_IMM16_X0_HW0_LAST = 44
  3849. R_TILEGX_IMM16_X1_HW0_LAST = 45
  3850. R_TILEGX_IMM16_X0_HW1_LAST = 46
  3851. R_TILEGX_IMM16_X1_HW1_LAST = 47
  3852. R_TILEGX_IMM16_X0_HW2_LAST = 48
  3853. R_TILEGX_IMM16_X1_HW2_LAST = 49
  3854. R_TILEGX_IMM16_X0_HW0_PCREL = 50
  3855. R_TILEGX_IMM16_X1_HW0_PCREL = 51
  3856. R_TILEGX_IMM16_X0_HW1_PCREL = 52
  3857. R_TILEGX_IMM16_X1_HW1_PCREL = 53
  3858. R_TILEGX_IMM16_X0_HW2_PCREL = 54
  3859. R_TILEGX_IMM16_X1_HW2_PCREL = 55
  3860. R_TILEGX_IMM16_X0_HW3_PCREL = 56
  3861. R_TILEGX_IMM16_X1_HW3_PCREL = 57
  3862. R_TILEGX_IMM16_X0_HW0_LAST_PCREL = 58
  3863. R_TILEGX_IMM16_X1_HW0_LAST_PCREL = 59
  3864. R_TILEGX_IMM16_X0_HW1_LAST_PCREL = 60
  3865. R_TILEGX_IMM16_X1_HW1_LAST_PCREL = 61
  3866. R_TILEGX_IMM16_X0_HW2_LAST_PCREL = 62
  3867. R_TILEGX_IMM16_X1_HW2_LAST_PCREL = 63
  3868. R_TILEGX_IMM16_X0_HW0_GOT = 64
  3869. R_TILEGX_IMM16_X1_HW0_GOT = 65
  3870. R_TILEGX_IMM16_X0_HW0_PLT_PCREL = 66
  3871. R_TILEGX_IMM16_X1_HW0_PLT_PCREL = 67
  3872. R_TILEGX_IMM16_X0_HW1_PLT_PCREL = 68
  3873. R_TILEGX_IMM16_X1_HW1_PLT_PCREL = 69
  3874. R_TILEGX_IMM16_X0_HW2_PLT_PCREL = 70
  3875. R_TILEGX_IMM16_X1_HW2_PLT_PCREL = 71
  3876. R_TILEGX_IMM16_X0_HW0_LAST_GOT = 72
  3877. R_TILEGX_IMM16_X1_HW0_LAST_GOT = 73
  3878. R_TILEGX_IMM16_X0_HW1_LAST_GOT = 74
  3879. R_TILEGX_IMM16_X1_HW1_LAST_GOT = 75
  3880. R_TILEGX_IMM16_X0_HW3_PLT_PCREL = 76
  3881. R_TILEGX_IMM16_X1_HW3_PLT_PCREL = 77
  3882. R_TILEGX_IMM16_X0_HW0_TLS_GD = 78
  3883. R_TILEGX_IMM16_X1_HW0_TLS_GD = 79
  3884. R_TILEGX_IMM16_X0_HW0_TLS_LE = 80
  3885. R_TILEGX_IMM16_X1_HW0_TLS_LE = 81
  3886. R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE = 82
  3887. R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE = 83
  3888. R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE = 84
  3889. R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE = 85
  3890. R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD = 86
  3891. R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD = 87
  3892. R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD = 88
  3893. R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD = 89
  3894. R_TILEGX_IMM16_X0_HW0_TLS_IE = 92
  3895. R_TILEGX_IMM16_X1_HW0_TLS_IE = 93
  3896. R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL = 94
  3897. R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL = 95
  3898. R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL = 96
  3899. R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL = 97
  3900. R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL = 98
  3901. R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL = 99
  3902. R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE = 100
  3903. R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE = 101
  3904. R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE = 102
  3905. R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE = 103
  3906. R_TILEGX_TLS_DTPMOD64 = 106
  3907. R_TILEGX_TLS_DTPOFF64 = 107
  3908. R_TILEGX_TLS_TPOFF64 = 108
  3909. R_TILEGX_TLS_DTPMOD32 = 109
  3910. R_TILEGX_TLS_DTPOFF32 = 110
  3911. R_TILEGX_TLS_TPOFF32 = 111
  3912. R_TILEGX_TLS_GD_CALL = 112
  3913. R_TILEGX_IMM8_X0_TLS_GD_ADD = 113
  3914. R_TILEGX_IMM8_X1_TLS_GD_ADD = 114
  3915. R_TILEGX_IMM8_Y0_TLS_GD_ADD = 115
  3916. R_TILEGX_IMM8_Y1_TLS_GD_ADD = 116
  3917. R_TILEGX_TLS_IE_LOAD = 117
  3918. R_TILEGX_IMM8_X0_TLS_ADD = 118
  3919. R_TILEGX_IMM8_X1_TLS_ADD = 119
  3920. R_TILEGX_IMM8_Y0_TLS_ADD = 120
  3921. R_TILEGX_IMM8_Y1_TLS_ADD = 121
  3922. R_TILEGX_GNU_VTINHERIT = 128
  3923. R_TILEGX_GNU_VTENTRY = 129
  3924. R_TILEGX_NUM = 130
  3925. EF_RISCV_RVC = 0x0001
  3926. EF_RISCV_FLOAT_ABI = 0x0006
  3927. EF_RISCV_FLOAT_ABI_SOFT = 0x0000
  3928. EF_RISCV_FLOAT_ABI_SINGLE = 0x0002
  3929. EF_RISCV_FLOAT_ABI_DOUBLE = 0x0004
  3930. EF_RISCV_FLOAT_ABI_QUAD = 0x0006
  3931. R_RISCV_NONE = 0
  3932. R_RISCV_32 = 1
  3933. R_RISCV_64 = 2
  3934. R_RISCV_RELATIVE = 3
  3935. R_RISCV_COPY = 4
  3936. R_RISCV_JUMP_SLOT = 5
  3937. R_RISCV_TLS_DTPMOD32 = 6
  3938. R_RISCV_TLS_DTPMOD64 = 7
  3939. R_RISCV_TLS_DTPREL32 = 8
  3940. R_RISCV_TLS_DTPREL64 = 9
  3941. R_RISCV_TLS_TPREL32 = 10
  3942. R_RISCV_TLS_TPREL64 = 11
  3943. R_RISCV_BRANCH = 16
  3944. R_RISCV_JAL = 17
  3945. R_RISCV_CALL = 18
  3946. R_RISCV_CALL_PLT = 19
  3947. R_RISCV_GOT_HI20 = 20
  3948. R_RISCV_TLS_GOT_HI20 = 21
  3949. R_RISCV_TLS_GD_HI20 = 22
  3950. R_RISCV_PCREL_HI20 = 23
  3951. R_RISCV_PCREL_LO12_I = 24
  3952. R_RISCV_PCREL_LO12_S = 25
  3953. R_RISCV_HI20 = 26
  3954. R_RISCV_LO12_I = 27
  3955. R_RISCV_LO12_S = 28
  3956. R_RISCV_TPREL_HI20 = 29
  3957. R_RISCV_TPREL_LO12_I = 30
  3958. R_RISCV_TPREL_LO12_S = 31
  3959. R_RISCV_TPREL_ADD = 32
  3960. R_RISCV_ADD8 = 33
  3961. R_RISCV_ADD16 = 34
  3962. R_RISCV_ADD32 = 35
  3963. R_RISCV_ADD64 = 36
  3964. R_RISCV_SUB8 = 37
  3965. R_RISCV_SUB16 = 38
  3966. R_RISCV_SUB32 = 39
  3967. R_RISCV_SUB64 = 40
  3968. R_RISCV_GNU_VTINHERIT = 41
  3969. R_RISCV_GNU_VTENTRY = 42
  3970. R_RISCV_ALIGN = 43
  3971. R_RISCV_RVC_BRANCH = 44
  3972. R_RISCV_RVC_JUMP = 45
  3973. R_RISCV_RVC_LUI = 46
  3974. R_RISCV_GPREL_I = 47
  3975. R_RISCV_GPREL_S = 48
  3976. R_RISCV_TPREL_I = 49
  3977. R_RISCV_TPREL_S = 50
  3978. R_RISCV_RELAX = 51
  3979. R_RISCV_SUB6 = 52
  3980. R_RISCV_SET6 = 53
  3981. R_RISCV_SET8 = 54
  3982. R_RISCV_SET16 = 55
  3983. R_RISCV_SET32 = 56
  3984. R_RISCV_32_PCREL = 57
  3985. R_RISCV_IRELATIVE = 58
  3986. R_RISCV_NUM = 59
  3987. R_BPF_NONE = 0
  3988. R_BPF_64_64 = 1
  3989. R_BPF_64_32 = 10
  3990. R_METAG_HIADDR16 = 0
  3991. R_METAG_LOADDR16 = 1
  3992. R_METAG_ADDR32 = 2
  3993. R_METAG_NONE = 3
  3994. R_METAG_RELBRANCH = 4
  3995. R_METAG_GETSETOFF = 5
  3996. R_METAG_REG32OP1 = 6
  3997. R_METAG_REG32OP2 = 7
  3998. R_METAG_REG32OP3 = 8
  3999. R_METAG_REG16OP1 = 9
  4000. R_METAG_REG16OP2 = 10
  4001. R_METAG_REG16OP3 = 11
  4002. R_METAG_REG32OP4 = 12
  4003. R_METAG_HIOG = 13
  4004. R_METAG_LOOG = 14
  4005. R_METAG_REL8 = 15
  4006. R_METAG_REL16 = 16
  4007. R_METAG_GNU_VTINHERIT = 30
  4008. R_METAG_GNU_VTENTRY = 31
  4009. R_METAG_HI16_GOTOFF = 32
  4010. R_METAG_LO16_GOTOFF = 33
  4011. R_METAG_GETSET_GOTOFF = 34
  4012. R_METAG_GETSET_GOT = 35
  4013. R_METAG_HI16_GOTPC = 36
  4014. R_METAG_LO16_GOTPC = 37
  4015. R_METAG_HI16_PLT = 38
  4016. R_METAG_LO16_PLT = 39
  4017. R_METAG_RELBRANCH_PLT = 40
  4018. R_METAG_GOTOFF = 41
  4019. R_METAG_PLT = 42
  4020. R_METAG_COPY = 43
  4021. R_METAG_JMP_SLOT = 44
  4022. R_METAG_RELATIVE = 45
  4023. R_METAG_GLOB_DAT = 46
  4024. R_METAG_TLS_GD = 47
  4025. R_METAG_TLS_LDM = 48
  4026. R_METAG_TLS_LDO_HI16 = 49
  4027. R_METAG_TLS_LDO_LO16 = 50
  4028. R_METAG_TLS_LDO = 51
  4029. R_METAG_TLS_IE = 52
  4030. R_METAG_TLS_IENONPIC = 53
  4031. R_METAG_TLS_IENONPIC_HI16 = 54
  4032. R_METAG_TLS_IENONPIC_LO16 = 55
  4033. R_METAG_TLS_TPOFF = 56
  4034. R_METAG_TLS_DTPMOD = 57
  4035. R_METAG_TLS_DTPOFF = 58
  4036. R_METAG_TLS_LE = 59
  4037. R_METAG_TLS_LE_HI16 = 60
  4038. R_METAG_TLS_LE_LO16 = 61
  4039. R_NDS32_NONE = 0
  4040. R_NDS32_32_RELA = 20
  4041. R_NDS32_COPY = 39
  4042. R_NDS32_GLOB_DAT = 40
  4043. R_NDS32_JMP_SLOT = 41
  4044. R_NDS32_RELATIVE = 42
  4045. R_NDS32_TLS_TPOFF = 102
  4046. R_NDS32_TLS_DESC = 119
  4047. R_ARC_NONE = 0x0
  4048. R_ARC_8 = 0x1
  4049. R_ARC_16 = 0x2
  4050. R_ARC_24 = 0x3
  4051. R_ARC_32 = 0x4
  4052. R_ARC_B26 = 0x5
  4053. R_ARC_B22_PCREL = 0x6
  4054. R_ARC_H30 = 0x7
  4055. R_ARC_N8 = 0x8
  4056. R_ARC_N16 = 0x9
  4057. R_ARC_N24 = 0xA
  4058. R_ARC_N32 = 0xB
  4059. R_ARC_SDA = 0xC
  4060. R_ARC_SECTOFF = 0xD
  4061. R_ARC_S21H_PCREL = 0xE
  4062. R_ARC_S21W_PCREL = 0xF
  4063. R_ARC_S25H_PCREL = 0x10
  4064. R_ARC_S25W_PCREL = 0x11
  4065. R_ARC_SDA32 = 0x12
  4066. R_ARC_SDA_LDST = 0x13
  4067. R_ARC_SDA_LDST1 = 0x14
  4068. R_ARC_SDA_LDST2 = 0x15
  4069. R_ARC_SDA16_LD = 0x16
  4070. R_ARC_SDA16_LD1 = 0x17
  4071. R_ARC_SDA16_LD2 = 0x18
  4072. R_ARC_S13_PCREL = 0x19
  4073. R_ARC_W = 0x1A
  4074. R_ARC_32_ME = 0x1B
  4075. R_ARC_N32_ME = 0x1C
  4076. R_ARC_SECTOFF_ME = 0x1D
  4077. R_ARC_SDA32_ME = 0x1E
  4078. R_ARC_W_ME = 0x1F
  4079. R_ARC_H30_ME = 0x20
  4080. R_ARC_SECTOFF_U8 = 0x21
  4081. R_ARC_SECTOFF_S9 = 0x22
  4082. R_AC_SECTOFF_U8 = 0x23
  4083. R_AC_SECTOFF_U8_1 = 0x24
  4084. R_AC_SECTOFF_U8_2 = 0x25
  4085. R_AC_SECTOFF_S9 = 0x26
  4086. R_AC_SECTOFF_S9_1 = 0x27
  4087. R_AC_SECTOFF_S9_2 = 0x28
  4088. R_ARC_SECTOFF_ME_1 = 0x29
  4089. R_ARC_SECTOFF_ME_2 = 0x2A
  4090. R_ARC_SECTOFF_1 = 0x2B
  4091. R_ARC_SECTOFF_2 = 0x2C
  4092. R_ARC_PC32 = 0x32
  4093. R_ARC_GOTPC32 = 0x33
  4094. R_ARC_PLT32 = 0x34
  4095. R_ARC_COPY = 0x35
  4096. R_ARC_GLOB_DAT = 0x36
  4097. R_ARC_JUMP_SLOT = 0x37
  4098. R_ARC_RELATIVE = 0x38
  4099. R_ARC_GOTOFF = 0x39
  4100. R_ARC_GOTPC = 0x3A
  4101. R_ARC_GOT32 = 0x3B
  4102. R_ARC_TLS_DTPMOD = 0x42
  4103. R_ARC_TLS_DTPOFF = 0x43
  4104. R_ARC_TLS_TPOFF = 0x44
  4105. R_ARC_TLS_GD_GOT = 0x45
  4106. R_ARC_TLS_GD_LD = 0x46
  4107. R_ARC_TLS_GD_CALL = 0x47
  4108. R_ARC_TLS_IE_GOT = 0x48
  4109. R_ARC_TLS_DTPOFF_S9 = 0x4a
  4110. R_ARC_TLS_LE_S9 = 0x4a
  4111. R_ARC_TLS_LE_32 = 0x4b
  4112. R_OR1K_NONE = 0
  4113. R_OR1K_32 = 1
  4114. R_OR1K_16 = 2
  4115. R_OR1K_8 = 3
  4116. R_OR1K_LO_16_IN_INSN = 4
  4117. R_OR1K_HI_16_IN_INSN = 5
  4118. R_OR1K_INSN_REL_26 = 6
  4119. R_OR1K_GNU_VTENTRY = 7
  4120. R_OR1K_GNU_VTINHERIT = 8
  4121. R_OR1K_32_PCREL = 9
  4122. R_OR1K_16_PCREL = 10
  4123. R_OR1K_8_PCREL = 11
  4124. R_OR1K_GOTPC_HI16 = 12
  4125. R_OR1K_GOTPC_LO16 = 13
  4126. R_OR1K_GOT16 = 14
  4127. R_OR1K_PLT26 = 15
  4128. R_OR1K_GOTOFF_HI16 = 16
  4129. R_OR1K_GOTOFF_LO16 = 17
  4130. R_OR1K_COPY = 18
  4131. R_OR1K_GLOB_DAT = 19
  4132. R_OR1K_JMP_SLOT = 20
  4133. R_OR1K_RELATIVE = 21
  4134. R_OR1K_TLS_GD_HI16 = 22
  4135. R_OR1K_TLS_GD_LO16 = 23
  4136. R_OR1K_TLS_LDM_HI16 = 24
  4137. R_OR1K_TLS_LDM_LO16 = 25
  4138. R_OR1K_TLS_LDO_HI16 = 26
  4139. R_OR1K_TLS_LDO_LO16 = 27
  4140. R_OR1K_TLS_IE_HI16 = 28
  4141. R_OR1K_TLS_IE_LO16 = 29
  4142. R_OR1K_TLS_LE_HI16 = 30
  4143. R_OR1K_TLS_LE_LO16 = 31
  4144. R_OR1K_TLS_TPOFF = 32
  4145. R_OR1K_TLS_DTPOFF = 33
  4146. R_OR1K_TLS_DTPMOD = 34