diff --git a/src/debug/pe/file.go b/src/debug/pe/file.go index aa0955a133..e8b1a4f5e2 100644 --- a/src/debug/pe/file.go +++ b/src/debug/pe/file.go @@ -322,7 +322,7 @@ func (f *File) ImportedSymbols() ([]string, error) { return nil, nil } - pe64 := f.Machine == IMAGE_FILE_MACHINE_AMD64 || f.Machine == IMAGE_FILE_MACHINE_ARM64 + _, pe64 := f.OptionalHeader.(*OptionalHeader64) // grab the number of data directory entries var dd_length uint32