{"record":{"id":"252be11e4e90e143","repo":"golang/go","slug":"s-v-unknown-relocation-type-v","errorCode":null,"errorMessage":"%s: %v: unknown relocation type %v","messagePattern":"(.+?): (.+?): unknown relocation type (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cmd/link/internal/loadpe/ldpe.go","lineNumber":412,"sourceCode":"\t\t\tcase sys.ARM64:\n\t\t\t\tswitch r.Type {\n\t\t\t\tcase IMAGE_REL_ARM64_ADDR32:\n\t\t\t\t\trType = objabi.R_ADDR\n\t\t\t\tcase IMAGE_REL_ARM64_ADDR64:\n\t\t\t\t\trType = objabi.R_ADDR\n\t\t\t\t\trSize = 8\n\t\t\t\tcase IMAGE_REL_ARM64_ADDR32NB:\n\t\t\t\t\trType = objabi.R_PEIMAGEOFF\n\t\t\t\tcase IMAGE_REL_ARM64_BRANCH26:\n\t\t\t\t\trType = objabi.R_CALLARM64\n\t\t\t\tcase IMAGE_REL_ARM64_PAGEBASE_REL21,\n\t\t\t\t\tIMAGE_REL_ARM64_PAGEOFFSET_12A,\n\t\t\t\t\tIMAGE_REL_ARM64_PAGEOFFSET_12L:\n\t\t\t\t\trType = objabi.R_ARM64_PCREL\n\t\t\t\t}\n\t\t\t}\n\t\t\tif rType == 0 {\n\t\t\t\treturn nil, fmt.Errorf(\"%s: %v: unknown relocation type %v\", pn, state.sectsyms[rsect], r.Type)\n\t\t\t}\n\t\t\tvar val int64\n\t\t\tswitch rSize {\n\t\t\tdefault:\n\t\t\t\tpanic(\"unexpected relocation size \" + strconv.Itoa(int(rSize)))\n\t\t\tcase 4:\n\t\t\t\tval = int64(int32(binary.LittleEndian.Uint32(state.sectdata[rsect][rOff:])))\n\t\t\tcase 8:\n\t\t\t\tval = int64(binary.LittleEndian.Uint64(state.sectdata[rsect][rOff:]))\n\t\t\t}\n\t\t\tvar rAdd int64\n\t\t\tif arch.Family == sys.ARM64 {\n\t\t\t\tswitch r.Type {\n\t\t\t\tcase IMAGE_REL_ARM64_BRANCH26:\n\t\t\t\t\t// This instruction doesn't support an addend.\n\t\t\t\tcase IMAGE_REL_ARM64_PAGEOFFSET_12A:\n\t\t\t\t\t// The addend is stored in the immediate field of the instruction.\n\t\t\t\t\t// Get the addend from the instruction.","sourceCodeStart":394,"sourceCodeEnd":430,"githubUrl":"https://github.com/golang/go/blob/b6b368adc57c96c3151d224d172029f233ead2c3/src/cmd/link/internal/loadpe/ldpe.go#L394-L430","documentation":"Error \"%s: %v: unknown relocation type %v\" thrown in golang/go.","triggerScenarios":"Thrown at src/cmd/link/internal/loadpe/ldpe.go:412 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"b6b368adc57c96c3151d224d172029f233ead2c3","analyzedAt":"2026-08-12T00:22:02.250Z","schemaVersion":2},"datasetVersion":"2026-08-12T08:17:17.861Z"}