1Pull in r198565 from upstream llvm trunk (by Venkatraman Govindaraju): 2 3 ELF relocation types for sparc. 4 5Introduced here: http://svnweb.freebsd.org/changeset/base/262261 6 7Index: include/llvm/Support/ELF.h 8=================================================================== 9--- include/llvm/Support/ELF.h 10+++ include/llvm/Support/ELF.h 11@@ -1087,6 +1087,65 @@ enum { 12 R_390_IRELATIVE = 61 13 }; 14 15+// ELF Relocation type for Sparc. 16+enum { 17+ R_SPARC_NONE = 0, 18+ R_SPARC_8 = 1, 19+ R_SPARC_16 = 2, 20+ R_SPARC_32 = 3, 21+ R_SPARC_DISP8 = 4, 22+ R_SPARC_DISP16 = 5, 23+ R_SPARC_DISP32 = 6, 24+ R_SPARC_WDISP30 = 7, 25+ R_SPARC_WDISP22 = 8, 26+ R_SPARC_HI22 = 9, 27+ R_SPARC_22 = 10, 28+ R_SPARC_13 = 11, 29+ R_SPARC_LO10 = 12, 30+ R_SPARC_GOT10 = 13, 31+ R_SPARC_GOT13 = 14, 32+ R_SPARC_GOT22 = 15, 33+ R_SPARC_PC10 = 16, 34+ R_SPARC_PC22 = 17, 35+ R_SPARC_WPLT30 = 18, 36+ R_SPARC_COPY = 19, 37+ R_SPARC_GLOB_DAT = 20, 38+ R_SPARC_JMP_SLOT = 21, 39+ R_SPARC_RELATIVE = 22, 40+ R_SPARC_UA32 = 23, 41+ R_SPARC_PLT32 = 24, 42+ R_SPARC_HIPLT22 = 25, 43+ R_SPARC_LOPLT10 = 26, 44+ R_SPARC_PCPLT32 = 27, 45+ R_SPARC_PCPLT22 = 28, 46+ R_SPARC_PCPLT10 = 29, 47+ R_SPARC_10 = 30, 48+ R_SPARC_11 = 31, 49+ R_SPARC_64 = 32, 50+ R_SPARC_OLO10 = 33, 51+ R_SPARC_HH22 = 34, 52+ R_SPARC_HM10 = 35, 53+ R_SPARC_LM22 = 36, 54+ R_SPARC_PC_HH22 = 37, 55+ R_SPARC_PC_HM10 = 38, 56+ R_SPARC_PC_LM22 = 39, 57+ R_SPARC_WDISP16 = 40, 58+ R_SPARC_WDISP19 = 41, 59+ R_SPARC_7 = 43, 60+ R_SPARC_5 = 44, 61+ R_SPARC_6 = 45, 62+ R_SPARC_DISP64 = 46, 63+ R_SPARC_PLT64 = 47, 64+ R_SPARC_HIX22 = 48, 65+ R_SPARC_LOX10 = 49, 66+ R_SPARC_H44 = 50, 67+ R_SPARC_M44 = 51, 68+ R_SPARC_L44 = 52, 69+ R_SPARC_REGISTER = 53, 70+ R_SPARC_UA64 = 54, 71+ R_SPARC_UA16 = 55 72+}; 73+ 74 // Section header. 75 struct Elf32_Shdr { 76 Elf32_Word sh_name; // Section name (index into string table) 77