aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/dwarf/class_string.go9
-rw-r--r--src/debug/macho/reloctype_string.go58
2 files changed, 65 insertions, 2 deletions
diff --git a/src/debug/dwarf/class_string.go b/src/debug/dwarf/class_string.go
index 76de7cad31..163bed712a 100644
--- a/src/debug/dwarf/class_string.go
+++ b/src/debug/dwarf/class_string.go
@@ -23,11 +23,16 @@ func _() {
_ = x[ClassString-12]
_ = x[ClassReferenceAlt-13]
_ = x[ClassStringAlt-14]
+ _ = x[ClassAddrPtr-15]
+ _ = x[ClassLocList-16]
+ _ = x[ClassRngList-17]
+ _ = x[ClassRngListsPtr-18]
+ _ = x[ClassStrOffsetsPtr-19]
}
-const _Class_name = "ClassUnknownClassAddressClassBlockClassConstantClassExprLocClassFlagClassLinePtrClassLocListPtrClassMacPtrClassRangeListPtrClassReferenceClassReferenceSigClassStringClassReferenceAltClassStringAlt"
+const _Class_name = "ClassUnknownClassAddressClassBlockClassConstantClassExprLocClassFlagClassLinePtrClassLocListPtrClassMacPtrClassRangeListPtrClassReferenceClassReferenceSigClassStringClassReferenceAltClassStringAltClassAddrPtrClassLocListClassRngListClassRngListsPtrClassStrOffsetsPtr"
-var _Class_index = [...]uint8{0, 12, 24, 34, 47, 59, 68, 80, 95, 106, 123, 137, 154, 165, 182, 196}
+var _Class_index = [...]uint16{0, 12, 24, 34, 47, 59, 68, 80, 95, 106, 123, 137, 154, 165, 182, 196, 208, 220, 232, 248, 266}
func (i Class) String() string {
if i < 0 || i >= Class(len(_Class_index)-1) {
diff --git a/src/debug/macho/reloctype_string.go b/src/debug/macho/reloctype_string.go
index 9c2b13186e..cb31627e7e 100644
--- a/src/debug/macho/reloctype_string.go
+++ b/src/debug/macho/reloctype_string.go
@@ -4,6 +4,18 @@ package macho
import "strconv"
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[GENERIC_RELOC_VANILLA-0]
+ _ = x[GENERIC_RELOC_PAIR-1]
+ _ = x[GENERIC_RELOC_SECTDIFF-2]
+ _ = x[GENERIC_RELOC_PB_LA_PTR-3]
+ _ = x[GENERIC_RELOC_LOCAL_SECTDIFF-4]
+ _ = x[GENERIC_RELOC_TLV-5]
+}
+
const _RelocTypeGeneric_name = "GENERIC_RELOC_VANILLAGENERIC_RELOC_PAIRGENERIC_RELOC_SECTDIFFGENERIC_RELOC_PB_LA_PTRGENERIC_RELOC_LOCAL_SECTDIFFGENERIC_RELOC_TLV"
var _RelocTypeGeneric_index = [...]uint8{0, 21, 39, 61, 84, 112, 129}
@@ -14,6 +26,21 @@ func (i RelocTypeGeneric) String() string {
}
return _RelocTypeGeneric_name[_RelocTypeGeneric_index[i]:_RelocTypeGeneric_index[i+1]]
}
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[X86_64_RELOC_UNSIGNED-0]
+ _ = x[X86_64_RELOC_SIGNED-1]
+ _ = x[X86_64_RELOC_BRANCH-2]
+ _ = x[X86_64_RELOC_GOT_LOAD-3]
+ _ = x[X86_64_RELOC_GOT-4]
+ _ = x[X86_64_RELOC_SUBTRACTOR-5]
+ _ = x[X86_64_RELOC_SIGNED_1-6]
+ _ = x[X86_64_RELOC_SIGNED_2-7]
+ _ = x[X86_64_RELOC_SIGNED_4-8]
+ _ = x[X86_64_RELOC_TLV-9]
+}
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"
@@ -25,6 +52,21 @@ func (i RelocTypeX86_64) String() string {
}
return _RelocTypeX86_64_name[_RelocTypeX86_64_index[i]:_RelocTypeX86_64_index[i+1]]
}
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[ARM_RELOC_VANILLA-0]
+ _ = x[ARM_RELOC_PAIR-1]
+ _ = x[ARM_RELOC_SECTDIFF-2]
+ _ = x[ARM_RELOC_LOCAL_SECTDIFF-3]
+ _ = x[ARM_RELOC_PB_LA_PTR-4]
+ _ = x[ARM_RELOC_BR24-5]
+ _ = x[ARM_THUMB_RELOC_BR22-6]
+ _ = x[ARM_THUMB_32BIT_BRANCH-7]
+ _ = x[ARM_RELOC_HALF-8]
+ _ = x[ARM_RELOC_HALF_SECTDIFF-9]
+}
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"
@@ -36,6 +78,22 @@ func (i RelocTypeARM) String() string {
}
return _RelocTypeARM_name[_RelocTypeARM_index[i]:_RelocTypeARM_index[i+1]]
}
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[ARM64_RELOC_UNSIGNED-0]
+ _ = x[ARM64_RELOC_SUBTRACTOR-1]
+ _ = x[ARM64_RELOC_BRANCH26-2]
+ _ = x[ARM64_RELOC_PAGE21-3]
+ _ = x[ARM64_RELOC_PAGEOFF12-4]
+ _ = x[ARM64_RELOC_GOT_LOAD_PAGE21-5]
+ _ = x[ARM64_RELOC_GOT_LOAD_PAGEOFF12-6]
+ _ = x[ARM64_RELOC_POINTER_TO_GOT-7]
+ _ = x[ARM64_RELOC_TLVP_LOAD_PAGE21-8]
+ _ = x[ARM64_RELOC_TLVP_LOAD_PAGEOFF12-9]
+ _ = x[ARM64_RELOC_ADDEND-10]
+}
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"