1263320SdimPull in r198565 from upstream llvm trunk (by Venkatraman Govindaraju): 2263320Sdim 3263320Sdim ELF relocation types for sparc. 4263320Sdim 5269012SemasteIntroduced here: http://svnweb.freebsd.org/changeset/base/262261 6263320Sdim 7263320SdimIndex: include/llvm/Support/ELF.h 8263320Sdim=================================================================== 9263320Sdim--- include/llvm/Support/ELF.h 10263320Sdim+++ include/llvm/Support/ELF.h 11263320Sdim@@ -1087,6 +1087,65 @@ enum { 12263320Sdim R_390_IRELATIVE = 61 13263320Sdim }; 14263320Sdim 15263320Sdim+// ELF Relocation type for Sparc. 16263320Sdim+enum { 17263320Sdim+ R_SPARC_NONE = 0, 18263320Sdim+ R_SPARC_8 = 1, 19263320Sdim+ R_SPARC_16 = 2, 20263320Sdim+ R_SPARC_32 = 3, 21263320Sdim+ R_SPARC_DISP8 = 4, 22263320Sdim+ R_SPARC_DISP16 = 5, 23263320Sdim+ R_SPARC_DISP32 = 6, 24263320Sdim+ R_SPARC_WDISP30 = 7, 25263320Sdim+ R_SPARC_WDISP22 = 8, 26263320Sdim+ R_SPARC_HI22 = 9, 27263320Sdim+ R_SPARC_22 = 10, 28263320Sdim+ R_SPARC_13 = 11, 29263320Sdim+ R_SPARC_LO10 = 12, 30263320Sdim+ R_SPARC_GOT10 = 13, 31263320Sdim+ R_SPARC_GOT13 = 14, 32263320Sdim+ R_SPARC_GOT22 = 15, 33263320Sdim+ R_SPARC_PC10 = 16, 34263320Sdim+ R_SPARC_PC22 = 17, 35263320Sdim+ R_SPARC_WPLT30 = 18, 36263320Sdim+ R_SPARC_COPY = 19, 37263320Sdim+ R_SPARC_GLOB_DAT = 20, 38263320Sdim+ R_SPARC_JMP_SLOT = 21, 39263320Sdim+ R_SPARC_RELATIVE = 22, 40263320Sdim+ R_SPARC_UA32 = 23, 41263320Sdim+ R_SPARC_PLT32 = 24, 42263320Sdim+ R_SPARC_HIPLT22 = 25, 43263320Sdim+ R_SPARC_LOPLT10 = 26, 44263320Sdim+ R_SPARC_PCPLT32 = 27, 45263320Sdim+ R_SPARC_PCPLT22 = 28, 46263320Sdim+ R_SPARC_PCPLT10 = 29, 47263320Sdim+ R_SPARC_10 = 30, 48263320Sdim+ R_SPARC_11 = 31, 49263320Sdim+ R_SPARC_64 = 32, 50263320Sdim+ R_SPARC_OLO10 = 33, 51263320Sdim+ R_SPARC_HH22 = 34, 52263320Sdim+ R_SPARC_HM10 = 35, 53263320Sdim+ R_SPARC_LM22 = 36, 54263320Sdim+ R_SPARC_PC_HH22 = 37, 55263320Sdim+ R_SPARC_PC_HM10 = 38, 56263320Sdim+ R_SPARC_PC_LM22 = 39, 57263320Sdim+ R_SPARC_WDISP16 = 40, 58263320Sdim+ R_SPARC_WDISP19 = 41, 59263320Sdim+ R_SPARC_7 = 43, 60263320Sdim+ R_SPARC_5 = 44, 61263320Sdim+ R_SPARC_6 = 45, 62263320Sdim+ R_SPARC_DISP64 = 46, 63263320Sdim+ R_SPARC_PLT64 = 47, 64263320Sdim+ R_SPARC_HIX22 = 48, 65263320Sdim+ R_SPARC_LOX10 = 49, 66263320Sdim+ R_SPARC_H44 = 50, 67263320Sdim+ R_SPARC_M44 = 51, 68263320Sdim+ R_SPARC_L44 = 52, 69263320Sdim+ R_SPARC_REGISTER = 53, 70263320Sdim+ R_SPARC_UA64 = 54, 71263320Sdim+ R_SPARC_UA16 = 55 72263320Sdim+}; 73263320Sdim+ 74263320Sdim // Section header. 75263320Sdim struct Elf32_Shdr { 76263320Sdim Elf32_Word sh_name; // Section name (index into string table) 77