From ac2ec69e195ef7cb8d991e3db76dcc162cb45941 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Wed, 30 Aug 2023 04:57:57 +0000 Subject: all: use io.{SeekStart, SeekCurrent, SeekEnd} Currently we include these symbols in bootstrap code. Change-Id: I19b504237b0344f0e87cda0fbe651811c72daba1 GitHub-Last-Rev: 5134baec387659c5e2ca8c4fc65a5e73c07f00ce GitHub-Pull-Request: golang/go#62368 Reviewed-on: https://go-review.googlesource.com/c/go/+/524258 LUCI-TryBot-Result: Go LUCI Reviewed-by: qiulaidongfeng <2645477756@qq.com> Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Matthew Dempsky --- src/debug/pe/section.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug/pe/section.go') diff --git a/src/debug/pe/section.go b/src/debug/pe/section.go index 70d0c220ce..bab067e06b 100644 --- a/src/debug/pe/section.go +++ b/src/debug/pe/section.go @@ -54,7 +54,7 @@ func readRelocs(sh *SectionHeader, r io.ReadSeeker) ([]Reloc, error) { if sh.NumberOfRelocations <= 0 { return nil, nil } - _, err := r.Seek(int64(sh.PointerToRelocations), seekStart) + _, err := r.Seek(int64(sh.PointerToRelocations), io.SeekStart) if err != nil { return nil, fmt.Errorf("fail to seek to %q section relocations: %v", sh.Name, err) } -- cgit v1.3-5-g9baa