...

Source file src/cmd/internal/objabi/reloctype_string.go

Documentation: cmd/internal/objabi

     1  // Code generated by "stringer -type=RelocType"; DO NOT EDIT.
     2  
     3  package objabi
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[R_ADDR-1]
    12  	_ = x[R_ADDRPOWER-2]
    13  	_ = x[R_ADDRARM64-3]
    14  	_ = x[R_ADDRMIPS-4]
    15  	_ = x[R_ADDROFF-5]
    16  	_ = x[R_SIZE-6]
    17  	_ = x[R_CALL-7]
    18  	_ = x[R_CALLARM-8]
    19  	_ = x[R_CALLARM64-9]
    20  	_ = x[R_CALLIND-10]
    21  	_ = x[R_CALLPOWER-11]
    22  	_ = x[R_CALLMIPS-12]
    23  	_ = x[R_CONST-13]
    24  	_ = x[R_PCREL-14]
    25  	_ = x[R_TLS_LE-15]
    26  	_ = x[R_TLS_IE-16]
    27  	_ = x[R_GOTOFF-17]
    28  	_ = x[R_PLT0-18]
    29  	_ = x[R_PLT1-19]
    30  	_ = x[R_PLT2-20]
    31  	_ = x[R_USEFIELD-21]
    32  	_ = x[R_USETYPE-22]
    33  	_ = x[R_USEIFACE-23]
    34  	_ = x[R_USEIFACEMETHOD-24]
    35  	_ = x[R_USENAMEDMETHOD-25]
    36  	_ = x[R_METHODOFF-26]
    37  	_ = x[R_KEEP-27]
    38  	_ = x[R_POWER_TOC-28]
    39  	_ = x[R_GOTPCREL-29]
    40  	_ = x[R_JMPMIPS-30]
    41  	_ = x[R_DWARFSECREF-31]
    42  	_ = x[R_DWARFFILEREF-32]
    43  	_ = x[R_ARM64_TLS_LE-33]
    44  	_ = x[R_ARM64_TLS_IE-34]
    45  	_ = x[R_ARM64_GOTPCREL-35]
    46  	_ = x[R_ARM64_GOT-36]
    47  	_ = x[R_ARM64_PCREL-37]
    48  	_ = x[R_ARM64_PCREL_LDST8-38]
    49  	_ = x[R_ARM64_PCREL_LDST16-39]
    50  	_ = x[R_ARM64_PCREL_LDST32-40]
    51  	_ = x[R_ARM64_PCREL_LDST64-41]
    52  	_ = x[R_ARM64_LDST8-42]
    53  	_ = x[R_ARM64_LDST16-43]
    54  	_ = x[R_ARM64_LDST32-44]
    55  	_ = x[R_ARM64_LDST64-45]
    56  	_ = x[R_ARM64_LDST128-46]
    57  	_ = x[R_POWER_TLS_LE-47]
    58  	_ = x[R_POWER_TLS_IE-48]
    59  	_ = x[R_POWER_TLS-49]
    60  	_ = x[R_POWER_TLS_IE_PCREL34-50]
    61  	_ = x[R_POWER_TLS_LE_TPREL34-51]
    62  	_ = x[R_ADDRPOWER_DS-52]
    63  	_ = x[R_ADDRPOWER_GOT-53]
    64  	_ = x[R_ADDRPOWER_GOT_PCREL34-54]
    65  	_ = x[R_ADDRPOWER_PCREL-55]
    66  	_ = x[R_ADDRPOWER_TOCREL-56]
    67  	_ = x[R_ADDRPOWER_TOCREL_DS-57]
    68  	_ = x[R_ADDRPOWER_D34-58]
    69  	_ = x[R_ADDRPOWER_PCREL34-59]
    70  	_ = x[R_RISCV_JAL-60]
    71  	_ = x[R_RISCV_JAL_TRAMP-61]
    72  	_ = x[R_RISCV_CALL-62]
    73  	_ = x[R_RISCV_PCREL_ITYPE-63]
    74  	_ = x[R_RISCV_PCREL_STYPE-64]
    75  	_ = x[R_RISCV_TLS_IE-65]
    76  	_ = x[R_RISCV_TLS_LE-66]
    77  	_ = x[R_RISCV_GOT_HI20-67]
    78  	_ = x[R_RISCV_PCREL_HI20-68]
    79  	_ = x[R_RISCV_PCREL_LO12_I-69]
    80  	_ = x[R_RISCV_PCREL_LO12_S-70]
    81  	_ = x[R_RISCV_BRANCH-71]
    82  	_ = x[R_RISCV_RVC_BRANCH-72]
    83  	_ = x[R_RISCV_RVC_JUMP-73]
    84  	_ = x[R_PCRELDBL-74]
    85  	_ = x[R_LOONG64_ADDR_HI-75]
    86  	_ = x[R_LOONG64_ADDR_LO-76]
    87  	_ = x[R_LOONG64_TLS_LE_HI-77]
    88  	_ = x[R_LOONG64_TLS_LE_LO-78]
    89  	_ = x[R_CALLLOONG64-79]
    90  	_ = x[R_LOONG64_TLS_IE_HI-80]
    91  	_ = x[R_LOONG64_TLS_IE_LO-81]
    92  	_ = x[R_LOONG64_GOT_HI-82]
    93  	_ = x[R_LOONG64_GOT_LO-83]
    94  	_ = x[R_JMPLOONG64-84]
    95  	_ = x[R_ADDRMIPSU-85]
    96  	_ = x[R_ADDRMIPSTLS-86]
    97  	_ = x[R_ADDRCUOFF-87]
    98  	_ = x[R_WASMIMPORT-88]
    99  	_ = x[R_XCOFFREF-89]
   100  	_ = x[R_PEIMAGEOFF-90]
   101  	_ = x[R_INITORDER-91]
   102  }
   103  
   104  const _RelocType_name = "R_ADDRR_ADDRPOWERR_ADDRARM64R_ADDRMIPSR_ADDROFFR_SIZER_CALLR_CALLARMR_CALLARM64R_CALLINDR_CALLPOWERR_CALLMIPSR_CONSTR_PCRELR_TLS_LER_TLS_IER_GOTOFFR_PLT0R_PLT1R_PLT2R_USEFIELDR_USETYPER_USEIFACER_USEIFACEMETHODR_USENAMEDMETHODR_METHODOFFR_KEEPR_POWER_TOCR_GOTPCRELR_JMPMIPSR_DWARFSECREFR_DWARFFILEREFR_ARM64_TLS_LER_ARM64_TLS_IER_ARM64_GOTPCRELR_ARM64_GOTR_ARM64_PCRELR_ARM64_PCREL_LDST8R_ARM64_PCREL_LDST16R_ARM64_PCREL_LDST32R_ARM64_PCREL_LDST64R_ARM64_LDST8R_ARM64_LDST16R_ARM64_LDST32R_ARM64_LDST64R_ARM64_LDST128R_POWER_TLS_LER_POWER_TLS_IER_POWER_TLSR_POWER_TLS_IE_PCREL34R_POWER_TLS_LE_TPREL34R_ADDRPOWER_DSR_ADDRPOWER_GOTR_ADDRPOWER_GOT_PCREL34R_ADDRPOWER_PCRELR_ADDRPOWER_TOCRELR_ADDRPOWER_TOCREL_DSR_ADDRPOWER_D34R_ADDRPOWER_PCREL34R_RISCV_JALR_RISCV_JAL_TRAMPR_RISCV_CALLR_RISCV_PCREL_ITYPER_RISCV_PCREL_STYPER_RISCV_TLS_IER_RISCV_TLS_LER_RISCV_GOT_HI20R_RISCV_PCREL_HI20R_RISCV_PCREL_LO12_IR_RISCV_PCREL_LO12_SR_RISCV_BRANCHR_RISCV_RVC_BRANCHR_RISCV_RVC_JUMPR_PCRELDBLR_LOONG64_ADDR_HIR_LOONG64_ADDR_LOR_LOONG64_TLS_LE_HIR_LOONG64_TLS_LE_LOR_CALLLOONG64R_LOONG64_TLS_IE_HIR_LOONG64_TLS_IE_LOR_LOONG64_GOT_HIR_LOONG64_GOT_LOR_JMPLOONG64R_ADDRMIPSUR_ADDRMIPSTLSR_ADDRCUOFFR_WASMIMPORTR_XCOFFREFR_PEIMAGEOFFR_INITORDER"
   105  
   106  var _RelocType_index = [...]uint16{0, 6, 17, 28, 38, 47, 53, 59, 68, 79, 88, 99, 109, 116, 123, 131, 139, 147, 153, 159, 165, 175, 184, 194, 210, 226, 237, 243, 254, 264, 273, 286, 300, 314, 328, 344, 355, 368, 387, 407, 427, 447, 460, 474, 488, 502, 517, 531, 545, 556, 578, 600, 614, 629, 652, 669, 687, 708, 723, 742, 753, 770, 782, 801, 820, 834, 848, 864, 882, 902, 922, 936, 954, 970, 980, 997, 1014, 1033, 1052, 1065, 1084, 1103, 1119, 1135, 1147, 1158, 1171, 1182, 1194, 1204, 1216, 1227}
   107  
   108  func (i RelocType) String() string {
   109  	i -= 1
   110  	if i < 0 || i >= RelocType(len(_RelocType_index)-1) {
   111  		return "RelocType(" + strconv.FormatInt(int64(i+1), 10) + ")"
   112  	}
   113  	return _RelocType_name[_RelocType_index[i]:_RelocType_index[i+1]]
   114  }
   115  

View as plain text