diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2022-08-05 11:37:47 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2022-08-08 17:01:54 +0000 |
| commit | 0a86cd6857b9fb12a798b3dbcfb6974384aa07d6 (patch) | |
| tree | 0a484af459668a34ba679ffe4edf8641049e8980 /src/cmd/link/internal/loader/loader.go | |
| parent | 2493072db68a8f8b545bb2a6faebac0da0f01336 (diff) | |
| download | go-0a86cd6857b9fb12a798b3dbcfb6974384aa07d6.tar.xz | |
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>
Diffstat (limited to 'src/cmd/link/internal/loader/loader.go')
| -rw-r--r-- | src/cmd/link/internal/loader/loader.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/link/internal/loader/loader.go b/src/cmd/link/internal/loader/loader.go index 0cf9551fae..664f345ead 100644 --- a/src/cmd/link/internal/loader/loader.go +++ b/src/cmd/link/internal/loader/loader.go @@ -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() } |
