Black Lives Matter. Support the Equal Justice Initiative.

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_WEAKADDROFF-6]
    17  	_ = x[R_SIZE-7]
    18  	_ = x[R_CALL-8]
    19  	_ = x[R_CALLARM-9]
    20  	_ = x[R_CALLARM64-10]
    21  	_ = x[R_CALLIND-11]
    22  	_ = x[R_CALLPOWER-12]
    23  	_ = x[R_CALLMIPS-13]
    24  	_ = x[R_CALLRISCV-14]
    25  	_ = x[R_CONST-15]
    26  	_ = x[R_PCREL-16]
    27  	_ = x[R_TLS_LE-17]
    28  	_ = x[R_TLS_IE-18]
    29  	_ = x[R_GOTOFF-19]
    30  	_ = x[R_PLT0-20]
    31  	_ = x[R_PLT1-21]
    32  	_ = x[R_PLT2-22]
    33  	_ = x[R_USEFIELD-23]
    34  	_ = x[R_USETYPE-24]
    35  	_ = x[R_USEIFACE-25]
    36  	_ = x[R_USEIFACEMETHOD-26]
    37  	_ = x[R_METHODOFF-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_LDST8-38]
    49  	_ = x[R_ARM64_LDST16-39]
    50  	_ = x[R_ARM64_LDST32-40]
    51  	_ = x[R_ARM64_LDST64-41]
    52  	_ = x[R_ARM64_LDST128-42]
    53  	_ = x[R_POWER_TLS_LE-43]
    54  	_ = x[R_POWER_TLS_IE-44]
    55  	_ = x[R_POWER_TLS-45]
    56  	_ = x[R_ADDRPOWER_DS-46]
    57  	_ = x[R_ADDRPOWER_GOT-47]
    58  	_ = x[R_ADDRPOWER_PCREL-48]
    59  	_ = x[R_ADDRPOWER_TOCREL-49]
    60  	_ = x[R_ADDRPOWER_TOCREL_DS-50]
    61  	_ = x[R_RISCV_PCREL_ITYPE-51]
    62  	_ = x[R_RISCV_PCREL_STYPE-52]
    63  	_ = x[R_RISCV_TLS_IE_ITYPE-53]
    64  	_ = x[R_RISCV_TLS_IE_STYPE-54]
    65  	_ = x[R_PCRELDBL-55]
    66  	_ = x[R_ADDRMIPSU-56]
    67  	_ = x[R_ADDRMIPSTLS-57]
    68  	_ = x[R_ADDRCUOFF-58]
    69  	_ = x[R_WASMIMPORT-59]
    70  	_ = x[R_XCOFFREF-60]
    71  }
    72  
    73  const _RelocType_name = "R_ADDRR_ADDRPOWERR_ADDRARM64R_ADDRMIPSR_ADDROFFR_WEAKADDROFFR_SIZER_CALLR_CALLARMR_CALLARM64R_CALLINDR_CALLPOWERR_CALLMIPSR_CALLRISCVR_CONSTR_PCRELR_TLS_LER_TLS_IER_GOTOFFR_PLT0R_PLT1R_PLT2R_USEFIELDR_USETYPER_USEIFACER_USEIFACEMETHODR_METHODOFFR_POWER_TOCR_GOTPCRELR_JMPMIPSR_DWARFSECREFR_DWARFFILEREFR_ARM64_TLS_LER_ARM64_TLS_IER_ARM64_GOTPCRELR_ARM64_GOTR_ARM64_PCRELR_ARM64_LDST8R_ARM64_LDST16R_ARM64_LDST32R_ARM64_LDST64R_ARM64_LDST128R_POWER_TLS_LER_POWER_TLS_IER_POWER_TLSR_ADDRPOWER_DSR_ADDRPOWER_GOTR_ADDRPOWER_PCRELR_ADDRPOWER_TOCRELR_ADDRPOWER_TOCREL_DSR_RISCV_PCREL_ITYPER_RISCV_PCREL_STYPER_RISCV_TLS_IE_ITYPER_RISCV_TLS_IE_STYPER_PCRELDBLR_ADDRMIPSUR_ADDRMIPSTLSR_ADDRCUOFFR_WASMIMPORTR_XCOFFREF"
    74  
    75  var _RelocType_index = [...]uint16{0, 6, 17, 28, 38, 47, 60, 66, 72, 81, 92, 101, 112, 122, 133, 140, 147, 155, 163, 171, 177, 183, 189, 199, 208, 218, 234, 245, 256, 266, 275, 288, 302, 316, 330, 346, 357, 370, 383, 397, 411, 425, 440, 454, 468, 479, 493, 508, 525, 543, 564, 583, 602, 622, 642, 652, 663, 676, 687, 699, 709}
    76  
    77  func (i RelocType) String() string {
    78  	i -= 1
    79  	if i < 0 || i >= RelocType(len(_RelocType_index)-1) {
    80  		return "RelocType(" + strconv.FormatInt(int64(i+1), 10) + ")"
    81  	}
    82  	return _RelocType_name[_RelocType_index[i]:_RelocType_index[i+1]]
    83  }
    84  

View as plain text