Source file src/debug/macho/reloctype_string.go

     1  // Code generated by "stringer -type=RelocTypeGeneric,RelocTypeX86_64,RelocTypeARM,RelocTypeARM64 -output reloctype_string.go"; DO NOT EDIT.
     2  
     3  package macho
     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[GENERIC_RELOC_VANILLA-0]
    12  	_ = x[GENERIC_RELOC_PAIR-1]
    13  	_ = x[GENERIC_RELOC_SECTDIFF-2]
    14  	_ = x[GENERIC_RELOC_PB_LA_PTR-3]
    15  	_ = x[GENERIC_RELOC_LOCAL_SECTDIFF-4]
    16  	_ = x[GENERIC_RELOC_TLV-5]
    17  }
    18  
    19  const _RelocTypeGeneric_name = "GENERIC_RELOC_VANILLAGENERIC_RELOC_PAIRGENERIC_RELOC_SECTDIFFGENERIC_RELOC_PB_LA_PTRGENERIC_RELOC_LOCAL_SECTDIFFGENERIC_RELOC_TLV"
    20  
    21  var _RelocTypeGeneric_index = [...]uint8{0, 21, 39, 61, 84, 112, 129}
    22  
    23  func (i RelocTypeGeneric) String() string {
    24  	idx := int(i) - 0
    25  	if i < 0 || idx >= len(_RelocTypeGeneric_index)-1 {
    26  		return "RelocTypeGeneric(" + strconv.FormatInt(int64(i), 10) + ")"
    27  	}
    28  	return _RelocTypeGeneric_name[_RelocTypeGeneric_index[idx]:_RelocTypeGeneric_index[idx+1]]
    29  }
    30  func _() {
    31  	// An "invalid array index" compiler error signifies that the constant values have changed.
    32  	// Re-run the stringer command to generate them again.
    33  	var x [1]struct{}
    34  	_ = x[X86_64_RELOC_UNSIGNED-0]
    35  	_ = x[X86_64_RELOC_SIGNED-1]
    36  	_ = x[X86_64_RELOC_BRANCH-2]
    37  	_ = x[X86_64_RELOC_GOT_LOAD-3]
    38  	_ = x[X86_64_RELOC_GOT-4]
    39  	_ = x[X86_64_RELOC_SUBTRACTOR-5]
    40  	_ = x[X86_64_RELOC_SIGNED_1-6]
    41  	_ = x[X86_64_RELOC_SIGNED_2-7]
    42  	_ = x[X86_64_RELOC_SIGNED_4-8]
    43  	_ = x[X86_64_RELOC_TLV-9]
    44  }
    45  
    46  const _RelocTypeX86_64_name = "X86_64_RELOC_UNSIGNEDX86_64_RELOC_SIGNEDX86_64_RELOC_BRANCHX86_64_RELOC_GOT_LOADX86_64_RELOC_GOTX86_64_RELOC_SUBTRACTORX86_64_RELOC_SIGNED_1X86_64_RELOC_SIGNED_2X86_64_RELOC_SIGNED_4X86_64_RELOC_TLV"
    47  
    48  var _RelocTypeX86_64_index = [...]uint8{0, 21, 40, 59, 80, 96, 119, 140, 161, 182, 198}
    49  
    50  func (i RelocTypeX86_64) String() string {
    51  	idx := int(i) - 0
    52  	if i < 0 || idx >= len(_RelocTypeX86_64_index)-1 {
    53  		return "RelocTypeX86_64(" + strconv.FormatInt(int64(i), 10) + ")"
    54  	}
    55  	return _RelocTypeX86_64_name[_RelocTypeX86_64_index[idx]:_RelocTypeX86_64_index[idx+1]]
    56  }
    57  func _() {
    58  	// An "invalid array index" compiler error signifies that the constant values have changed.
    59  	// Re-run the stringer command to generate them again.
    60  	var x [1]struct{}
    61  	_ = x[ARM_RELOC_VANILLA-0]
    62  	_ = x[ARM_RELOC_PAIR-1]
    63  	_ = x[ARM_RELOC_SECTDIFF-2]
    64  	_ = x[ARM_RELOC_LOCAL_SECTDIFF-3]
    65  	_ = x[ARM_RELOC_PB_LA_PTR-4]
    66  	_ = x[ARM_RELOC_BR24-5]
    67  	_ = x[ARM_THUMB_RELOC_BR22-6]
    68  	_ = x[ARM_THUMB_32BIT_BRANCH-7]
    69  	_ = x[ARM_RELOC_HALF-8]
    70  	_ = x[ARM_RELOC_HALF_SECTDIFF-9]
    71  }
    72  
    73  const _RelocTypeARM_name = "ARM_RELOC_VANILLAARM_RELOC_PAIRARM_RELOC_SECTDIFFARM_RELOC_LOCAL_SECTDIFFARM_RELOC_PB_LA_PTRARM_RELOC_BR24ARM_THUMB_RELOC_BR22ARM_THUMB_32BIT_BRANCHARM_RELOC_HALFARM_RELOC_HALF_SECTDIFF"
    74  
    75  var _RelocTypeARM_index = [...]uint8{0, 17, 31, 49, 73, 92, 106, 126, 148, 162, 185}
    76  
    77  func (i RelocTypeARM) String() string {
    78  	idx := int(i) - 0
    79  	if i < 0 || idx >= len(_RelocTypeARM_index)-1 {
    80  		return "RelocTypeARM(" + strconv.FormatInt(int64(i), 10) + ")"
    81  	}
    82  	return _RelocTypeARM_name[_RelocTypeARM_index[idx]:_RelocTypeARM_index[idx+1]]
    83  }
    84  func _() {
    85  	// An "invalid array index" compiler error signifies that the constant values have changed.
    86  	// Re-run the stringer command to generate them again.
    87  	var x [1]struct{}
    88  	_ = x[ARM64_RELOC_UNSIGNED-0]
    89  	_ = x[ARM64_RELOC_SUBTRACTOR-1]
    90  	_ = x[ARM64_RELOC_BRANCH26-2]
    91  	_ = x[ARM64_RELOC_PAGE21-3]
    92  	_ = x[ARM64_RELOC_PAGEOFF12-4]
    93  	_ = x[ARM64_RELOC_GOT_LOAD_PAGE21-5]
    94  	_ = x[ARM64_RELOC_GOT_LOAD_PAGEOFF12-6]
    95  	_ = x[ARM64_RELOC_POINTER_TO_GOT-7]
    96  	_ = x[ARM64_RELOC_TLVP_LOAD_PAGE21-8]
    97  	_ = x[ARM64_RELOC_TLVP_LOAD_PAGEOFF12-9]
    98  	_ = x[ARM64_RELOC_ADDEND-10]
    99  }
   100  
   101  const _RelocTypeARM64_name = "ARM64_RELOC_UNSIGNEDARM64_RELOC_SUBTRACTORARM64_RELOC_BRANCH26ARM64_RELOC_PAGE21ARM64_RELOC_PAGEOFF12ARM64_RELOC_GOT_LOAD_PAGE21ARM64_RELOC_GOT_LOAD_PAGEOFF12ARM64_RELOC_POINTER_TO_GOTARM64_RELOC_TLVP_LOAD_PAGE21ARM64_RELOC_TLVP_LOAD_PAGEOFF12ARM64_RELOC_ADDEND"
   102  
   103  var _RelocTypeARM64_index = [...]uint16{0, 20, 42, 62, 80, 101, 128, 158, 184, 212, 243, 261}
   104  
   105  func (i RelocTypeARM64) String() string {
   106  	idx := int(i) - 0
   107  	if i < 0 || idx >= len(_RelocTypeARM64_index)-1 {
   108  		return "RelocTypeARM64(" + strconv.FormatInt(int64(i), 10) + ")"
   109  	}
   110  	return _RelocTypeARM64_name[_RelocTypeARM64_index[idx]:_RelocTypeARM64_index[idx+1]]
   111  }
   112  

View as plain text