all: use io.Seek* instead of deprecated os.SEEK_*

These are available since Go 1.7. The version used for bootstrap is Go
1.17 for Go 1.20.

For #44505

Change-Id: I497c9f617baefdeb273cd115b08b6e31bd10aad2
Reviewed-on: https://go-review.googlesource.com/c/go/+/421634
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Tobias Klauser 2022-08-05 11:37:47 +02:00 committed by Tobias Klauser
parent 2493072db6
commit 0a86cd6857
8 changed files with 27 additions and 27 deletions

View file

@ -14,6 +14,7 @@ import (
"cmd/link/internal/sym"
"debug/elf"
"fmt"
"io"
"log"
"math/bits"
"os"
@ -2081,7 +2082,7 @@ func (l *Loader) Preload(localSymVersion int, f *bio.Reader, lib *sym.Library, u
l.addObj(lib.Pkg, or)
// The caller expects us consuming all the data
f.MustSeek(length, os.SEEK_CUR)
f.MustSeek(length, io.SeekCurrent)
return r.Fingerprint()
}