1
0

relocs.patch 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693
  1. diff -Nur linux-3.11.5.orig/arch/x86/tools/relocs.h linux-3.11.5/arch/x86/tools/relocs.h
  2. --- linux-3.11.5.orig/arch/x86/tools/relocs.h 2013-10-14 03:14:45.000000000 +0200
  3. +++ linux-3.11.5/arch/x86/tools/relocs.h 2013-10-20 17:41:16.000000000 +0200
  4. @@ -9,10 +9,14 @@
  5. #include <string.h>
  6. #include <errno.h>
  7. #include <unistd.h>
  8. +#ifdef __linux__
  9. #include <elf.h>
  10. #include <byteswap.h>
  11. #define USE_BSD
  12. #include <endian.h>
  13. +#else
  14. +#include "elf.h"
  15. +#endif
  16. #include <regex.h>
  17. #include <tools/le_byteshift.h>
  18. diff -Nur linux-3.11.5.orig/tools/include/elf.h linux-3.11.5/tools/include/elf.h
  19. --- linux-3.11.5.orig/tools/include/elf.h 1970-01-01 01:00:00.000000000 +0100
  20. +++ linux-3.11.5/tools/include/elf.h 2013-10-20 17:42:10.000000000 +0200
  21. @@ -0,0 +1,2671 @@
  22. +#ifndef _ELF_H
  23. +#define _ELF_H
  24. +
  25. +#ifdef __cplusplus
  26. +extern "C" {
  27. +#endif
  28. +
  29. +#include <stdint.h>
  30. +
  31. +typedef uint16_t Elf32_Half;
  32. +typedef uint16_t Elf64_Half;
  33. +
  34. +typedef uint32_t Elf32_Word;
  35. +typedef int32_t Elf32_Sword;
  36. +typedef uint32_t Elf64_Word;
  37. +typedef int32_t Elf64_Sword;
  38. +
  39. +typedef uint64_t Elf32_Xword;
  40. +typedef int64_t Elf32_Sxword;
  41. +typedef uint64_t Elf64_Xword;
  42. +typedef int64_t Elf64_Sxword;
  43. +
  44. +typedef uint32_t Elf32_Addr;
  45. +typedef uint64_t Elf64_Addr;
  46. +
  47. +typedef uint32_t Elf32_Off;
  48. +typedef uint64_t Elf64_Off;
  49. +
  50. +typedef uint16_t Elf32_Section;
  51. +typedef uint16_t Elf64_Section;
  52. +
  53. +typedef Elf32_Half Elf32_Versym;
  54. +typedef Elf64_Half Elf64_Versym;
  55. +
  56. +#define EI_NIDENT (16)
  57. +
  58. +typedef struct {
  59. + unsigned char e_ident[EI_NIDENT];
  60. + Elf32_Half e_type;
  61. + Elf32_Half e_machine;
  62. + Elf32_Word e_version;
  63. + Elf32_Addr e_entry;
  64. + Elf32_Off e_phoff;
  65. + Elf32_Off e_shoff;
  66. + Elf32_Word e_flags;
  67. + Elf32_Half e_ehsize;
  68. + Elf32_Half e_phentsize;
  69. + Elf32_Half e_phnum;
  70. + Elf32_Half e_shentsize;
  71. + Elf32_Half e_shnum;
  72. + Elf32_Half e_shstrndx;
  73. +} Elf32_Ehdr;
  74. +
  75. +typedef struct {
  76. + unsigned char e_ident[EI_NIDENT];
  77. + Elf64_Half e_type;
  78. + Elf64_Half e_machine;
  79. + Elf64_Word e_version;
  80. + Elf64_Addr e_entry;
  81. + Elf64_Off e_phoff;
  82. + Elf64_Off e_shoff;
  83. + Elf64_Word e_flags;
  84. + Elf64_Half e_ehsize;
  85. + Elf64_Half e_phentsize;
  86. + Elf64_Half e_phnum;
  87. + Elf64_Half e_shentsize;
  88. + Elf64_Half e_shnum;
  89. + Elf64_Half e_shstrndx;
  90. +} Elf64_Ehdr;
  91. +
  92. +#define EI_MAG0 0
  93. +#define ELFMAG0 0x7f
  94. +
  95. +#define EI_MAG1 1
  96. +#define ELFMAG1 'E'
  97. +
  98. +#define EI_MAG2 2
  99. +#define ELFMAG2 'L'
  100. +
  101. +#define EI_MAG3 3
  102. +#define ELFMAG3 'F'
  103. +
  104. +
  105. +#define ELFMAG "\177ELF"
  106. +#define SELFMAG 4
  107. +
  108. +#define EI_CLASS 4
  109. +#define ELFCLASSNONE 0
  110. +#define ELFCLASS32 1
  111. +#define ELFCLASS64 2
  112. +#define ELFCLASSNUM 3
  113. +
  114. +#define EI_DATA 5
  115. +#define ELFDATANONE 0
  116. +#define ELFDATA2LSB 1
  117. +#define ELFDATA2MSB 2
  118. +#define ELFDATANUM 3
  119. +
  120. +#define EI_VERSION 6
  121. +
  122. +
  123. +#define EI_OSABI 7
  124. +#define ELFOSABI_NONE 0
  125. +#define ELFOSABI_SYSV 0
  126. +#define ELFOSABI_HPUX 1
  127. +#define ELFOSABI_NETBSD 2
  128. +#define ELFOSABI_LINUX 3
  129. +#define ELFOSABI_GNU 3
  130. +#define ELFOSABI_SOLARIS 6
  131. +#define ELFOSABI_AIX 7
  132. +#define ELFOSABI_IRIX 8
  133. +#define ELFOSABI_FREEBSD 9
  134. +#define ELFOSABI_TRU64 10
  135. +#define ELFOSABI_MODESTO 11
  136. +#define ELFOSABI_OPENBSD 12
  137. +#define ELFOSABI_ARM 97
  138. +#define ELFOSABI_STANDALONE 255
  139. +
  140. +#define EI_ABIVERSION 8
  141. +
  142. +#define EI_PAD 9
  143. +
  144. +
  145. +
  146. +#define ET_NONE 0
  147. +#define ET_REL 1
  148. +#define ET_EXEC 2
  149. +#define ET_DYN 3
  150. +#define ET_CORE 4
  151. +#define ET_NUM 5
  152. +#define ET_LOOS 0xfe00
  153. +#define ET_HIOS 0xfeff
  154. +#define ET_LOPROC 0xff00
  155. +#define ET_HIPROC 0xffff
  156. +
  157. +
  158. +
  159. +#define EM_NONE 0
  160. +#define EM_M32 1
  161. +#define EM_SPARC 2
  162. +#define EM_386 3
  163. +#define EM_68K 4
  164. +#define EM_88K 5
  165. +#define EM_860 7
  166. +#define EM_MIPS 8
  167. +#define EM_S370 9
  168. +#define EM_MIPS_RS3_LE 10
  169. +
  170. +#define EM_PARISC 15
  171. +#define EM_VPP500 17
  172. +#define EM_SPARC32PLUS 18
  173. +#define EM_960 19
  174. +#define EM_PPC 20
  175. +#define EM_PPC64 21
  176. +#define EM_S390 22
  177. +
  178. +#define EM_V800 36
  179. +#define EM_FR20 37
  180. +#define EM_RH32 38
  181. +#define EM_RCE 39
  182. +#define EM_ARM 40
  183. +#define EM_FAKE_ALPHA 41
  184. +#define EM_SH 42
  185. +#define EM_SPARCV9 43
  186. +#define EM_TRICORE 44
  187. +#define EM_ARC 45
  188. +#define EM_H8_300 46
  189. +#define EM_H8_300H 47
  190. +#define EM_H8S 48
  191. +#define EM_H8_500 49
  192. +#define EM_IA_64 50
  193. +#define EM_MIPS_X 51
  194. +#define EM_COLDFIRE 52
  195. +#define EM_68HC12 53
  196. +#define EM_MMA 54
  197. +#define EM_PCP 55
  198. +#define EM_NCPU 56
  199. +#define EM_NDR1 57
  200. +#define EM_STARCORE 58
  201. +#define EM_ME16 59
  202. +#define EM_ST100 60
  203. +#define EM_TINYJ 61
  204. +#define EM_X86_64 62
  205. +#define EM_PDSP 63
  206. +
  207. +#define EM_FX66 66
  208. +#define EM_ST9PLUS 67
  209. +#define EM_ST7 68
  210. +#define EM_68HC16 69
  211. +#define EM_68HC11 70
  212. +#define EM_68HC08 71
  213. +#define EM_68HC05 72
  214. +#define EM_SVX 73
  215. +#define EM_ST19 74
  216. +#define EM_VAX 75
  217. +#define EM_CRIS 76
  218. +#define EM_JAVELIN 77
  219. +#define EM_FIREPATH 78
  220. +#define EM_ZSP 79
  221. +#define EM_MMIX 80
  222. +#define EM_HUANY 81
  223. +#define EM_PRISM 82
  224. +#define EM_AVR 83
  225. +#define EM_FR30 84
  226. +#define EM_D10V 85
  227. +#define EM_D30V 86
  228. +#define EM_V850 87
  229. +#define EM_M32R 88
  230. +#define EM_MN10300 89
  231. +#define EM_MN10200 90
  232. +#define EM_PJ 91
  233. +#define EM_OPENRISC 92
  234. +#define EM_ARC_A5 93
  235. +#define EM_XTENSA 94
  236. +#define EM_AARCH64 183
  237. +#define EM_TILEPRO 188
  238. +#define EM_MICROBLAZE 189
  239. +#define EM_TILEGX 191
  240. +#define EM_NUM 192
  241. +#define EM_ALPHA 0x9026
  242. +
  243. +#define EV_NONE 0
  244. +#define EV_CURRENT 1
  245. +#define EV_NUM 2
  246. +
  247. +typedef struct {
  248. + Elf32_Word sh_name;
  249. + Elf32_Word sh_type;
  250. + Elf32_Word sh_flags;
  251. + Elf32_Addr sh_addr;
  252. + Elf32_Off sh_offset;
  253. + Elf32_Word sh_size;
  254. + Elf32_Word sh_link;
  255. + Elf32_Word sh_info;
  256. + Elf32_Word sh_addralign;
  257. + Elf32_Word sh_entsize;
  258. +} Elf32_Shdr;
  259. +
  260. +typedef struct {
  261. + Elf64_Word sh_name;
  262. + Elf64_Word sh_type;
  263. + Elf64_Xword sh_flags;
  264. + Elf64_Addr sh_addr;
  265. + Elf64_Off sh_offset;
  266. + Elf64_Xword sh_size;
  267. + Elf64_Word sh_link;
  268. + Elf64_Word sh_info;
  269. + Elf64_Xword sh_addralign;
  270. + Elf64_Xword sh_entsize;
  271. +} Elf64_Shdr;
  272. +
  273. +
  274. +
  275. +#define SHN_UNDEF 0
  276. +#define SHN_LORESERVE 0xff00
  277. +#define SHN_LOPROC 0xff00
  278. +#define SHN_BEFORE 0xff00
  279. +
  280. +#define SHN_AFTER 0xff01
  281. +
  282. +#define SHN_HIPROC 0xff1f
  283. +#define SHN_LOOS 0xff20
  284. +#define SHN_HIOS 0xff3f
  285. +#define SHN_ABS 0xfff1
  286. +#define SHN_COMMON 0xfff2
  287. +#define SHN_XINDEX 0xffff
  288. +#define SHN_HIRESERVE 0xffff
  289. +
  290. +
  291. +
  292. +#define SHT_NULL 0
  293. +#define SHT_PROGBITS 1
  294. +#define SHT_SYMTAB 2
  295. +#define SHT_STRTAB 3
  296. +#define SHT_RELA 4
  297. +#define SHT_HASH 5
  298. +#define SHT_DYNAMIC 6
  299. +#define SHT_NOTE 7
  300. +#define SHT_NOBITS 8
  301. +#define SHT_REL 9
  302. +#define SHT_SHLIB 10
  303. +#define SHT_DYNSYM 11
  304. +#define SHT_INIT_ARRAY 14
  305. +#define SHT_FINI_ARRAY 15
  306. +#define SHT_PREINIT_ARRAY 16
  307. +#define SHT_GROUP 17
  308. +#define SHT_SYMTAB_SHNDX 18
  309. +#define SHT_NUM 19
  310. +#define SHT_LOOS 0x60000000
  311. +#define SHT_GNU_ATTRIBUTES 0x6ffffff5
  312. +#define SHT_GNU_HASH 0x6ffffff6
  313. +#define SHT_GNU_LIBLIST 0x6ffffff7
  314. +#define SHT_CHECKSUM 0x6ffffff8
  315. +#define SHT_LOSUNW 0x6ffffffa
  316. +#define SHT_SUNW_move 0x6ffffffa
  317. +#define SHT_SUNW_COMDAT 0x6ffffffb
  318. +#define SHT_SUNW_syminfo 0x6ffffffc
  319. +#define SHT_GNU_verdef 0x6ffffffd
  320. +#define SHT_GNU_verneed 0x6ffffffe
  321. +#define SHT_GNU_versym 0x6fffffff
  322. +#define SHT_HISUNW 0x6fffffff
  323. +#define SHT_HIOS 0x6fffffff
  324. +#define SHT_LOPROC 0x70000000
  325. +#define SHT_HIPROC 0x7fffffff
  326. +#define SHT_LOUSER 0x80000000
  327. +#define SHT_HIUSER 0x8fffffff
  328. +
  329. +#define SHF_WRITE (1 << 0)
  330. +#define SHF_ALLOC (1 << 1)
  331. +#define SHF_EXECINSTR (1 << 2)
  332. +#define SHF_MERGE (1 << 4)
  333. +#define SHF_STRINGS (1 << 5)
  334. +#define SHF_INFO_LINK (1 << 6)
  335. +#define SHF_LINK_ORDER (1 << 7)
  336. +#define SHF_OS_NONCONFORMING (1 << 8)
  337. +
  338. +#define SHF_GROUP (1 << 9)
  339. +#define SHF_TLS (1 << 10)
  340. +#define SHF_MASKOS 0x0ff00000
  341. +#define SHF_MASKPROC 0xf0000000
  342. +#define SHF_ORDERED (1 << 30)
  343. +#define SHF_EXCLUDE (1 << 31)
  344. +
  345. +#define GRP_COMDAT 0x1
  346. +
  347. +typedef struct {
  348. + Elf32_Word st_name;
  349. + Elf32_Addr st_value;
  350. + Elf32_Word st_size;
  351. + unsigned char st_info;
  352. + unsigned char st_other;
  353. + Elf32_Section st_shndx;
  354. +} Elf32_Sym;
  355. +
  356. +typedef struct {
  357. + Elf64_Word st_name;
  358. + unsigned char st_info;
  359. + unsigned char st_other;
  360. + Elf64_Section st_shndx;
  361. + Elf64_Addr st_value;
  362. + Elf64_Xword st_size;
  363. +} Elf64_Sym;
  364. +
  365. +typedef struct {
  366. + Elf32_Half si_boundto;
  367. + Elf32_Half si_flags;
  368. +} Elf32_Syminfo;
  369. +
  370. +typedef struct {
  371. + Elf64_Half si_boundto;
  372. + Elf64_Half si_flags;
  373. +} Elf64_Syminfo;
  374. +
  375. +#define SYMINFO_BT_SELF 0xffff
  376. +#define SYMINFO_BT_PARENT 0xfffe
  377. +#define SYMINFO_BT_LOWRESERVE 0xff00
  378. +
  379. +#define SYMINFO_FLG_DIRECT 0x0001
  380. +#define SYMINFO_FLG_PASSTHRU 0x0002
  381. +#define SYMINFO_FLG_COPY 0x0004
  382. +#define SYMINFO_FLG_LAZYLOAD 0x0008
  383. +
  384. +#define SYMINFO_NONE 0
  385. +#define SYMINFO_CURRENT 1
  386. +#define SYMINFO_NUM 2
  387. +
  388. +#define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4)
  389. +#define ELF32_ST_TYPE(val) ((val) & 0xf)
  390. +#define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
  391. +
  392. +#define ELF64_ST_BIND(val) ELF32_ST_BIND (val)
  393. +#define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val)
  394. +#define ELF64_ST_INFO(bind, type) ELF32_ST_INFO ((bind), (type))
  395. +
  396. +#define STB_LOCAL 0
  397. +#define STB_GLOBAL 1
  398. +#define STB_WEAK 2
  399. +#define STB_NUM 3
  400. +#define STB_LOOS 10
  401. +#define STB_GNU_UNIQUE 10
  402. +#define STB_HIOS 12
  403. +#define STB_LOPROC 13
  404. +#define STB_HIPROC 15
  405. +
  406. +#define STT_NOTYPE 0
  407. +#define STT_OBJECT 1
  408. +#define STT_FUNC 2
  409. +#define STT_SECTION 3
  410. +#define STT_FILE 4
  411. +#define STT_COMMON 5
  412. +#define STT_TLS 6
  413. +#define STT_NUM 7
  414. +#define STT_LOOS 10
  415. +#define STT_GNU_IFUNC 10
  416. +#define STT_HIOS 12
  417. +#define STT_LOPROC 13
  418. +#define STT_HIPROC 15
  419. +
  420. +#define STN_UNDEF 0
  421. +
  422. +#define ELF32_ST_VISIBILITY(o) ((o) & 0x03)
  423. +#define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o)
  424. +
  425. +#define STV_DEFAULT 0
  426. +#define STV_INTERNAL 1
  427. +#define STV_HIDDEN 2
  428. +#define STV_PROTECTED 3
  429. +
  430. +
  431. +
  432. +
  433. +typedef struct
  434. +{
  435. + Elf32_Addr r_offset;
  436. + Elf32_Word r_info;
  437. +} Elf32_Rel;
  438. +
  439. +typedef struct {
  440. + Elf64_Addr r_offset;
  441. + Elf64_Xword r_info;
  442. +} Elf64_Rel;
  443. +
  444. +
  445. +
  446. +typedef struct {
  447. + Elf32_Addr r_offset;
  448. + Elf32_Word r_info;
  449. + Elf32_Sword r_addend;
  450. +} Elf32_Rela;
  451. +
  452. +typedef struct {
  453. + Elf64_Addr r_offset;
  454. + Elf64_Xword r_info;
  455. + Elf64_Sxword r_addend;
  456. +} Elf64_Rela;
  457. +
  458. +
  459. +
  460. +#define ELF32_R_SYM(val) ((val) >> 8)
  461. +#define ELF32_R_TYPE(val) ((val) & 0xff)
  462. +#define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))
  463. +
  464. +#define ELF64_R_SYM(i) ((i) >> 32)
  465. +#define ELF64_R_TYPE(i) ((i) & 0xffffffff)
  466. +#define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type))
  467. +
  468. +
  469. +
  470. +typedef struct {
  471. + Elf32_Word p_type;
  472. + Elf32_Off p_offset;
  473. + Elf32_Addr p_vaddr;
  474. + Elf32_Addr p_paddr;
  475. + Elf32_Word p_filesz;
  476. + Elf32_Word p_memsz;
  477. + Elf32_Word p_flags;
  478. + Elf32_Word p_align;
  479. +} Elf32_Phdr;
  480. +
  481. +typedef struct {
  482. + Elf64_Word p_type;
  483. + Elf64_Word p_flags;
  484. + Elf64_Off p_offset;
  485. + Elf64_Addr p_vaddr;
  486. + Elf64_Addr p_paddr;
  487. + Elf64_Xword p_filesz;
  488. + Elf64_Xword p_memsz;
  489. + Elf64_Xword p_align;
  490. +} Elf64_Phdr;
  491. +
  492. +
  493. +
  494. +#define PT_NULL 0
  495. +#define PT_LOAD 1
  496. +#define PT_DYNAMIC 2
  497. +#define PT_INTERP 3
  498. +#define PT_NOTE 4
  499. +#define PT_SHLIB 5
  500. +#define PT_PHDR 6
  501. +#define PT_TLS 7
  502. +#define PT_NUM 8
  503. +#define PT_LOOS 0x60000000
  504. +#define PT_GNU_EH_FRAME 0x6474e550
  505. +#define PT_GNU_STACK 0x6474e551
  506. +#define PT_GNU_RELRO 0x6474e552
  507. +#define PT_LOSUNW 0x6ffffffa
  508. +#define PT_SUNWBSS 0x6ffffffa
  509. +#define PT_SUNWSTACK 0x6ffffffb
  510. +#define PT_HISUNW 0x6fffffff
  511. +#define PT_HIOS 0x6fffffff
  512. +#define PT_LOPROC 0x70000000
  513. +#define PT_HIPROC 0x7fffffff
  514. +
  515. +
  516. +#define PN_XNUM 0xffff
  517. +
  518. +
  519. +#define PF_X (1 << 0)
  520. +#define PF_W (1 << 1)
  521. +#define PF_R (1 << 2)
  522. +#define PF_MASKOS 0x0ff00000
  523. +#define PF_MASKPROC 0xf0000000
  524. +
  525. +
  526. +
  527. +#define NT_PRSTATUS 1
  528. +#define NT_FPREGSET 2
  529. +#define NT_PRPSINFO 3
  530. +#define NT_PRXREG 4
  531. +#define NT_TASKSTRUCT 4
  532. +#define NT_PLATFORM 5
  533. +#define NT_AUXV 6
  534. +#define NT_GWINDOWS 7
  535. +#define NT_ASRS 8
  536. +#define NT_PSTATUS 10
  537. +#define NT_PSINFO 13
  538. +#define NT_PRCRED 14
  539. +#define NT_UTSNAME 15
  540. +#define NT_LWPSTATUS 16
  541. +#define NT_LWPSINFO 17
  542. +#define NT_PRFPXREG 20
  543. +#define NT_SIGINFO 0x53494749
  544. +#define NT_FILE 0x46494c45
  545. +#define NT_PRXFPREG 0x46e62b7f
  546. +#define NT_PPC_VMX 0x100
  547. +#define NT_PPC_SPE 0x101
  548. +#define NT_PPC_VSX 0x102
  549. +#define NT_386_TLS 0x200
  550. +#define NT_386_IOPERM 0x201
  551. +#define NT_X86_XSTATE 0x202
  552. +#define NT_S390_HIGH_GPRS 0x300
  553. +#define NT_S390_TIMER 0x301
  554. +#define NT_S390_TODCMP 0x302
  555. +#define NT_S390_TODPREG 0x303
  556. +#define NT_S390_CTRS 0x304
  557. +#define NT_S390_PREFIX 0x305
  558. +#define NT_S390_LAST_BREAK 0x306
  559. +#define NT_S390_SYSTEM_CALL 0x307
  560. +#define NT_S390_TDB 0x308
  561. +#define NT_ARM_VFP 0x400
  562. +#define NT_ARM_TLS 0x401
  563. +#define NT_ARM_HW_BREAK 0x402
  564. +#define NT_ARM_HW_WATCH 0x403
  565. +#define NT_METAG_CBUF 0x500
  566. +#define NT_METAG_RPIPE 0x501
  567. +#define NT_METAG_TLS 0x502
  568. +#define NT_VERSION 1
  569. +
  570. +
  571. +
  572. +
  573. +typedef struct {
  574. + Elf32_Sword d_tag;
  575. + union {
  576. + Elf32_Word d_val;
  577. + Elf32_Addr d_ptr;
  578. + } d_un;
  579. +} Elf32_Dyn;
  580. +
  581. +typedef struct {
  582. + Elf64_Sxword d_tag;
  583. + union {
  584. + Elf64_Xword d_val;
  585. + Elf64_Addr d_ptr;
  586. + } d_un;
  587. +} Elf64_Dyn;
  588. +
  589. +
  590. +
  591. +#define DT_NULL 0
  592. +#define DT_NEEDED 1
  593. +#define DT_PLTRELSZ 2
  594. +#define DT_PLTGOT 3
  595. +#define DT_HASH 4
  596. +#define DT_STRTAB 5
  597. +#define DT_SYMTAB 6
  598. +#define DT_RELA 7
  599. +#define DT_RELASZ 8
  600. +#define DT_RELAENT 9
  601. +#define DT_STRSZ 10
  602. +#define DT_SYMENT 11
  603. +#define DT_INIT 12
  604. +#define DT_FINI 13
  605. +#define DT_SONAME 14
  606. +#define DT_RPATH 15
  607. +#define DT_SYMBOLIC 16
  608. +#define DT_REL 17
  609. +#define DT_RELSZ 18
  610. +#define DT_RELENT 19
  611. +#define DT_PLTREL 20
  612. +#define DT_DEBUG 21
  613. +#define DT_TEXTREL 22
  614. +#define DT_JMPREL 23
  615. +#define DT_BIND_NOW 24
  616. +#define DT_INIT_ARRAY 25
  617. +#define DT_FINI_ARRAY 26
  618. +#define DT_INIT_ARRAYSZ 27
  619. +#define DT_FINI_ARRAYSZ 28
  620. +#define DT_RUNPATH 29
  621. +#define DT_FLAGS 30
  622. +#define DT_ENCODING 32
  623. +#define DT_PREINIT_ARRAY 32
  624. +#define DT_PREINIT_ARRAYSZ 33
  625. +#define DT_NUM 34
  626. +#define DT_LOOS 0x6000000d
  627. +#define DT_HIOS 0x6ffff000
  628. +#define DT_LOPROC 0x70000000
  629. +#define DT_HIPROC 0x7fffffff
  630. +#define DT_PROCNUM DT_MIPS_NUM
  631. +
  632. +#define DT_VALRNGLO 0x6ffffd00
  633. +#define DT_GNU_PRELINKED 0x6ffffdf5
  634. +#define DT_GNU_CONFLICTSZ 0x6ffffdf6
  635. +#define DT_GNU_LIBLISTSZ 0x6ffffdf7
  636. +#define DT_CHECKSUM 0x6ffffdf8
  637. +#define DT_PLTPADSZ 0x6ffffdf9
  638. +#define DT_MOVEENT 0x6ffffdfa
  639. +#define DT_MOVESZ 0x6ffffdfb
  640. +#define DT_FEATURE_1 0x6ffffdfc
  641. +#define DT_POSFLAG_1 0x6ffffdfd
  642. +
  643. +#define DT_SYMINSZ 0x6ffffdfe
  644. +#define DT_SYMINENT 0x6ffffdff
  645. +#define DT_VALRNGHI 0x6ffffdff
  646. +#define DT_VALTAGIDX(tag) (DT_VALRNGHI - (tag))
  647. +#define DT_VALNUM 12
  648. +
  649. +#define DT_ADDRRNGLO 0x6ffffe00
  650. +#define DT_GNU_HASH 0x6ffffef5
  651. +#define DT_TLSDESC_PLT 0x6ffffef6
  652. +#define DT_TLSDESC_GOT 0x6ffffef7
  653. +#define DT_GNU_CONFLICT 0x6ffffef8
  654. +#define DT_GNU_LIBLIST 0x6ffffef9
  655. +#define DT_CONFIG 0x6ffffefa
  656. +#define DT_DEPAUDIT 0x6ffffefb
  657. +#define DT_AUDIT 0x6ffffefc
  658. +#define DT_PLTPAD 0x6ffffefd
  659. +#define DT_MOVETAB 0x6ffffefe
  660. +#define DT_SYMINFO 0x6ffffeff
  661. +#define DT_ADDRRNGHI 0x6ffffeff
  662. +#define DT_ADDRTAGIDX(tag) (DT_ADDRRNGHI - (tag))
  663. +#define DT_ADDRNUM 11
  664. +
  665. +
  666. +
  667. +#define DT_VERSYM 0x6ffffff0
  668. +
  669. +#define DT_RELACOUNT 0x6ffffff9
  670. +#define DT_RELCOUNT 0x6ffffffa
  671. +
  672. +
  673. +#define DT_FLAGS_1 0x6ffffffb
  674. +#define DT_VERDEF 0x6ffffffc
  675. +
  676. +#define DT_VERDEFNUM 0x6ffffffd
  677. +#define DT_VERNEED 0x6ffffffe
  678. +
  679. +#define DT_VERNEEDNUM 0x6fffffff
  680. +#define DT_VERSIONTAGIDX(tag) (DT_VERNEEDNUM - (tag))
  681. +#define DT_VERSIONTAGNUM 16
  682. +
  683. +
  684. +
  685. +#define DT_AUXILIARY 0x7ffffffd
  686. +#define DT_FILTER 0x7fffffff
  687. +#define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1)
  688. +#define DT_EXTRANUM 3
  689. +
  690. +
  691. +#define DF_ORIGIN 0x00000001
  692. +#define DF_SYMBOLIC 0x00000002
  693. +#define DF_TEXTREL 0x00000004
  694. +#define DF_BIND_NOW 0x00000008
  695. +#define DF_STATIC_TLS 0x00000010
  696. +
  697. +
  698. +
  699. +#define DF_1_NOW 0x00000001
  700. +#define DF_1_GLOBAL 0x00000002
  701. +#define DF_1_GROUP 0x00000004
  702. +#define DF_1_NODELETE 0x00000008
  703. +#define DF_1_LOADFLTR 0x00000010
  704. +#define DF_1_INITFIRST 0x00000020
  705. +#define DF_1_NOOPEN 0x00000040
  706. +#define DF_1_ORIGIN 0x00000080
  707. +#define DF_1_DIRECT 0x00000100
  708. +#define DF_1_TRANS 0x00000200
  709. +#define DF_1_INTERPOSE 0x00000400
  710. +#define DF_1_NODEFLIB 0x00000800
  711. +#define DF_1_NODUMP 0x00001000
  712. +#define DF_1_CONFALT 0x00002000
  713. +#define DF_1_ENDFILTEE 0x00004000
  714. +#define DF_1_DISPRELDNE 0x00008000
  715. +#define DF_1_DISPRELPND 0x00010000
  716. +#define DF_1_NODIRECT 0x00020000
  717. +#define DF_1_IGNMULDEF 0x00040000
  718. +#define DF_1_NOKSYMS 0x00080000
  719. +#define DF_1_NOHDR 0x00100000
  720. +#define DF_1_EDITED 0x00200000
  721. +#define DF_1_NORELOC 0x00400000
  722. +#define DF_1_SYMINTPOSE 0x00800000
  723. +#define DF_1_GLOBAUDIT 0x01000000
  724. +#define DF_1_SINGLETON 0x02000000
  725. +
  726. +#define DTF_1_PARINIT 0x00000001
  727. +#define DTF_1_CONFEXP 0x00000002
  728. +
  729. +
  730. +#define DF_P1_LAZYLOAD 0x00000001
  731. +#define DF_P1_GROUPPERM 0x00000002
  732. +
  733. +
  734. +
  735. +
  736. +typedef struct {
  737. + Elf32_Half vd_version;
  738. + Elf32_Half vd_flags;
  739. + Elf32_Half vd_ndx;
  740. + Elf32_Half vd_cnt;
  741. + Elf32_Word vd_hash;
  742. + Elf32_Word vd_aux;
  743. + Elf32_Word vd_next;
  744. +} Elf32_Verdef;
  745. +
  746. +typedef struct {
  747. + Elf64_Half vd_version;
  748. + Elf64_Half vd_flags;
  749. + Elf64_Half vd_ndx;
  750. + Elf64_Half vd_cnt;
  751. + Elf64_Word vd_hash;
  752. + Elf64_Word vd_aux;
  753. + Elf64_Word vd_next;
  754. +} Elf64_Verdef;
  755. +
  756. +
  757. +
  758. +#define VER_DEF_NONE 0
  759. +#define VER_DEF_CURRENT 1
  760. +#define VER_DEF_NUM 2
  761. +
  762. +
  763. +#define VER_FLG_BASE 0x1
  764. +#define VER_FLG_WEAK 0x2
  765. +
  766. +
  767. +#define VER_NDX_LOCAL 0
  768. +#define VER_NDX_GLOBAL 1
  769. +#define VER_NDX_LORESERVE 0xff00
  770. +#define VER_NDX_ELIMINATE 0xff01
  771. +
  772. +
  773. +
  774. +typedef struct {
  775. + Elf32_Word vda_name;
  776. + Elf32_Word vda_next;
  777. +} Elf32_Verdaux;
  778. +
  779. +typedef struct {
  780. + Elf64_Word vda_name;
  781. + Elf64_Word vda_next;
  782. +} Elf64_Verdaux;
  783. +
  784. +
  785. +
  786. +
  787. +typedef struct {
  788. + Elf32_Half vn_version;
  789. + Elf32_Half vn_cnt;
  790. + Elf32_Word vn_file;
  791. + Elf32_Word vn_aux;
  792. + Elf32_Word vn_next;
  793. +} Elf32_Verneed;
  794. +
  795. +typedef struct {
  796. + Elf64_Half vn_version;
  797. + Elf64_Half vn_cnt;
  798. + Elf64_Word vn_file;
  799. + Elf64_Word vn_aux;
  800. + Elf64_Word vn_next;
  801. +} Elf64_Verneed;
  802. +
  803. +
  804. +
  805. +#define VER_NEED_NONE 0
  806. +#define VER_NEED_CURRENT 1
  807. +#define VER_NEED_NUM 2
  808. +
  809. +
  810. +
  811. +typedef struct {
  812. + Elf32_Word vna_hash;
  813. + Elf32_Half vna_flags;
  814. + Elf32_Half vna_other;
  815. + Elf32_Word vna_name;
  816. + Elf32_Word vna_next;
  817. +} Elf32_Vernaux;
  818. +
  819. +typedef struct {
  820. + Elf64_Word vna_hash;
  821. + Elf64_Half vna_flags;
  822. + Elf64_Half vna_other;
  823. + Elf64_Word vna_name;
  824. + Elf64_Word vna_next;
  825. +} Elf64_Vernaux;
  826. +
  827. +
  828. +
  829. +#define VER_FLG_WEAK 0x2
  830. +
  831. +
  832. +
  833. +typedef struct {
  834. + uint32_t a_type;
  835. + union {
  836. + uint32_t a_val;
  837. + } a_un;
  838. +} Elf32_auxv_t;
  839. +
  840. +typedef struct {
  841. + uint64_t a_type;
  842. + union {
  843. + uint64_t a_val;
  844. + } a_un;
  845. +} Elf64_auxv_t;
  846. +
  847. +
  848. +
  849. +#define AT_NULL 0
  850. +#define AT_IGNORE 1
  851. +#define AT_EXECFD 2
  852. +#define AT_PHDR 3
  853. +#define AT_PHENT 4
  854. +#define AT_PHNUM 5
  855. +#define AT_PAGESZ 6
  856. +#define AT_BASE 7
  857. +#define AT_FLAGS 8
  858. +#define AT_ENTRY 9
  859. +#define AT_NOTELF 10
  860. +#define AT_UID 11
  861. +#define AT_EUID 12
  862. +#define AT_GID 13
  863. +#define AT_EGID 14
  864. +#define AT_CLKTCK 17
  865. +
  866. +
  867. +#define AT_PLATFORM 15
  868. +#define AT_HWCAP 16
  869. +
  870. +
  871. +
  872. +
  873. +#define AT_FPUCW 18
  874. +
  875. +
  876. +#define AT_DCACHEBSIZE 19
  877. +#define AT_ICACHEBSIZE 20
  878. +#define AT_UCACHEBSIZE 21
  879. +
  880. +
  881. +
  882. +#define AT_IGNOREPPC 22
  883. +
  884. +#define AT_SECURE 23
  885. +
  886. +#define AT_BASE_PLATFORM 24
  887. +
  888. +#define AT_RANDOM 25
  889. +
  890. +#define AT_HWCAP2 26
  891. +
  892. +#define AT_EXECFN 31
  893. +
  894. +
  895. +
  896. +#define AT_SYSINFO 32
  897. +#define AT_SYSINFO_EHDR 33
  898. +
  899. +
  900. +
  901. +#define AT_L1I_CACHESHAPE 34
  902. +#define AT_L1D_CACHESHAPE 35
  903. +#define AT_L2_CACHESHAPE 36
  904. +#define AT_L3_CACHESHAPE 37
  905. +
  906. +
  907. +
  908. +
  909. +typedef struct {
  910. + Elf32_Word n_namesz;
  911. + Elf32_Word n_descsz;
  912. + Elf32_Word n_type;
  913. +} Elf32_Nhdr;
  914. +
  915. +typedef struct {
  916. + Elf64_Word n_namesz;
  917. + Elf64_Word n_descsz;
  918. + Elf64_Word n_type;
  919. +} Elf64_Nhdr;
  920. +
  921. +
  922. +
  923. +
  924. +#define ELF_NOTE_SOLARIS "SUNW Solaris"
  925. +
  926. +
  927. +#define ELF_NOTE_GNU "GNU"
  928. +
  929. +
  930. +
  931. +
  932. +
  933. +#define ELF_NOTE_PAGESIZE_HINT 1
  934. +
  935. +
  936. +#define NT_GNU_ABI_TAG 1
  937. +#define ELF_NOTE_ABI NT_GNU_ABI_TAG
  938. +
  939. +
  940. +
  941. +#define ELF_NOTE_OS_LINUX 0
  942. +#define ELF_NOTE_OS_GNU 1
  943. +#define ELF_NOTE_OS_SOLARIS2 2
  944. +#define ELF_NOTE_OS_FREEBSD 3
  945. +
  946. +#define NT_GNU_BUILD_ID 3
  947. +#define NT_GNU_GOLD_VERSION 4
  948. +
  949. +
  950. +
  951. +typedef struct {
  952. + Elf32_Xword m_value;
  953. + Elf32_Word m_info;
  954. + Elf32_Word m_poffset;
  955. + Elf32_Half m_repeat;
  956. + Elf32_Half m_stride;
  957. +} Elf32_Move;
  958. +
  959. +typedef struct {
  960. + Elf64_Xword m_value;
  961. + Elf64_Xword m_info;
  962. + Elf64_Xword m_poffset;
  963. + Elf64_Half m_repeat;
  964. + Elf64_Half m_stride;
  965. +} Elf64_Move;
  966. +
  967. +
  968. +#define ELF32_M_SYM(info) ((info) >> 8)
  969. +#define ELF32_M_SIZE(info) ((unsigned char) (info))
  970. +#define ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char) (size))
  971. +
  972. +#define ELF64_M_SYM(info) ELF32_M_SYM (info)
  973. +#define ELF64_M_SIZE(info) ELF32_M_SIZE (info)
  974. +#define ELF64_M_INFO(sym, size) ELF32_M_INFO (sym, size)
  975. +
  976. +#define EF_CPU32 0x00810000
  977. +
  978. +#define R_68K_NONE 0
  979. +#define R_68K_32 1
  980. +#define R_68K_16 2
  981. +#define R_68K_8 3
  982. +#define R_68K_PC32 4
  983. +#define R_68K_PC16 5
  984. +#define R_68K_PC8 6
  985. +#define R_68K_GOT32 7
  986. +#define R_68K_GOT16 8
  987. +#define R_68K_GOT8 9
  988. +#define R_68K_GOT32O 10
  989. +#define R_68K_GOT16O 11
  990. +#define R_68K_GOT8O 12
  991. +#define R_68K_PLT32 13
  992. +#define R_68K_PLT16 14
  993. +#define R_68K_PLT8 15
  994. +#define R_68K_PLT32O 16
  995. +#define R_68K_PLT16O 17
  996. +#define R_68K_PLT8O 18
  997. +#define R_68K_COPY 19
  998. +#define R_68K_GLOB_DAT 20
  999. +#define R_68K_JMP_SLOT 21
  1000. +#define R_68K_RELATIVE 22
  1001. +#define R_68K_NUM 23
  1002. +
  1003. +#define R_386_NONE 0
  1004. +#define R_386_32 1
  1005. +#define R_386_PC32 2
  1006. +#define R_386_GOT32 3
  1007. +#define R_386_PLT32 4
  1008. +#define R_386_COPY 5
  1009. +#define R_386_GLOB_DAT 6
  1010. +#define R_386_JMP_SLOT 7
  1011. +#define R_386_RELATIVE 8
  1012. +#define R_386_GOTOFF 9
  1013. +#define R_386_GOTPC 10
  1014. +#define R_386_32PLT 11
  1015. +#define R_386_TLS_TPOFF 14
  1016. +#define R_386_TLS_IE 15
  1017. +#define R_386_TLS_GOTIE 16
  1018. +#define R_386_TLS_LE 17
  1019. +#define R_386_TLS_GD 18
  1020. +#define R_386_TLS_LDM 19
  1021. +#define R_386_16 20
  1022. +#define R_386_PC16 21
  1023. +#define R_386_8 22
  1024. +#define R_386_PC8 23
  1025. +#define R_386_TLS_GD_32 24
  1026. +#define R_386_TLS_GD_PUSH 25
  1027. +#define R_386_TLS_GD_CALL 26
  1028. +#define R_386_TLS_GD_POP 27
  1029. +#define R_386_TLS_LDM_32 28
  1030. +#define R_386_TLS_LDM_PUSH 29
  1031. +#define R_386_TLS_LDM_CALL 30
  1032. +#define R_386_TLS_LDM_POP 31
  1033. +#define R_386_TLS_LDO_32 32
  1034. +#define R_386_TLS_IE_32 33
  1035. +#define R_386_TLS_LE_32 34
  1036. +#define R_386_TLS_DTPMOD32 35
  1037. +#define R_386_TLS_DTPOFF32 36
  1038. +#define R_386_TLS_TPOFF32 37
  1039. +#define R_386_SIZE32 38
  1040. +#define R_386_TLS_GOTDESC 39
  1041. +#define R_386_TLS_DESC_CALL 40
  1042. +#define R_386_TLS_DESC 41
  1043. +#define R_386_IRELATIVE 42
  1044. +#define R_386_NUM 43
  1045. +
  1046. +
  1047. +
  1048. +
  1049. +
  1050. +#define STT_SPARC_REGISTER 13
  1051. +
  1052. +
  1053. +
  1054. +#define EF_SPARCV9_MM 3
  1055. +#define EF_SPARCV9_TSO 0
  1056. +#define EF_SPARCV9_PSO 1
  1057. +#define EF_SPARCV9_RMO 2
  1058. +#define EF_SPARC_LEDATA 0x800000
  1059. +#define EF_SPARC_EXT_MASK 0xFFFF00
  1060. +#define EF_SPARC_32PLUS 0x000100
  1061. +#define EF_SPARC_SUN_US1 0x000200
  1062. +#define EF_SPARC_HAL_R1 0x000400
  1063. +#define EF_SPARC_SUN_US3 0x000800
  1064. +
  1065. +
  1066. +
  1067. +#define R_SPARC_NONE 0
  1068. +#define R_SPARC_8 1
  1069. +#define R_SPARC_16 2
  1070. +#define R_SPARC_32 3
  1071. +#define R_SPARC_DISP8 4
  1072. +#define R_SPARC_DISP16 5
  1073. +#define R_SPARC_DISP32 6
  1074. +#define R_SPARC_WDISP30 7
  1075. +#define R_SPARC_WDISP22 8
  1076. +#define R_SPARC_HI22 9
  1077. +#define R_SPARC_22 10
  1078. +#define R_SPARC_13 11
  1079. +#define R_SPARC_LO10 12
  1080. +#define R_SPARC_GOT10 13
  1081. +#define R_SPARC_GOT13 14
  1082. +#define R_SPARC_GOT22 15
  1083. +#define R_SPARC_PC10 16
  1084. +#define R_SPARC_PC22 17
  1085. +#define R_SPARC_WPLT30 18
  1086. +#define R_SPARC_COPY 19
  1087. +#define R_SPARC_GLOB_DAT 20
  1088. +#define R_SPARC_JMP_SLOT 21
  1089. +#define R_SPARC_RELATIVE 22
  1090. +#define R_SPARC_UA32 23
  1091. +
  1092. +
  1093. +
  1094. +#define R_SPARC_PLT32 24
  1095. +#define R_SPARC_HIPLT22 25
  1096. +#define R_SPARC_LOPLT10 26
  1097. +#define R_SPARC_PCPLT32 27
  1098. +#define R_SPARC_PCPLT22 28
  1099. +#define R_SPARC_PCPLT10 29
  1100. +#define R_SPARC_10 30
  1101. +#define R_SPARC_11 31
  1102. +#define R_SPARC_64 32
  1103. +#define R_SPARC_OLO10 33
  1104. +#define R_SPARC_HH22 34
  1105. +#define R_SPARC_HM10 35
  1106. +#define R_SPARC_LM22 36
  1107. +#define R_SPARC_PC_HH22 37
  1108. +#define R_SPARC_PC_HM10 38
  1109. +#define R_SPARC_PC_LM22 39
  1110. +#define R_SPARC_WDISP16 40
  1111. +#define R_SPARC_WDISP19 41
  1112. +#define R_SPARC_GLOB_JMP 42
  1113. +#define R_SPARC_7 43
  1114. +#define R_SPARC_5 44
  1115. +#define R_SPARC_6 45
  1116. +#define R_SPARC_DISP64 46
  1117. +#define R_SPARC_PLT64 47
  1118. +#define R_SPARC_HIX22 48
  1119. +#define R_SPARC_LOX10 49
  1120. +#define R_SPARC_H44 50
  1121. +#define R_SPARC_M44 51
  1122. +#define R_SPARC_L44 52
  1123. +#define R_SPARC_REGISTER 53
  1124. +#define R_SPARC_UA64 54
  1125. +#define R_SPARC_UA16 55
  1126. +#define R_SPARC_TLS_GD_HI22 56
  1127. +#define R_SPARC_TLS_GD_LO10 57
  1128. +#define R_SPARC_TLS_GD_ADD 58
  1129. +#define R_SPARC_TLS_GD_CALL 59
  1130. +#define R_SPARC_TLS_LDM_HI22 60
  1131. +#define R_SPARC_TLS_LDM_LO10 61
  1132. +#define R_SPARC_TLS_LDM_ADD 62
  1133. +#define R_SPARC_TLS_LDM_CALL 63
  1134. +#define R_SPARC_TLS_LDO_HIX22 64
  1135. +#define R_SPARC_TLS_LDO_LOX10 65
  1136. +#define R_SPARC_TLS_LDO_ADD 66
  1137. +#define R_SPARC_TLS_IE_HI22 67
  1138. +#define R_SPARC_TLS_IE_LO10 68
  1139. +#define R_SPARC_TLS_IE_LD 69
  1140. +#define R_SPARC_TLS_IE_LDX 70
  1141. +#define R_SPARC_TLS_IE_ADD 71
  1142. +#define R_SPARC_TLS_LE_HIX22 72
  1143. +#define R_SPARC_TLS_LE_LOX10 73
  1144. +#define R_SPARC_TLS_DTPMOD32 74
  1145. +#define R_SPARC_TLS_DTPMOD64 75
  1146. +#define R_SPARC_TLS_DTPOFF32 76
  1147. +#define R_SPARC_TLS_DTPOFF64 77
  1148. +#define R_SPARC_TLS_TPOFF32 78
  1149. +#define R_SPARC_TLS_TPOFF64 79
  1150. +#define R_SPARC_GOTDATA_HIX22 80
  1151. +#define R_SPARC_GOTDATA_LOX10 81
  1152. +#define R_SPARC_GOTDATA_OP_HIX22 82
  1153. +#define R_SPARC_GOTDATA_OP_LOX10 83
  1154. +#define R_SPARC_GOTDATA_OP 84
  1155. +#define R_SPARC_H34 85
  1156. +#define R_SPARC_SIZE32 86
  1157. +#define R_SPARC_SIZE64 87
  1158. +#define R_SPARC_GNU_VTINHERIT 250
  1159. +#define R_SPARC_GNU_VTENTRY 251
  1160. +#define R_SPARC_REV32 252
  1161. +
  1162. +#define R_SPARC_NUM 253
  1163. +
  1164. +
  1165. +
  1166. +#define DT_SPARC_REGISTER 0x70000001
  1167. +#define DT_SPARC_NUM 2
  1168. +
  1169. +
  1170. +#define EF_MIPS_NOREORDER 1
  1171. +#define EF_MIPS_PIC 2
  1172. +#define EF_MIPS_CPIC 4
  1173. +#define EF_MIPS_XGOT 8
  1174. +#define EF_MIPS_64BIT_WHIRL 16
  1175. +#define EF_MIPS_ABI2 32
  1176. +#define EF_MIPS_ABI_ON32 64
  1177. +#define EF_MIPS_ARCH 0xf0000000
  1178. +
  1179. +
  1180. +
  1181. +#define EF_MIPS_ARCH_1 0x00000000
  1182. +#define EF_MIPS_ARCH_2 0x10000000
  1183. +#define EF_MIPS_ARCH_3 0x20000000
  1184. +#define EF_MIPS_ARCH_4 0x30000000
  1185. +#define EF_MIPS_ARCH_5 0x40000000
  1186. +#define EF_MIPS_ARCH_32 0x50000000
  1187. +#define EF_MIPS_ARCH_64 0x60000000
  1188. +#define EF_MIPS_ARCH_32R2 0x70000000
  1189. +#define EF_MIPS_ARCH_64R2 0x80000000
  1190. +
  1191. +
  1192. +#define E_MIPS_ARCH_1 0x00000000
  1193. +#define E_MIPS_ARCH_2 0x10000000
  1194. +#define E_MIPS_ARCH_3 0x20000000
  1195. +#define E_MIPS_ARCH_4 0x30000000
  1196. +#define E_MIPS_ARCH_5 0x40000000
  1197. +#define E_MIPS_ARCH_32 0x50000000
  1198. +#define E_MIPS_ARCH_64 0x60000000
  1199. +
  1200. +
  1201. +
  1202. +#define SHN_MIPS_ACOMMON 0xff00
  1203. +#define SHN_MIPS_TEXT 0xff01
  1204. +#define SHN_MIPS_DATA 0xff02
  1205. +#define SHN_MIPS_SCOMMON 0xff03
  1206. +#define SHN_MIPS_SUNDEFINED 0xff04
  1207. +
  1208. +
  1209. +
  1210. +#define SHT_MIPS_LIBLIST 0x70000000
  1211. +#define SHT_MIPS_MSYM 0x70000001
  1212. +#define SHT_MIPS_CONFLICT 0x70000002
  1213. +#define SHT_MIPS_GPTAB 0x70000003
  1214. +#define SHT_MIPS_UCODE 0x70000004
  1215. +#define SHT_MIPS_DEBUG 0x70000005
  1216. +#define SHT_MIPS_REGINFO 0x70000006
  1217. +#define SHT_MIPS_PACKAGE 0x70000007
  1218. +#define SHT_MIPS_PACKSYM 0x70000008
  1219. +#define SHT_MIPS_RELD 0x70000009
  1220. +#define SHT_MIPS_IFACE 0x7000000b
  1221. +#define SHT_MIPS_CONTENT 0x7000000c
  1222. +#define SHT_MIPS_OPTIONS 0x7000000d
  1223. +#define SHT_MIPS_SHDR 0x70000010
  1224. +#define SHT_MIPS_FDESC 0x70000011
  1225. +#define SHT_MIPS_EXTSYM 0x70000012
  1226. +#define SHT_MIPS_DENSE 0x70000013
  1227. +#define SHT_MIPS_PDESC 0x70000014
  1228. +#define SHT_MIPS_LOCSYM 0x70000015
  1229. +#define SHT_MIPS_AUXSYM 0x70000016
  1230. +#define SHT_MIPS_OPTSYM 0x70000017
  1231. +#define SHT_MIPS_LOCSTR 0x70000018
  1232. +#define SHT_MIPS_LINE 0x70000019
  1233. +#define SHT_MIPS_RFDESC 0x7000001a
  1234. +#define SHT_MIPS_DELTASYM 0x7000001b
  1235. +#define SHT_MIPS_DELTAINST 0x7000001c
  1236. +#define SHT_MIPS_DELTACLASS 0x7000001d
  1237. +#define SHT_MIPS_DWARF 0x7000001e
  1238. +#define SHT_MIPS_DELTADECL 0x7000001f
  1239. +#define SHT_MIPS_SYMBOL_LIB 0x70000020
  1240. +#define SHT_MIPS_EVENTS 0x70000021
  1241. +#define SHT_MIPS_TRANSLATE 0x70000022
  1242. +#define SHT_MIPS_PIXIE 0x70000023
  1243. +#define SHT_MIPS_XLATE 0x70000024
  1244. +#define SHT_MIPS_XLATE_DEBUG 0x70000025
  1245. +#define SHT_MIPS_WHIRL 0x70000026
  1246. +#define SHT_MIPS_EH_REGION 0x70000027
  1247. +#define SHT_MIPS_XLATE_OLD 0x70000028
  1248. +#define SHT_MIPS_PDR_EXCEPTION 0x70000029
  1249. +
  1250. +
  1251. +
  1252. +#define SHF_MIPS_GPREL 0x10000000
  1253. +#define SHF_MIPS_MERGE 0x20000000
  1254. +#define SHF_MIPS_ADDR 0x40000000
  1255. +#define SHF_MIPS_STRINGS 0x80000000
  1256. +#define SHF_MIPS_NOSTRIP 0x08000000
  1257. +#define SHF_MIPS_LOCAL 0x04000000
  1258. +#define SHF_MIPS_NAMES 0x02000000
  1259. +#define SHF_MIPS_NODUPE 0x01000000
  1260. +
  1261. +
  1262. +
  1263. +
  1264. +
  1265. +#define STO_MIPS_DEFAULT 0x0
  1266. +#define STO_MIPS_INTERNAL 0x1
  1267. +#define STO_MIPS_HIDDEN 0x2
  1268. +#define STO_MIPS_PROTECTED 0x3
  1269. +#define STO_MIPS_PLT 0x8
  1270. +#define STO_MIPS_SC_ALIGN_UNUSED 0xff
  1271. +
  1272. +
  1273. +#define STB_MIPS_SPLIT_COMMON 13
  1274. +
  1275. +
  1276. +
  1277. +typedef union {
  1278. + struct {
  1279. + Elf32_Word gt_current_g_value;
  1280. + Elf32_Word gt_unused;
  1281. + } gt_header;
  1282. + struct {
  1283. + Elf32_Word gt_g_value;
  1284. + Elf32_Word gt_bytes;
  1285. + } gt_entry;
  1286. +} Elf32_gptab;
  1287. +
  1288. +
  1289. +
  1290. +typedef struct {
  1291. + Elf32_Word ri_gprmask;
  1292. + Elf32_Word ri_cprmask[4];
  1293. + Elf32_Sword ri_gp_value;
  1294. +} Elf32_RegInfo;
  1295. +
  1296. +
  1297. +
  1298. +typedef struct {
  1299. + unsigned char kind;
  1300. +
  1301. + unsigned char size;
  1302. + Elf32_Section section;
  1303. +
  1304. + Elf32_Word info;
  1305. +} Elf_Options;
  1306. +
  1307. +
  1308. +
  1309. +#define ODK_NULL 0
  1310. +#define ODK_REGINFO 1
  1311. +#define ODK_EXCEPTIONS 2
  1312. +#define ODK_PAD 3
  1313. +#define ODK_HWPATCH 4
  1314. +#define ODK_FILL 5
  1315. +#define ODK_TAGS 6
  1316. +#define ODK_HWAND 7
  1317. +#define ODK_HWOR 8
  1318. +
  1319. +
  1320. +
  1321. +#define OEX_FPU_MIN 0x1f
  1322. +#define OEX_FPU_MAX 0x1f00
  1323. +#define OEX_PAGE0 0x10000
  1324. +#define OEX_SMM 0x20000
  1325. +#define OEX_FPDBUG 0x40000
  1326. +#define OEX_PRECISEFP OEX_FPDBUG
  1327. +#define OEX_DISMISS 0x80000
  1328. +
  1329. +#define OEX_FPU_INVAL 0x10
  1330. +#define OEX_FPU_DIV0 0x08
  1331. +#define OEX_FPU_OFLO 0x04
  1332. +#define OEX_FPU_UFLO 0x02
  1333. +#define OEX_FPU_INEX 0x01
  1334. +
  1335. +
  1336. +
  1337. +#define OHW_R4KEOP 0x1
  1338. +#define OHW_R8KPFETCH 0x2
  1339. +#define OHW_R5KEOP 0x4
  1340. +#define OHW_R5KCVTL 0x8
  1341. +
  1342. +#define OPAD_PREFIX 0x1
  1343. +#define OPAD_POSTFIX 0x2
  1344. +#define OPAD_SYMBOL 0x4
  1345. +
  1346. +
  1347. +
  1348. +typedef struct {
  1349. + Elf32_Word hwp_flags1;
  1350. + Elf32_Word hwp_flags2;
  1351. +} Elf_Options_Hw;
  1352. +
  1353. +
  1354. +
  1355. +#define OHWA0_R4KEOP_CHECKED 0x00000001
  1356. +#define OHWA1_R4KEOP_CLEAN 0x00000002
  1357. +
  1358. +
  1359. +
  1360. +#define R_MIPS_NONE 0
  1361. +#define R_MIPS_16 1
  1362. +#define R_MIPS_32 2
  1363. +#define R_MIPS_REL32 3
  1364. +#define R_MIPS_26 4
  1365. +#define R_MIPS_HI16 5
  1366. +#define R_MIPS_LO16 6
  1367. +#define R_MIPS_GPREL16 7
  1368. +#define R_MIPS_LITERAL 8
  1369. +#define R_MIPS_GOT16 9
  1370. +#define R_MIPS_PC16 10
  1371. +#define R_MIPS_CALL16 11
  1372. +#define R_MIPS_GPREL32 12
  1373. +
  1374. +#define R_MIPS_SHIFT5 16
  1375. +#define R_MIPS_SHIFT6 17
  1376. +#define R_MIPS_64 18
  1377. +#define R_MIPS_GOT_DISP 19
  1378. +#define R_MIPS_GOT_PAGE 20
  1379. +#define R_MIPS_GOT_OFST 21
  1380. +#define R_MIPS_GOT_HI16 22
  1381. +#define R_MIPS_GOT_LO16 23
  1382. +#define R_MIPS_SUB 24
  1383. +#define R_MIPS_INSERT_A 25
  1384. +#define R_MIPS_INSERT_B 26
  1385. +#define R_MIPS_DELETE 27
  1386. +#define R_MIPS_HIGHER 28
  1387. +#define R_MIPS_HIGHEST 29
  1388. +#define R_MIPS_CALL_HI16 30
  1389. +#define R_MIPS_CALL_LO16 31
  1390. +#define R_MIPS_SCN_DISP 32
  1391. +#define R_MIPS_REL16 33
  1392. +#define R_MIPS_ADD_IMMEDIATE 34
  1393. +#define R_MIPS_PJUMP 35
  1394. +#define R_MIPS_RELGOT 36
  1395. +#define R_MIPS_JALR 37
  1396. +#define R_MIPS_TLS_DTPMOD32 38
  1397. +#define R_MIPS_TLS_DTPREL32 39
  1398. +#define R_MIPS_TLS_DTPMOD64 40
  1399. +#define R_MIPS_TLS_DTPREL64 41
  1400. +#define R_MIPS_TLS_GD 42
  1401. +#define R_MIPS_TLS_LDM 43
  1402. +#define R_MIPS_TLS_DTPREL_HI16 44
  1403. +#define R_MIPS_TLS_DTPREL_LO16 45
  1404. +#define R_MIPS_TLS_GOTTPREL 46
  1405. +#define R_MIPS_TLS_TPREL32 47
  1406. +#define R_MIPS_TLS_TPREL64 48
  1407. +#define R_MIPS_TLS_TPREL_HI16 49
  1408. +#define R_MIPS_TLS_TPREL_LO16 50
  1409. +#define R_MIPS_GLOB_DAT 51
  1410. +#define R_MIPS_COPY 126
  1411. +#define R_MIPS_JUMP_SLOT 127
  1412. +
  1413. +#define R_MIPS_NUM 128
  1414. +
  1415. +
  1416. +
  1417. +#define PT_MIPS_REGINFO 0x70000000
  1418. +#define PT_MIPS_RTPROC 0x70000001
  1419. +#define PT_MIPS_OPTIONS 0x70000002
  1420. +
  1421. +
  1422. +
  1423. +#define PF_MIPS_LOCAL 0x10000000
  1424. +
  1425. +
  1426. +
  1427. +#define DT_MIPS_RLD_VERSION 0x70000001
  1428. +#define DT_MIPS_TIME_STAMP 0x70000002
  1429. +#define DT_MIPS_ICHECKSUM 0x70000003
  1430. +#define DT_MIPS_IVERSION 0x70000004
  1431. +#define DT_MIPS_FLAGS 0x70000005
  1432. +#define DT_MIPS_BASE_ADDRESS 0x70000006
  1433. +#define DT_MIPS_MSYM 0x70000007
  1434. +#define DT_MIPS_CONFLICT 0x70000008
  1435. +#define DT_MIPS_LIBLIST 0x70000009
  1436. +#define DT_MIPS_LOCAL_GOTNO 0x7000000a
  1437. +#define DT_MIPS_CONFLICTNO 0x7000000b
  1438. +#define DT_MIPS_LIBLISTNO 0x70000010
  1439. +#define DT_MIPS_SYMTABNO 0x70000011
  1440. +#define DT_MIPS_UNREFEXTNO 0x70000012
  1441. +#define DT_MIPS_GOTSYM 0x70000013
  1442. +#define DT_MIPS_HIPAGENO 0x70000014
  1443. +#define DT_MIPS_RLD_MAP 0x70000016
  1444. +#define DT_MIPS_DELTA_CLASS 0x70000017
  1445. +#define DT_MIPS_DELTA_CLASS_NO 0x70000018
  1446. +
  1447. +#define DT_MIPS_DELTA_INSTANCE 0x70000019
  1448. +#define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a
  1449. +
  1450. +#define DT_MIPS_DELTA_RELOC 0x7000001b
  1451. +#define DT_MIPS_DELTA_RELOC_NO 0x7000001c
  1452. +
  1453. +#define DT_MIPS_DELTA_SYM 0x7000001d
  1454. +
  1455. +#define DT_MIPS_DELTA_SYM_NO 0x7000001e
  1456. +
  1457. +#define DT_MIPS_DELTA_CLASSSYM 0x70000020
  1458. +
  1459. +#define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021
  1460. +
  1461. +#define DT_MIPS_CXX_FLAGS 0x70000022
  1462. +#define DT_MIPS_PIXIE_INIT 0x70000023
  1463. +#define DT_MIPS_SYMBOL_LIB 0x70000024
  1464. +#define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025
  1465. +#define DT_MIPS_LOCAL_GOTIDX 0x70000026
  1466. +#define DT_MIPS_HIDDEN_GOTIDX 0x70000027
  1467. +#define DT_MIPS_PROTECTED_GOTIDX 0x70000028
  1468. +#define DT_MIPS_OPTIONS 0x70000029
  1469. +#define DT_MIPS_INTERFACE 0x7000002a
  1470. +#define DT_MIPS_DYNSTR_ALIGN 0x7000002b
  1471. +#define DT_MIPS_INTERFACE_SIZE 0x7000002c
  1472. +#define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d
  1473. +
  1474. +#define DT_MIPS_PERF_SUFFIX 0x7000002e
  1475. +
  1476. +#define DT_MIPS_COMPACT_SIZE 0x7000002f
  1477. +#define DT_MIPS_GP_VALUE 0x70000030
  1478. +#define DT_MIPS_AUX_DYNAMIC 0x70000031
  1479. +
  1480. +#define DT_MIPS_PLTGOT 0x70000032
  1481. +
  1482. +#define DT_MIPS_RWPLT 0x70000034
  1483. +#define DT_MIPS_NUM 0x35
  1484. +
  1485. +
  1486. +
  1487. +#define RHF_NONE 0
  1488. +#define RHF_QUICKSTART (1 << 0)
  1489. +#define RHF_NOTPOT (1 << 1)
  1490. +#define RHF_NO_LIBRARY_REPLACEMENT (1 << 2)
  1491. +#define RHF_NO_MOVE (1 << 3)
  1492. +#define RHF_SGI_ONLY (1 << 4)
  1493. +#define RHF_GUARANTEE_INIT (1 << 5)
  1494. +#define RHF_DELTA_C_PLUS_PLUS (1 << 6)
  1495. +#define RHF_GUARANTEE_START_INIT (1 << 7)
  1496. +#define RHF_PIXIE (1 << 8)
  1497. +#define RHF_DEFAULT_DELAY_LOAD (1 << 9)
  1498. +#define RHF_REQUICKSTART (1 << 10)
  1499. +#define RHF_REQUICKSTARTED (1 << 11)
  1500. +#define RHF_CORD (1 << 12)
  1501. +#define RHF_NO_UNRES_UNDEF (1 << 13)
  1502. +#define RHF_RLD_ORDER_SAFE (1 << 14)
  1503. +
  1504. +
  1505. +
  1506. +typedef struct
  1507. +{
  1508. + Elf32_Word l_name;
  1509. + Elf32_Word l_time_stamp;
  1510. + Elf32_Word l_checksum;
  1511. + Elf32_Word l_version;
  1512. + Elf32_Word l_flags;
  1513. +} Elf32_Lib;
  1514. +
  1515. +typedef struct
  1516. +{
  1517. + Elf64_Word l_name;
  1518. + Elf64_Word l_time_stamp;
  1519. + Elf64_Word l_checksum;
  1520. + Elf64_Word l_version;
  1521. + Elf64_Word l_flags;
  1522. +} Elf64_Lib;
  1523. +
  1524. +
  1525. +
  1526. +
  1527. +#define LL_NONE 0
  1528. +#define LL_EXACT_MATCH (1 << 0)
  1529. +#define LL_IGNORE_INT_VER (1 << 1)
  1530. +#define LL_REQUIRE_MINOR (1 << 2)
  1531. +#define LL_EXPORTS (1 << 3)
  1532. +#define LL_DELAY_LOAD (1 << 4)
  1533. +#define LL_DELTA (1 << 5)
  1534. +
  1535. +
  1536. +
  1537. +typedef Elf32_Addr Elf32_Conflict;
  1538. +
  1539. +
  1540. +
  1541. +
  1542. +
  1543. +
  1544. +#define EF_PARISC_TRAPNIL 0x00010000
  1545. +#define EF_PARISC_EXT 0x00020000
  1546. +#define EF_PARISC_LSB 0x00040000
  1547. +#define EF_PARISC_WIDE 0x00080000
  1548. +#define EF_PARISC_NO_KABP 0x00100000
  1549. +
  1550. +#define EF_PARISC_LAZYSWAP 0x00400000
  1551. +#define EF_PARISC_ARCH 0x0000ffff
  1552. +
  1553. +
  1554. +
  1555. +#define EFA_PARISC_1_0 0x020b
  1556. +#define EFA_PARISC_1_1 0x0210
  1557. +#define EFA_PARISC_2_0 0x0214
  1558. +
  1559. +
  1560. +
  1561. +#define SHN_PARISC_ANSI_COMMON 0xff00
  1562. +
  1563. +#define SHN_PARISC_HUGE_COMMON 0xff01
  1564. +
  1565. +
  1566. +
  1567. +#define SHT_PARISC_EXT 0x70000000
  1568. +#define SHT_PARISC_UNWIND 0x70000001
  1569. +#define SHT_PARISC_DOC 0x70000002
  1570. +
  1571. +
  1572. +
  1573. +#define SHF_PARISC_SHORT 0x20000000
  1574. +#define SHF_PARISC_HUGE 0x40000000
  1575. +#define SHF_PARISC_SBP 0x80000000
  1576. +
  1577. +
  1578. +
  1579. +#define STT_PARISC_MILLICODE 13
  1580. +
  1581. +#define STT_HP_OPAQUE (STT_LOOS + 0x1)
  1582. +#define STT_HP_STUB (STT_LOOS + 0x2)
  1583. +
  1584. +
  1585. +
  1586. +#define R_PARISC_NONE 0
  1587. +#define R_PARISC_DIR32 1
  1588. +#define R_PARISC_DIR21L 2
  1589. +#define R_PARISC_DIR17R 3
  1590. +#define R_PARISC_DIR17F 4
  1591. +#define R_PARISC_DIR14R 6
  1592. +#define R_PARISC_PCREL32 9
  1593. +#define R_PARISC_PCREL21L 10
  1594. +#define R_PARISC_PCREL17R 11
  1595. +#define R_PARISC_PCREL17F 12
  1596. +#define R_PARISC_PCREL14R 14
  1597. +#define R_PARISC_DPREL21L 18
  1598. +#define R_PARISC_DPREL14R 22
  1599. +#define R_PARISC_GPREL21L 26
  1600. +#define R_PARISC_GPREL14R 30
  1601. +#define R_PARISC_LTOFF21L 34
  1602. +#define R_PARISC_LTOFF14R 38
  1603. +#define R_PARISC_SECREL32 41
  1604. +#define R_PARISC_SEGBASE 48
  1605. +#define R_PARISC_SEGREL32 49
  1606. +#define R_PARISC_PLTOFF21L 50
  1607. +#define R_PARISC_PLTOFF14R 54
  1608. +#define R_PARISC_LTOFF_FPTR32 57
  1609. +#define R_PARISC_LTOFF_FPTR21L 58
  1610. +#define R_PARISC_LTOFF_FPTR14R 62
  1611. +#define R_PARISC_FPTR64 64
  1612. +#define R_PARISC_PLABEL32 65
  1613. +#define R_PARISC_PLABEL21L 66
  1614. +#define R_PARISC_PLABEL14R 70
  1615. +#define R_PARISC_PCREL64 72
  1616. +#define R_PARISC_PCREL22F 74
  1617. +#define R_PARISC_PCREL14WR 75
  1618. +#define R_PARISC_PCREL14DR 76
  1619. +#define R_PARISC_PCREL16F 77
  1620. +#define R_PARISC_PCREL16WF 78
  1621. +#define R_PARISC_PCREL16DF 79
  1622. +#define R_PARISC_DIR64 80
  1623. +#define R_PARISC_DIR14WR 83
  1624. +#define R_PARISC_DIR14DR 84
  1625. +#define R_PARISC_DIR16F 85
  1626. +#define R_PARISC_DIR16WF 86
  1627. +#define R_PARISC_DIR16DF 87
  1628. +#define R_PARISC_GPREL64 88
  1629. +#define R_PARISC_GPREL14WR 91
  1630. +#define R_PARISC_GPREL14DR 92
  1631. +#define R_PARISC_GPREL16F 93
  1632. +#define R_PARISC_GPREL16WF 94
  1633. +#define R_PARISC_GPREL16DF 95
  1634. +#define R_PARISC_LTOFF64 96
  1635. +#define R_PARISC_LTOFF14WR 99
  1636. +#define R_PARISC_LTOFF14DR 100
  1637. +#define R_PARISC_LTOFF16F 101
  1638. +#define R_PARISC_LTOFF16WF 102
  1639. +#define R_PARISC_LTOFF16DF 103
  1640. +#define R_PARISC_SECREL64 104
  1641. +#define R_PARISC_SEGREL64 112
  1642. +#define R_PARISC_PLTOFF14WR 115
  1643. +#define R_PARISC_PLTOFF14DR 116
  1644. +#define R_PARISC_PLTOFF16F 117
  1645. +#define R_PARISC_PLTOFF16WF 118
  1646. +#define R_PARISC_PLTOFF16DF 119
  1647. +#define R_PARISC_LTOFF_FPTR64 120
  1648. +#define R_PARISC_LTOFF_FPTR14WR 123
  1649. +#define R_PARISC_LTOFF_FPTR14DR 124
  1650. +#define R_PARISC_LTOFF_FPTR16F 125
  1651. +#define R_PARISC_LTOFF_FPTR16WF 126
  1652. +#define R_PARISC_LTOFF_FPTR16DF 127
  1653. +#define R_PARISC_LORESERVE 128
  1654. +#define R_PARISC_COPY 128
  1655. +#define R_PARISC_IPLT 129
  1656. +#define R_PARISC_EPLT 130
  1657. +#define R_PARISC_TPREL32 153
  1658. +#define R_PARISC_TPREL21L 154
  1659. +#define R_PARISC_TPREL14R 158
  1660. +#define R_PARISC_LTOFF_TP21L 162
  1661. +#define R_PARISC_LTOFF_TP14R 166
  1662. +#define R_PARISC_LTOFF_TP14F 167
  1663. +#define R_PARISC_TPREL64 216
  1664. +#define R_PARISC_TPREL14WR 219
  1665. +#define R_PARISC_TPREL14DR 220
  1666. +#define R_PARISC_TPREL16F 221
  1667. +#define R_PARISC_TPREL16WF 222
  1668. +#define R_PARISC_TPREL16DF 223
  1669. +#define R_PARISC_LTOFF_TP64 224
  1670. +#define R_PARISC_LTOFF_TP14WR 227
  1671. +#define R_PARISC_LTOFF_TP14DR 228
  1672. +#define R_PARISC_LTOFF_TP16F 229
  1673. +#define R_PARISC_LTOFF_TP16WF 230
  1674. +#define R_PARISC_LTOFF_TP16DF 231
  1675. +#define R_PARISC_GNU_VTENTRY 232
  1676. +#define R_PARISC_GNU_VTINHERIT 233
  1677. +#define R_PARISC_TLS_GD21L 234
  1678. +#define R_PARISC_TLS_GD14R 235
  1679. +#define R_PARISC_TLS_GDCALL 236
  1680. +#define R_PARISC_TLS_LDM21L 237
  1681. +#define R_PARISC_TLS_LDM14R 238
  1682. +#define R_PARISC_TLS_LDMCALL 239
  1683. +#define R_PARISC_TLS_LDO21L 240
  1684. +#define R_PARISC_TLS_LDO14R 241
  1685. +#define R_PARISC_TLS_DTPMOD32 242
  1686. +#define R_PARISC_TLS_DTPMOD64 243
  1687. +#define R_PARISC_TLS_DTPOFF32 244
  1688. +#define R_PARISC_TLS_DTPOFF64 245
  1689. +#define R_PARISC_TLS_LE21L R_PARISC_TPREL21L
  1690. +#define R_PARISC_TLS_LE14R R_PARISC_TPREL14R
  1691. +#define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L
  1692. +#define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R
  1693. +#define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32
  1694. +#define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64
  1695. +#define R_PARISC_HIRESERVE 255
  1696. +
  1697. +
  1698. +
  1699. +#define PT_HP_TLS (PT_LOOS + 0x0)
  1700. +#define PT_HP_CORE_NONE (PT_LOOS + 0x1)
  1701. +#define PT_HP_CORE_VERSION (PT_LOOS + 0x2)
  1702. +#define PT_HP_CORE_KERNEL (PT_LOOS + 0x3)
  1703. +#define PT_HP_CORE_COMM (PT_LOOS + 0x4)
  1704. +#define PT_HP_CORE_PROC (PT_LOOS + 0x5)
  1705. +#define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6)
  1706. +#define PT_HP_CORE_STACK (PT_LOOS + 0x7)
  1707. +#define PT_HP_CORE_SHM (PT_LOOS + 0x8)
  1708. +#define PT_HP_CORE_MMF (PT_LOOS + 0x9)
  1709. +#define PT_HP_PARALLEL (PT_LOOS + 0x10)
  1710. +#define PT_HP_FASTBIND (PT_LOOS + 0x11)
  1711. +#define PT_HP_OPT_ANNOT (PT_LOOS + 0x12)
  1712. +#define PT_HP_HSL_ANNOT (PT_LOOS + 0x13)
  1713. +#define PT_HP_STACK (PT_LOOS + 0x14)
  1714. +
  1715. +#define PT_PARISC_ARCHEXT 0x70000000
  1716. +#define PT_PARISC_UNWIND 0x70000001
  1717. +
  1718. +
  1719. +
  1720. +#define PF_PARISC_SBP 0x08000000
  1721. +
  1722. +#define PF_HP_PAGE_SIZE 0x00100000
  1723. +#define PF_HP_FAR_SHARED 0x00200000
  1724. +#define PF_HP_NEAR_SHARED 0x00400000
  1725. +#define PF_HP_CODE 0x01000000
  1726. +#define PF_HP_MODIFY 0x02000000
  1727. +#define PF_HP_LAZYSWAP 0x04000000
  1728. +#define PF_HP_SBP 0x08000000
  1729. +
  1730. +
  1731. +
  1732. +
  1733. +
  1734. +
  1735. +#define EF_ALPHA_32BIT 1
  1736. +#define EF_ALPHA_CANRELAX 2
  1737. +
  1738. +
  1739. +
  1740. +
  1741. +#define SHT_ALPHA_DEBUG 0x70000001
  1742. +#define SHT_ALPHA_REGINFO 0x70000002
  1743. +
  1744. +
  1745. +
  1746. +#define SHF_ALPHA_GPREL 0x10000000
  1747. +
  1748. +
  1749. +#define STO_ALPHA_NOPV 0x80
  1750. +#define STO_ALPHA_STD_GPLOAD 0x88
  1751. +
  1752. +
  1753. +
  1754. +#define R_ALPHA_NONE 0
  1755. +#define R_ALPHA_REFLONG 1
  1756. +#define R_ALPHA_REFQUAD 2
  1757. +#define R_ALPHA_GPREL32 3
  1758. +#define R_ALPHA_LITERAL 4
  1759. +#define R_ALPHA_LITUSE 5
  1760. +#define R_ALPHA_GPDISP 6
  1761. +#define R_ALPHA_BRADDR 7
  1762. +#define R_ALPHA_HINT 8
  1763. +#define R_ALPHA_SREL16 9
  1764. +#define R_ALPHA_SREL32 10
  1765. +#define R_ALPHA_SREL64 11
  1766. +#define R_ALPHA_GPRELHIGH 17
  1767. +#define R_ALPHA_GPRELLOW 18
  1768. +#define R_ALPHA_GPREL16 19
  1769. +#define R_ALPHA_COPY 24
  1770. +#define R_ALPHA_GLOB_DAT 25
  1771. +#define R_ALPHA_JMP_SLOT 26
  1772. +#define R_ALPHA_RELATIVE 27
  1773. +#define R_ALPHA_TLS_GD_HI 28
  1774. +#define R_ALPHA_TLSGD 29
  1775. +#define R_ALPHA_TLS_LDM 30
  1776. +#define R_ALPHA_DTPMOD64 31
  1777. +#define R_ALPHA_GOTDTPREL 32
  1778. +#define R_ALPHA_DTPREL64 33
  1779. +#define R_ALPHA_DTPRELHI 34
  1780. +#define R_ALPHA_DTPRELLO 35
  1781. +#define R_ALPHA_DTPREL16 36
  1782. +#define R_ALPHA_GOTTPREL 37
  1783. +#define R_ALPHA_TPREL64 38
  1784. +#define R_ALPHA_TPRELHI 39
  1785. +#define R_ALPHA_TPRELLO 40
  1786. +#define R_ALPHA_TPREL16 41
  1787. +
  1788. +#define R_ALPHA_NUM 46
  1789. +
  1790. +
  1791. +#define LITUSE_ALPHA_ADDR 0
  1792. +#define LITUSE_ALPHA_BASE 1
  1793. +#define LITUSE_ALPHA_BYTOFF 2
  1794. +#define LITUSE_ALPHA_JSR 3
  1795. +#define LITUSE_ALPHA_TLS_GD 4
  1796. +#define LITUSE_ALPHA_TLS_LDM 5
  1797. +
  1798. +
  1799. +#define DT_ALPHA_PLTRO (DT_LOPROC + 0)
  1800. +#define DT_ALPHA_NUM 1
  1801. +
  1802. +
  1803. +
  1804. +
  1805. +#define EF_PPC_EMB 0x80000000
  1806. +
  1807. +
  1808. +#define EF_PPC_RELOCATABLE 0x00010000
  1809. +#define EF_PPC_RELOCATABLE_LIB 0x00008000
  1810. +
  1811. +
  1812. +
  1813. +#define R_PPC_NONE 0
  1814. +#define R_PPC_ADDR32 1
  1815. +#define R_PPC_ADDR24 2
  1816. +#define R_PPC_ADDR16 3
  1817. +#define R_PPC_ADDR16_LO 4
  1818. +#define R_PPC_ADDR16_HI 5
  1819. +#define R_PPC_ADDR16_HA 6
  1820. +#define R_PPC_ADDR14 7
  1821. +#define R_PPC_ADDR14_BRTAKEN 8
  1822. +#define R_PPC_ADDR14_BRNTAKEN 9
  1823. +#define R_PPC_REL24 10
  1824. +#define R_PPC_REL14 11
  1825. +#define R_PPC_REL14_BRTAKEN 12
  1826. +#define R_PPC_REL14_BRNTAKEN 13
  1827. +#define R_PPC_GOT16 14
  1828. +#define R_PPC_GOT16_LO 15
  1829. +#define R_PPC_GOT16_HI 16
  1830. +#define R_PPC_GOT16_HA 17
  1831. +#define R_PPC_PLTREL24 18
  1832. +#define R_PPC_COPY 19
  1833. +#define R_PPC_GLOB_DAT 20
  1834. +#define R_PPC_JMP_SLOT 21
  1835. +#define R_PPC_RELATIVE 22
  1836. +#define R_PPC_LOCAL24PC 23
  1837. +#define R_PPC_UADDR32 24
  1838. +#define R_PPC_UADDR16 25
  1839. +#define R_PPC_REL32 26
  1840. +#define R_PPC_PLT32 27
  1841. +#define R_PPC_PLTREL32 28
  1842. +#define R_PPC_PLT16_LO 29
  1843. +#define R_PPC_PLT16_HI 30
  1844. +#define R_PPC_PLT16_HA 31
  1845. +#define R_PPC_SDAREL16 32
  1846. +#define R_PPC_SECTOFF 33
  1847. +#define R_PPC_SECTOFF_LO 34
  1848. +#define R_PPC_SECTOFF_HI 35
  1849. +#define R_PPC_SECTOFF_HA 36
  1850. +
  1851. +
  1852. +#define R_PPC_TLS 67
  1853. +#define R_PPC_DTPMOD32 68
  1854. +#define R_PPC_TPREL16 69
  1855. +#define R_PPC_TPREL16_LO 70
  1856. +#define R_PPC_TPREL16_HI 71
  1857. +#define R_PPC_TPREL16_HA 72
  1858. +#define R_PPC_TPREL32 73
  1859. +#define R_PPC_DTPREL16 74
  1860. +#define R_PPC_DTPREL16_LO 75
  1861. +#define R_PPC_DTPREL16_HI 76
  1862. +#define R_PPC_DTPREL16_HA 77
  1863. +#define R_PPC_DTPREL32 78
  1864. +#define R_PPC_GOT_TLSGD16 79
  1865. +#define R_PPC_GOT_TLSGD16_LO 80
  1866. +#define R_PPC_GOT_TLSGD16_HI 81
  1867. +#define R_PPC_GOT_TLSGD16_HA 82
  1868. +#define R_PPC_GOT_TLSLD16 83
  1869. +#define R_PPC_GOT_TLSLD16_LO 84
  1870. +#define R_PPC_GOT_TLSLD16_HI 85
  1871. +#define R_PPC_GOT_TLSLD16_HA 86
  1872. +#define R_PPC_GOT_TPREL16 87
  1873. +#define R_PPC_GOT_TPREL16_LO 88
  1874. +#define R_PPC_GOT_TPREL16_HI 89
  1875. +#define R_PPC_GOT_TPREL16_HA 90
  1876. +#define R_PPC_GOT_DTPREL16 91
  1877. +#define R_PPC_GOT_DTPREL16_LO 92
  1878. +#define R_PPC_GOT_DTPREL16_HI 93
  1879. +#define R_PPC_GOT_DTPREL16_HA 94
  1880. +
  1881. +
  1882. +
  1883. +#define R_PPC_EMB_NADDR32 101
  1884. +#define R_PPC_EMB_NADDR16 102
  1885. +#define R_PPC_EMB_NADDR16_LO 103
  1886. +#define R_PPC_EMB_NADDR16_HI 104
  1887. +#define R_PPC_EMB_NADDR16_HA 105
  1888. +#define R_PPC_EMB_SDAI16 106
  1889. +#define R_PPC_EMB_SDA2I16 107
  1890. +#define R_PPC_EMB_SDA2REL 108
  1891. +#define R_PPC_EMB_SDA21 109
  1892. +#define R_PPC_EMB_MRKREF 110
  1893. +#define R_PPC_EMB_RELSEC16 111
  1894. +#define R_PPC_EMB_RELST_LO 112
  1895. +#define R_PPC_EMB_RELST_HI 113
  1896. +#define R_PPC_EMB_RELST_HA 114
  1897. +#define R_PPC_EMB_BIT_FLD 115
  1898. +#define R_PPC_EMB_RELSDA 116
  1899. +
  1900. +
  1901. +#define R_PPC_DIAB_SDA21_LO 180
  1902. +#define R_PPC_DIAB_SDA21_HI 181
  1903. +#define R_PPC_DIAB_SDA21_HA 182
  1904. +#define R_PPC_DIAB_RELSDA_LO 183
  1905. +#define R_PPC_DIAB_RELSDA_HI 184
  1906. +#define R_PPC_DIAB_RELSDA_HA 185
  1907. +
  1908. +
  1909. +#define R_PPC_IRELATIVE 248
  1910. +
  1911. +
  1912. +#define R_PPC_REL16 249
  1913. +#define R_PPC_REL16_LO 250
  1914. +#define R_PPC_REL16_HI 251
  1915. +#define R_PPC_REL16_HA 252
  1916. +
  1917. +
  1918. +
  1919. +#define R_PPC_TOC16 255
  1920. +
  1921. +
  1922. +#define DT_PPC_GOT (DT_LOPROC + 0)
  1923. +#define DT_PPC_NUM 1
  1924. +
  1925. +
  1926. +#define R_PPC64_NONE R_PPC_NONE
  1927. +#define R_PPC64_ADDR32 R_PPC_ADDR32
  1928. +#define R_PPC64_ADDR24 R_PPC_ADDR24
  1929. +#define R_PPC64_ADDR16 R_PPC_ADDR16
  1930. +#define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO
  1931. +#define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI
  1932. +#define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA
  1933. +#define R_PPC64_ADDR14 R_PPC_ADDR14
  1934. +#define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN
  1935. +#define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN
  1936. +#define R_PPC64_REL24 R_PPC_REL24
  1937. +#define R_PPC64_REL14 R_PPC_REL14
  1938. +#define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN
  1939. +#define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN
  1940. +#define R_PPC64_GOT16 R_PPC_GOT16
  1941. +#define R_PPC64_GOT16_LO R_PPC_GOT16_LO
  1942. +#define R_PPC64_GOT16_HI R_PPC_GOT16_HI
  1943. +#define R_PPC64_GOT16_HA R_PPC_GOT16_HA
  1944. +
  1945. +#define R_PPC64_COPY R_PPC_COPY
  1946. +#define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT
  1947. +#define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT
  1948. +#define R_PPC64_RELATIVE R_PPC_RELATIVE
  1949. +
  1950. +#define R_PPC64_UADDR32 R_PPC_UADDR32
  1951. +#define R_PPC64_UADDR16 R_PPC_UADDR16
  1952. +#define R_PPC64_REL32 R_PPC_REL32
  1953. +#define R_PPC64_PLT32 R_PPC_PLT32
  1954. +#define R_PPC64_PLTREL32 R_PPC_PLTREL32
  1955. +#define R_PPC64_PLT16_LO R_PPC_PLT16_LO
  1956. +#define R_PPC64_PLT16_HI R_PPC_PLT16_HI
  1957. +#define R_PPC64_PLT16_HA R_PPC_PLT16_HA
  1958. +
  1959. +#define R_PPC64_SECTOFF R_PPC_SECTOFF
  1960. +#define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO
  1961. +#define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI
  1962. +#define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA
  1963. +#define R_PPC64_ADDR30 37
  1964. +#define R_PPC64_ADDR64 38
  1965. +#define R_PPC64_ADDR16_HIGHER 39
  1966. +#define R_PPC64_ADDR16_HIGHERA 40
  1967. +#define R_PPC64_ADDR16_HIGHEST 41
  1968. +#define R_PPC64_ADDR16_HIGHESTA 42
  1969. +#define R_PPC64_UADDR64 43
  1970. +#define R_PPC64_REL64 44
  1971. +#define R_PPC64_PLT64 45
  1972. +#define R_PPC64_PLTREL64 46
  1973. +#define R_PPC64_TOC16 47
  1974. +#define R_PPC64_TOC16_LO 48
  1975. +#define R_PPC64_TOC16_HI 49
  1976. +#define R_PPC64_TOC16_HA 50
  1977. +#define R_PPC64_TOC 51
  1978. +#define R_PPC64_PLTGOT16 52
  1979. +#define R_PPC64_PLTGOT16_LO 53
  1980. +#define R_PPC64_PLTGOT16_HI 54
  1981. +#define R_PPC64_PLTGOT16_HA 55
  1982. +
  1983. +#define R_PPC64_ADDR16_DS 56
  1984. +#define R_PPC64_ADDR16_LO_DS 57
  1985. +#define R_PPC64_GOT16_DS 58
  1986. +#define R_PPC64_GOT16_LO_DS 59
  1987. +#define R_PPC64_PLT16_LO_DS 60
  1988. +#define R_PPC64_SECTOFF_DS 61
  1989. +#define R_PPC64_SECTOFF_LO_DS 62
  1990. +#define R_PPC64_TOC16_DS 63
  1991. +#define R_PPC64_TOC16_LO_DS 64
  1992. +#define R_PPC64_PLTGOT16_DS 65
  1993. +#define R_PPC64_PLTGOT16_LO_DS 66
  1994. +
  1995. +
  1996. +#define R_PPC64_TLS 67
  1997. +#define R_PPC64_DTPMOD64 68
  1998. +#define R_PPC64_TPREL16 69
  1999. +#define R_PPC64_TPREL16_LO 70
  2000. +#define R_PPC64_TPREL16_HI 71
  2001. +#define R_PPC64_TPREL16_HA 72
  2002. +#define R_PPC64_TPREL64 73
  2003. +#define R_PPC64_DTPREL16 74
  2004. +#define R_PPC64_DTPREL16_LO 75
  2005. +#define R_PPC64_DTPREL16_HI 76
  2006. +#define R_PPC64_DTPREL16_HA 77
  2007. +#define R_PPC64_DTPREL64 78
  2008. +#define R_PPC64_GOT_TLSGD16 79
  2009. +#define R_PPC64_GOT_TLSGD16_LO 80
  2010. +#define R_PPC64_GOT_TLSGD16_HI 81
  2011. +#define R_PPC64_GOT_TLSGD16_HA 82
  2012. +#define R_PPC64_GOT_TLSLD16 83
  2013. +#define R_PPC64_GOT_TLSLD16_LO 84
  2014. +#define R_PPC64_GOT_TLSLD16_HI 85
  2015. +#define R_PPC64_GOT_TLSLD16_HA 86
  2016. +#define R_PPC64_GOT_TPREL16_DS 87
  2017. +#define R_PPC64_GOT_TPREL16_LO_DS 88
  2018. +#define R_PPC64_GOT_TPREL16_HI 89
  2019. +#define R_PPC64_GOT_TPREL16_HA 90
  2020. +#define R_PPC64_GOT_DTPREL16_DS 91
  2021. +#define R_PPC64_GOT_DTPREL16_LO_DS 92
  2022. +#define R_PPC64_GOT_DTPREL16_HI 93
  2023. +#define R_PPC64_GOT_DTPREL16_HA 94
  2024. +#define R_PPC64_TPREL16_DS 95
  2025. +#define R_PPC64_TPREL16_LO_DS 96
  2026. +#define R_PPC64_TPREL16_HIGHER 97
  2027. +#define R_PPC64_TPREL16_HIGHERA 98
  2028. +#define R_PPC64_TPREL16_HIGHEST 99
  2029. +#define R_PPC64_TPREL16_HIGHESTA 100
  2030. +#define R_PPC64_DTPREL16_DS 101
  2031. +#define R_PPC64_DTPREL16_LO_DS 102
  2032. +#define R_PPC64_DTPREL16_HIGHER 103
  2033. +#define R_PPC64_DTPREL16_HIGHERA 104
  2034. +#define R_PPC64_DTPREL16_HIGHEST 105
  2035. +#define R_PPC64_DTPREL16_HIGHESTA 106
  2036. +
  2037. +
  2038. +#define R_PPC64_JMP_IREL 247
  2039. +#define R_PPC64_IRELATIVE 248
  2040. +#define R_PPC64_REL16 249
  2041. +#define R_PPC64_REL16_LO 250
  2042. +#define R_PPC64_REL16_HI 251
  2043. +#define R_PPC64_REL16_HA 252
  2044. +
  2045. +
  2046. +#define DT_PPC64_GLINK (DT_LOPROC + 0)
  2047. +#define DT_PPC64_OPD (DT_LOPROC + 1)
  2048. +#define DT_PPC64_OPDSZ (DT_LOPROC + 2)
  2049. +#define DT_PPC64_NUM 3
  2050. +
  2051. +
  2052. +
  2053. +
  2054. +
  2055. +#define EF_ARM_RELEXEC 0x01
  2056. +#define EF_ARM_HASENTRY 0x02
  2057. +#define EF_ARM_INTERWORK 0x04
  2058. +#define EF_ARM_APCS_26 0x08
  2059. +#define EF_ARM_APCS_FLOAT 0x10
  2060. +#define EF_ARM_PIC 0x20
  2061. +#define EF_ARM_ALIGN8 0x40
  2062. +#define EF_ARM_NEW_ABI 0x80
  2063. +#define EF_ARM_OLD_ABI 0x100
  2064. +#define EF_ARM_SOFT_FLOAT 0x200
  2065. +#define EF_ARM_VFP_FLOAT 0x400
  2066. +#define EF_ARM_MAVERICK_FLOAT 0x800
  2067. +
  2068. +#define EF_ARM_ABI_FLOAT_SOFT 0x200
  2069. +#define EF_ARM_ABI_FLOAT_HARD 0x400
  2070. +
  2071. +
  2072. +#define EF_ARM_SYMSARESORTED 0x04
  2073. +#define EF_ARM_DYNSYMSUSESEGIDX 0x08
  2074. +#define EF_ARM_MAPSYMSFIRST 0x10
  2075. +#define EF_ARM_EABIMASK 0XFF000000
  2076. +
  2077. +
  2078. +#define EF_ARM_BE8 0x00800000
  2079. +#define EF_ARM_LE8 0x00400000
  2080. +
  2081. +#define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK)
  2082. +#define EF_ARM_EABI_UNKNOWN 0x00000000
  2083. +#define EF_ARM_EABI_VER1 0x01000000
  2084. +#define EF_ARM_EABI_VER2 0x02000000
  2085. +#define EF_ARM_EABI_VER3 0x03000000
  2086. +#define EF_ARM_EABI_VER4 0x04000000
  2087. +#define EF_ARM_EABI_VER5 0x05000000
  2088. +
  2089. +
  2090. +#define STT_ARM_TFUNC STT_LOPROC
  2091. +#define STT_ARM_16BIT STT_HIPROC
  2092. +
  2093. +
  2094. +#define SHF_ARM_ENTRYSECT 0x10000000
  2095. +#define SHF_ARM_COMDEF 0x80000000
  2096. +
  2097. +
  2098. +
  2099. +#define PF_ARM_SB 0x10000000
  2100. +
  2101. +#define PF_ARM_PI 0x20000000
  2102. +#define PF_ARM_ABS 0x40000000
  2103. +
  2104. +
  2105. +#define PT_ARM_EXIDX (PT_LOPROC + 1)
  2106. +
  2107. +
  2108. +#define SHT_ARM_EXIDX (SHT_LOPROC + 1)
  2109. +#define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2)
  2110. +#define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3)
  2111. +
  2112. +
  2113. +#define R_AARCH64_NONE 0
  2114. +#define R_AARCH64_ABS64 257
  2115. +#define R_AARCH64_ABS32 258
  2116. +#define R_AARCH64_COPY 1024
  2117. +#define R_AARCH64_GLOB_DAT 1025
  2118. +#define R_AARCH64_JUMP_SLOT 1026
  2119. +#define R_AARCH64_RELATIVE 1027
  2120. +#define R_AARCH64_TLS_DTPMOD64 1028
  2121. +#define R_AARCH64_TLS_DTPREL64 1029
  2122. +#define R_AARCH64_TLS_TPREL64 1030
  2123. +#define R_AARCH64_TLSDESC 1031
  2124. +
  2125. +
  2126. +#define R_ARM_NONE 0
  2127. +#define R_ARM_PC24 1
  2128. +#define R_ARM_ABS32 2
  2129. +#define R_ARM_REL32 3
  2130. +#define R_ARM_PC13 4
  2131. +#define R_ARM_ABS16 5
  2132. +#define R_ARM_ABS12 6
  2133. +#define R_ARM_THM_ABS5 7
  2134. +#define R_ARM_ABS8 8
  2135. +#define R_ARM_SBREL32 9
  2136. +#define R_ARM_THM_PC22 10
  2137. +#define R_ARM_THM_PC8 11
  2138. +#define R_ARM_AMP_VCALL9 12
  2139. +#define R_ARM_TLS_DESC 13
  2140. +#define R_ARM_THM_SWI8 14
  2141. +#define R_ARM_XPC25 15
  2142. +#define R_ARM_THM_XPC22 16
  2143. +#define R_ARM_TLS_DTPMOD32 17
  2144. +#define R_ARM_TLS_DTPOFF32 18
  2145. +#define R_ARM_TLS_TPOFF32 19
  2146. +#define R_ARM_COPY 20
  2147. +#define R_ARM_GLOB_DAT 21
  2148. +#define R_ARM_JUMP_SLOT 22
  2149. +#define R_ARM_RELATIVE 23
  2150. +#define R_ARM_GOTOFF 24
  2151. +#define R_ARM_GOTPC 25
  2152. +#define R_ARM_GOT32 26
  2153. +#define R_ARM_PLT32 27
  2154. +#define R_ARM_CALL 28
  2155. +#define R_ARM_JUMP24 29
  2156. +#define R_ARM_THM_JUMP24 30
  2157. +#define R_ARM_BASE_ABS 31
  2158. +#define R_ARM_ALU_PCREL_7_0 32
  2159. +#define R_ARM_ALU_PCREL_15_8 33
  2160. +#define R_ARM_ALU_PCREL_23_15 34
  2161. +#define R_ARM_LDR_SBREL_11_0 35
  2162. +#define R_ARM_ALU_SBREL_19_12 36
  2163. +#define R_ARM_ALU_SBREL_27_20 37
  2164. +#define R_ARM_TARGET1 38
  2165. +#define R_ARM_SBREL31 39
  2166. +#define R_ARM_V4BX 40
  2167. +#define R_ARM_TARGET2 41
  2168. +#define R_ARM_PREL31 42
  2169. +#define R_ARM_MOVW_ABS_NC 43
  2170. +#define R_ARM_MOVT_ABS 44
  2171. +#define R_ARM_MOVW_PREL_NC 45
  2172. +#define R_ARM_MOVT_PREL 46
  2173. +#define R_ARM_THM_MOVW_ABS_NC 47
  2174. +#define R_ARM_THM_MOVT_ABS 48
  2175. +#define R_ARM_THM_MOVW_PREL_NC 49
  2176. +#define R_ARM_THM_MOVT_PREL 50
  2177. +#define R_ARM_THM_JUMP19 51
  2178. +#define R_ARM_THM_JUMP6 52
  2179. +#define R_ARM_THM_ALU_PREL_11_0 53
  2180. +#define R_ARM_THM_PC12 54
  2181. +#define R_ARM_ABS32_NOI 55
  2182. +#define R_ARM_REL32_NOI 56
  2183. +#define R_ARM_ALU_PC_G0_NC 57
  2184. +#define R_ARM_ALU_PC_G0 58
  2185. +#define R_ARM_ALU_PC_G1_NC 59
  2186. +#define R_ARM_ALU_PC_G1 60
  2187. +#define R_ARM_ALU_PC_G2 61
  2188. +#define R_ARM_LDR_PC_G1 62
  2189. +#define R_ARM_LDR_PC_G2 63
  2190. +#define R_ARM_LDRS_PC_G0 64
  2191. +#define R_ARM_LDRS_PC_G1 65
  2192. +#define R_ARM_LDRS_PC_G2 66
  2193. +#define R_ARM_LDC_PC_G0 67
  2194. +#define R_ARM_LDC_PC_G1 68
  2195. +#define R_ARM_LDC_PC_G2 69
  2196. +#define R_ARM_ALU_SB_G0_NC 70
  2197. +#define R_ARM_ALU_SB_G0 71
  2198. +#define R_ARM_ALU_SB_G1_NC 72
  2199. +#define R_ARM_ALU_SB_G1 73
  2200. +#define R_ARM_ALU_SB_G2 74
  2201. +#define R_ARM_LDR_SB_G0 75
  2202. +#define R_ARM_LDR_SB_G1 76
  2203. +#define R_ARM_LDR_SB_G2 77
  2204. +#define R_ARM_LDRS_SB_G0 78
  2205. +#define R_ARM_LDRS_SB_G1 79
  2206. +#define R_ARM_LDRS_SB_G2 80
  2207. +#define R_ARM_LDC_SB_G0 81
  2208. +#define R_ARM_LDC_SB_G1 82
  2209. +#define R_ARM_LDC_SB_G2 83
  2210. +#define R_ARM_MOVW_BREL_NC 84
  2211. +#define R_ARM_MOVT_BREL 85
  2212. +#define R_ARM_MOVW_BREL 86
  2213. +#define R_ARM_THM_MOVW_BREL_NC 87
  2214. +#define R_ARM_THM_MOVT_BREL 88
  2215. +#define R_ARM_THM_MOVW_BREL 89
  2216. +#define R_ARM_TLS_GOTDESC 90
  2217. +#define R_ARM_TLS_CALL 91
  2218. +#define R_ARM_TLS_DESCSEQ 92
  2219. +#define R_ARM_THM_TLS_CALL 93
  2220. +#define R_ARM_PLT32_ABS 94
  2221. +#define R_ARM_GOT_ABS 95
  2222. +#define R_ARM_GOT_PREL 96
  2223. +#define R_ARM_GOT_BREL12 97
  2224. +#define R_ARM_GOTOFF12 98
  2225. +#define R_ARM_GOTRELAX 99
  2226. +#define R_ARM_GNU_VTENTRY 100
  2227. +#define R_ARM_GNU_VTINHERIT 101
  2228. +#define R_ARM_THM_PC11 102
  2229. +#define R_ARM_THM_PC9 103
  2230. +#define R_ARM_TLS_GD32 104
  2231. +
  2232. +#define R_ARM_TLS_LDM32 105
  2233. +
  2234. +#define R_ARM_TLS_LDO32 106
  2235. +
  2236. +#define R_ARM_TLS_IE32 107
  2237. +
  2238. +#define R_ARM_TLS_LE32 108
  2239. +#define R_ARM_TLS_LDO12 109
  2240. +#define R_ARM_TLS_LE12 110
  2241. +#define R_ARM_TLS_IE12GP 111
  2242. +#define R_ARM_ME_TOO 128
  2243. +#define R_ARM_THM_TLS_DESCSEQ 129
  2244. +#define R_ARM_THM_TLS_DESCSEQ16 129
  2245. +#define R_ARM_THM_TLS_DESCSEQ32 130
  2246. +#define R_ARM_THM_GOT_BREL12 131
  2247. +#define R_ARM_IRELATIVE 160
  2248. +#define R_ARM_RXPC25 249
  2249. +#define R_ARM_RSBREL32 250
  2250. +#define R_ARM_THM_RPC22 251
  2251. +#define R_ARM_RREL32 252
  2252. +#define R_ARM_RABS22 253
  2253. +#define R_ARM_RPC24 254
  2254. +#define R_ARM_RBASE 255
  2255. +
  2256. +#define R_ARM_NUM 256
  2257. +
  2258. +
  2259. +
  2260. +
  2261. +#define EF_IA_64_MASKOS 0x0000000f
  2262. +#define EF_IA_64_ABI64 0x00000010
  2263. +#define EF_IA_64_ARCH 0xff000000
  2264. +
  2265. +
  2266. +#define PT_IA_64_ARCHEXT (PT_LOPROC + 0)
  2267. +#define PT_IA_64_UNWIND (PT_LOPROC + 1)
  2268. +#define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12)
  2269. +#define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13)
  2270. +#define PT_IA_64_HP_STACK (PT_LOOS + 0x14)
  2271. +
  2272. +
  2273. +#define PF_IA_64_NORECOV 0x80000000
  2274. +
  2275. +
  2276. +#define SHT_IA_64_EXT (SHT_LOPROC + 0)
  2277. +#define SHT_IA_64_UNWIND (SHT_LOPROC + 1)
  2278. +
  2279. +
  2280. +#define SHF_IA_64_SHORT 0x10000000
  2281. +#define SHF_IA_64_NORECOV 0x20000000
  2282. +
  2283. +
  2284. +#define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0)
  2285. +#define DT_IA_64_NUM 1
  2286. +
  2287. +
  2288. +#define R_IA64_NONE 0x00
  2289. +#define R_IA64_IMM14 0x21
  2290. +#define R_IA64_IMM22 0x22
  2291. +#define R_IA64_IMM64 0x23
  2292. +#define R_IA64_DIR32MSB 0x24
  2293. +#define R_IA64_DIR32LSB 0x25
  2294. +#define R_IA64_DIR64MSB 0x26
  2295. +#define R_IA64_DIR64LSB 0x27
  2296. +#define R_IA64_GPREL22 0x2a
  2297. +#define R_IA64_GPREL64I 0x2b
  2298. +#define R_IA64_GPREL32MSB 0x2c
  2299. +#define R_IA64_GPREL32LSB 0x2d
  2300. +#define R_IA64_GPREL64MSB 0x2e
  2301. +#define R_IA64_GPREL64LSB 0x2f
  2302. +#define R_IA64_LTOFF22 0x32
  2303. +#define R_IA64_LTOFF64I 0x33
  2304. +#define R_IA64_PLTOFF22 0x3a
  2305. +#define R_IA64_PLTOFF64I 0x3b
  2306. +#define R_IA64_PLTOFF64MSB 0x3e
  2307. +#define R_IA64_PLTOFF64LSB 0x3f
  2308. +#define R_IA64_FPTR64I 0x43
  2309. +#define R_IA64_FPTR32MSB 0x44
  2310. +#define R_IA64_FPTR32LSB 0x45
  2311. +#define R_IA64_FPTR64MSB 0x46
  2312. +#define R_IA64_FPTR64LSB 0x47
  2313. +#define R_IA64_PCREL60B 0x48
  2314. +#define R_IA64_PCREL21B 0x49
  2315. +#define R_IA64_PCREL21M 0x4a
  2316. +#define R_IA64_PCREL21F 0x4b
  2317. +#define R_IA64_PCREL32MSB 0x4c
  2318. +#define R_IA64_PCREL32LSB 0x4d
  2319. +#define R_IA64_PCREL64MSB 0x4e
  2320. +#define R_IA64_PCREL64LSB 0x4f
  2321. +#define R_IA64_LTOFF_FPTR22 0x52
  2322. +#define R_IA64_LTOFF_FPTR64I 0x53
  2323. +#define R_IA64_LTOFF_FPTR32MSB 0x54
  2324. +#define R_IA64_LTOFF_FPTR32LSB 0x55
  2325. +#define R_IA64_LTOFF_FPTR64MSB 0x56
  2326. +#define R_IA64_LTOFF_FPTR64LSB 0x57
  2327. +#define R_IA64_SEGREL32MSB 0x5c
  2328. +#define R_IA64_SEGREL32LSB 0x5d
  2329. +#define R_IA64_SEGREL64MSB 0x5e
  2330. +#define R_IA64_SEGREL64LSB 0x5f
  2331. +#define R_IA64_SECREL32MSB 0x64
  2332. +#define R_IA64_SECREL32LSB 0x65
  2333. +#define R_IA64_SECREL64MSB 0x66
  2334. +#define R_IA64_SECREL64LSB 0x67
  2335. +#define R_IA64_REL32MSB 0x6c
  2336. +#define R_IA64_REL32LSB 0x6d
  2337. +#define R_IA64_REL64MSB 0x6e
  2338. +#define R_IA64_REL64LSB 0x6f
  2339. +#define R_IA64_LTV32MSB 0x74
  2340. +#define R_IA64_LTV32LSB 0x75
  2341. +#define R_IA64_LTV64MSB 0x76
  2342. +#define R_IA64_LTV64LSB 0x77
  2343. +#define R_IA64_PCREL21BI 0x79
  2344. +#define R_IA64_PCREL22 0x7a
  2345. +#define R_IA64_PCREL64I 0x7b
  2346. +#define R_IA64_IPLTMSB 0x80
  2347. +#define R_IA64_IPLTLSB 0x81
  2348. +#define R_IA64_COPY 0x84
  2349. +#define R_IA64_SUB 0x85
  2350. +#define R_IA64_LTOFF22X 0x86
  2351. +#define R_IA64_LDXMOV 0x87
  2352. +#define R_IA64_TPREL14 0x91
  2353. +#define R_IA64_TPREL22 0x92
  2354. +#define R_IA64_TPREL64I 0x93
  2355. +#define R_IA64_TPREL64MSB 0x96
  2356. +#define R_IA64_TPREL64LSB 0x97
  2357. +#define R_IA64_LTOFF_TPREL22 0x9a
  2358. +#define R_IA64_DTPMOD64MSB 0xa6
  2359. +#define R_IA64_DTPMOD64LSB 0xa7
  2360. +#define R_IA64_LTOFF_DTPMOD22 0xaa
  2361. +#define R_IA64_DTPREL14 0xb1
  2362. +#define R_IA64_DTPREL22 0xb2
  2363. +#define R_IA64_DTPREL64I 0xb3
  2364. +#define R_IA64_DTPREL32MSB 0xb4
  2365. +#define R_IA64_DTPREL32LSB 0xb5
  2366. +#define R_IA64_DTPREL64MSB 0xb6
  2367. +#define R_IA64_DTPREL64LSB 0xb7
  2368. +#define R_IA64_LTOFF_DTPREL22 0xba
  2369. +
  2370. +
  2371. +
  2372. +
  2373. +#define R_SH_NONE 0
  2374. +#define R_SH_DIR32 1
  2375. +#define R_SH_REL32 2
  2376. +#define R_SH_DIR8WPN 3
  2377. +#define R_SH_IND12W 4
  2378. +#define R_SH_DIR8WPL 5
  2379. +#define R_SH_DIR8WPZ 6
  2380. +#define R_SH_DIR8BP 7
  2381. +#define R_SH_DIR8W 8
  2382. +#define R_SH_DIR8L 9
  2383. +#define R_SH_SWITCH16 25
  2384. +#define R_SH_SWITCH32 26
  2385. +#define R_SH_USES 27
  2386. +#define R_SH_COUNT 28
  2387. +#define R_SH_ALIGN 29
  2388. +#define R_SH_CODE 30
  2389. +#define R_SH_DATA 31
  2390. +#define R_SH_LABEL 32
  2391. +#define R_SH_SWITCH8 33
  2392. +#define R_SH_GNU_VTINHERIT 34
  2393. +#define R_SH_GNU_VTENTRY 35
  2394. +#define R_SH_TLS_GD_32 144
  2395. +#define R_SH_TLS_LD_32 145
  2396. +#define R_SH_TLS_LDO_32 146
  2397. +#define R_SH_TLS_IE_32 147
  2398. +#define R_SH_TLS_LE_32 148
  2399. +#define R_SH_TLS_DTPMOD32 149
  2400. +#define R_SH_TLS_DTPOFF32 150
  2401. +#define R_SH_TLS_TPOFF32 151
  2402. +#define R_SH_GOT32 160
  2403. +#define R_SH_PLT32 161
  2404. +#define R_SH_COPY 162
  2405. +#define R_SH_GLOB_DAT 163
  2406. +#define R_SH_JMP_SLOT 164
  2407. +#define R_SH_RELATIVE 165
  2408. +#define R_SH_GOTOFF 166
  2409. +#define R_SH_GOTPC 167
  2410. +
  2411. +#define R_SH_NUM 256
  2412. +
  2413. +
  2414. +
  2415. +#define R_390_NONE 0
  2416. +#define R_390_8 1
  2417. +#define R_390_12 2
  2418. +#define R_390_16 3
  2419. +#define R_390_32 4
  2420. +#define R_390_PC32 5
  2421. +#define R_390_GOT12 6
  2422. +#define R_390_GOT32 7
  2423. +#define R_390_PLT32 8
  2424. +#define R_390_COPY 9
  2425. +#define R_390_GLOB_DAT 10
  2426. +#define R_390_JMP_SLOT 11
  2427. +#define R_390_RELATIVE 12
  2428. +#define R_390_GOTOFF32 13
  2429. +#define R_390_GOTPC 14
  2430. +#define R_390_GOT16 15
  2431. +#define R_390_PC16 16
  2432. +#define R_390_PC16DBL 17
  2433. +#define R_390_PLT16DBL 18
  2434. +#define R_390_PC32DBL 19
  2435. +#define R_390_PLT32DBL 20
  2436. +#define R_390_GOTPCDBL 21
  2437. +#define R_390_64 22
  2438. +#define R_390_PC64 23
  2439. +#define R_390_GOT64 24
  2440. +#define R_390_PLT64 25
  2441. +#define R_390_GOTENT 26
  2442. +#define R_390_GOTOFF16 27
  2443. +#define R_390_GOTOFF64 28
  2444. +#define R_390_GOTPLT12 29
  2445. +#define R_390_GOTPLT16 30
  2446. +#define R_390_GOTPLT32 31
  2447. +#define R_390_GOTPLT64 32
  2448. +#define R_390_GOTPLTENT 33
  2449. +#define R_390_PLTOFF16 34
  2450. +#define R_390_PLTOFF32 35
  2451. +#define R_390_PLTOFF64 36
  2452. +#define R_390_TLS_LOAD 37
  2453. +#define R_390_TLS_GDCALL 38
  2454. +
  2455. +#define R_390_TLS_LDCALL 39
  2456. +
  2457. +#define R_390_TLS_GD32 40
  2458. +
  2459. +#define R_390_TLS_GD64 41
  2460. +
  2461. +#define R_390_TLS_GOTIE12 42
  2462. +
  2463. +#define R_390_TLS_GOTIE32 43
  2464. +
  2465. +#define R_390_TLS_GOTIE64 44
  2466. +
  2467. +#define R_390_TLS_LDM32 45
  2468. +
  2469. +#define R_390_TLS_LDM64 46
  2470. +
  2471. +#define R_390_TLS_IE32 47
  2472. +
  2473. +#define R_390_TLS_IE64 48
  2474. +
  2475. +#define R_390_TLS_IEENT 49
  2476. +
  2477. +#define R_390_TLS_LE32 50
  2478. +
  2479. +#define R_390_TLS_LE64 51
  2480. +
  2481. +#define R_390_TLS_LDO32 52
  2482. +
  2483. +#define R_390_TLS_LDO64 53
  2484. +
  2485. +#define R_390_TLS_DTPMOD 54
  2486. +#define R_390_TLS_DTPOFF 55
  2487. +#define R_390_TLS_TPOFF 56
  2488. +
  2489. +#define R_390_20 57
  2490. +#define R_390_GOT20 58
  2491. +#define R_390_GOTPLT20 59
  2492. +#define R_390_TLS_GOTIE20 60
  2493. +
  2494. +
  2495. +#define R_390_NUM 61
  2496. +
  2497. +
  2498. +
  2499. +#define R_CRIS_NONE 0
  2500. +#define R_CRIS_8 1
  2501. +#define R_CRIS_16 2
  2502. +#define R_CRIS_32 3
  2503. +#define R_CRIS_8_PCREL 4
  2504. +#define R_CRIS_16_PCREL 5
  2505. +#define R_CRIS_32_PCREL 6
  2506. +#define R_CRIS_GNU_VTINHERIT 7
  2507. +#define R_CRIS_GNU_VTENTRY 8
  2508. +#define R_CRIS_COPY 9
  2509. +#define R_CRIS_GLOB_DAT 10
  2510. +#define R_CRIS_JUMP_SLOT 11
  2511. +#define R_CRIS_RELATIVE 12
  2512. +#define R_CRIS_16_GOT 13
  2513. +#define R_CRIS_32_GOT 14
  2514. +#define R_CRIS_16_GOTPLT 15
  2515. +#define R_CRIS_32_GOTPLT 16
  2516. +#define R_CRIS_32_GOTREL 17
  2517. +#define R_CRIS_32_PLT_GOTREL 18
  2518. +#define R_CRIS_32_PLT_PCREL 19
  2519. +
  2520. +#define R_CRIS_NUM 20
  2521. +
  2522. +
  2523. +
  2524. +#define R_X86_64_NONE 0
  2525. +#define R_X86_64_64 1
  2526. +#define R_X86_64_PC32 2
  2527. +#define R_X86_64_GOT32 3
  2528. +#define R_X86_64_PLT32 4
  2529. +#define R_X86_64_COPY 5
  2530. +#define R_X86_64_GLOB_DAT 6
  2531. +#define R_X86_64_JUMP_SLOT 7
  2532. +#define R_X86_64_RELATIVE 8
  2533. +#define R_X86_64_GOTPCREL 9
  2534. +
  2535. +#define R_X86_64_32 10
  2536. +#define R_X86_64_32S 11
  2537. +#define R_X86_64_16 12
  2538. +#define R_X86_64_PC16 13
  2539. +#define R_X86_64_8 14
  2540. +#define R_X86_64_PC8 15
  2541. +#define R_X86_64_DTPMOD64 16
  2542. +#define R_X86_64_DTPOFF64 17
  2543. +#define R_X86_64_TPOFF64 18
  2544. +#define R_X86_64_TLSGD 19
  2545. +
  2546. +#define R_X86_64_TLSLD 20
  2547. +
  2548. +#define R_X86_64_DTPOFF32 21
  2549. +#define R_X86_64_GOTTPOFF 22
  2550. +
  2551. +#define R_X86_64_TPOFF32 23
  2552. +#define R_X86_64_PC64 24
  2553. +#define R_X86_64_GOTOFF64 25
  2554. +#define R_X86_64_GOTPC32 26
  2555. +#define R_X86_64_GOT64 27
  2556. +#define R_X86_64_GOTPCREL64 28
  2557. +#define R_X86_64_GOTPC64 29
  2558. +#define R_X86_64_GOTPLT64 30
  2559. +#define R_X86_64_PLTOFF64 31
  2560. +#define R_X86_64_SIZE32 32
  2561. +#define R_X86_64_SIZE64 33
  2562. +
  2563. +#define R_X86_64_GOTPC32_TLSDESC 34
  2564. +#define R_X86_64_TLSDESC_CALL 35
  2565. +
  2566. +#define R_X86_64_TLSDESC 36
  2567. +#define R_X86_64_IRELATIVE 37
  2568. +#define R_X86_64_RELATIVE64 38
  2569. +#define R_X86_64_NUM 39
  2570. +
  2571. +
  2572. +
  2573. +#define R_MN10300_NONE 0
  2574. +#define R_MN10300_32 1
  2575. +#define R_MN10300_16 2
  2576. +#define R_MN10300_8 3
  2577. +#define R_MN10300_PCREL32 4
  2578. +#define R_MN10300_PCREL16 5
  2579. +#define R_MN10300_PCREL8 6
  2580. +#define R_MN10300_GNU_VTINHERIT 7
  2581. +#define R_MN10300_GNU_VTENTRY 8
  2582. +#define R_MN10300_24 9
  2583. +#define R_MN10300_GOTPC32 10
  2584. +#define R_MN10300_GOTPC16 11
  2585. +#define R_MN10300_GOTOFF32 12
  2586. +#define R_MN10300_GOTOFF24 13
  2587. +#define R_MN10300_GOTOFF16 14
  2588. +#define R_MN10300_PLT32 15
  2589. +#define R_MN10300_PLT16 16
  2590. +#define R_MN10300_GOT32 17
  2591. +#define R_MN10300_GOT24 18
  2592. +#define R_MN10300_GOT16 19
  2593. +#define R_MN10300_COPY 20
  2594. +#define R_MN10300_GLOB_DAT 21
  2595. +#define R_MN10300_JMP_SLOT 22
  2596. +#define R_MN10300_RELATIVE 23
  2597. +
  2598. +#define R_MN10300_NUM 24
  2599. +
  2600. +
  2601. +
  2602. +#define R_M32R_NONE 0
  2603. +#define R_M32R_16 1
  2604. +#define R_M32R_32 2
  2605. +#define R_M32R_24 3
  2606. +#define R_M32R_10_PCREL 4
  2607. +#define R_M32R_18_PCREL 5
  2608. +#define R_M32R_26_PCREL 6
  2609. +#define R_M32R_HI16_ULO 7
  2610. +#define R_M32R_HI16_SLO 8
  2611. +#define R_M32R_LO16 9
  2612. +#define R_M32R_SDA16 10
  2613. +#define R_M32R_GNU_VTINHERIT 11
  2614. +#define R_M32R_GNU_VTENTRY 12
  2615. +
  2616. +#define R_M32R_16_RELA 33
  2617. +#define R_M32R_32_RELA 34
  2618. +#define R_M32R_24_RELA 35
  2619. +#define R_M32R_10_PCREL_RELA 36
  2620. +#define R_M32R_18_PCREL_RELA 37
  2621. +#define R_M32R_26_PCREL_RELA 38
  2622. +#define R_M32R_HI16_ULO_RELA 39
  2623. +#define R_M32R_HI16_SLO_RELA 40
  2624. +#define R_M32R_LO16_RELA 41
  2625. +#define R_M32R_SDA16_RELA 42
  2626. +#define R_M32R_RELA_GNU_VTINHERIT 43
  2627. +#define R_M32R_RELA_GNU_VTENTRY 44
  2628. +#define R_M32R_REL32 45
  2629. +
  2630. +#define R_M32R_GOT24 48
  2631. +#define R_M32R_26_PLTREL 49
  2632. +#define R_M32R_COPY 50
  2633. +#define R_M32R_GLOB_DAT 51
  2634. +#define R_M32R_JMP_SLOT 52
  2635. +#define R_M32R_RELATIVE 53
  2636. +#define R_M32R_GOTOFF 54
  2637. +#define R_M32R_GOTPC24 55
  2638. +#define R_M32R_GOT16_HI_ULO 56
  2639. +
  2640. +#define R_M32R_GOT16_HI_SLO 57
  2641. +
  2642. +#define R_M32R_GOT16_LO 58
  2643. +#define R_M32R_GOTPC_HI_ULO 59
  2644. +
  2645. +#define R_M32R_GOTPC_HI_SLO 60
  2646. +
  2647. +#define R_M32R_GOTPC_LO 61
  2648. +
  2649. +#define R_M32R_GOTOFF_HI_ULO 62
  2650. +
  2651. +#define R_M32R_GOTOFF_HI_SLO 63
  2652. +
  2653. +#define R_M32R_GOTOFF_LO 64
  2654. +#define R_M32R_NUM 256
  2655. +
  2656. +#define R_MICROBLAZE_NONE 0
  2657. +#define R_MICROBLAZE_32 1
  2658. +#define R_MICROBLAZE_32_PCREL 2
  2659. +#define R_MICROBLAZE_64_PCREL 3
  2660. +#define R_MICROBLAZE_32_PCREL_LO 4
  2661. +#define R_MICROBLAZE_64 5
  2662. +#define R_MICROBLAZE_32_LO 6
  2663. +#define R_MICROBLAZE_SRO32 7
  2664. +#define R_MICROBLAZE_SRW32 8
  2665. +#define R_MICROBLAZE_64_NONE 9
  2666. +#define R_MICROBLAZE_32_SYM_OP_SYM 10
  2667. +#define R_MICROBLAZE_GNU_VTINHERIT 11
  2668. +#define R_MICROBLAZE_GNU_VTENTRY 12
  2669. +#define R_MICROBLAZE_GOTPC_64 13
  2670. +#define R_MICROBLAZE_GOT_64 14
  2671. +#define R_MICROBLAZE_PLT_64 15
  2672. +#define R_MICROBLAZE_REL 16
  2673. +#define R_MICROBLAZE_JUMP_SLOT 17
  2674. +#define R_MICROBLAZE_GLOB_DAT 18
  2675. +#define R_MICROBLAZE_GOTOFF_64 19
  2676. +#define R_MICROBLAZE_GOTOFF_32 20
  2677. +#define R_MICROBLAZE_COPY 21
  2678. +#define R_MICROBLAZE_TLS 22
  2679. +#define R_MICROBLAZE_TLSGD 23
  2680. +#define R_MICROBLAZE_TLSLD 24
  2681. +#define R_MICROBLAZE_TLSDTPMOD32 25
  2682. +#define R_MICROBLAZE_TLSDTPREL32 26
  2683. +#define R_MICROBLAZE_TLSDTPREL64 27
  2684. +#define R_MICROBLAZE_TLSGOTTPREL32 28
  2685. +#define R_MICROBLAZE_TLSTPREL32 29
  2686. +
  2687. +#ifdef __cplusplus
  2688. +}
  2689. +#endif
  2690. +
  2691. +
  2692. +#endif