diff --git a/src/go/internal/gccgoimporter/gccgoinstallation_test.go b/src/go/internal/gccgoimporter/gccgoinstallation_test.go index d9adcecab7c..ef293edcbec 100644 --- a/src/go/internal/gccgoimporter/gccgoinstallation_test.go +++ b/src/go/internal/gccgoimporter/gccgoinstallation_test.go @@ -2,10 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Exclude plan9 for now due to test failure with TestGoxImporter. -// TODO(gri) eliminate this build tag -// +build !plan9 - package gccgoimporter import ( diff --git a/src/go/internal/gccgoimporter/importer.go b/src/go/internal/gccgoimporter/importer.go index feb9849eefe..aa0d01afdf3 100644 --- a/src/go/internal/gccgoimporter/importer.go +++ b/src/go/internal/gccgoimporter/importer.go @@ -88,6 +88,12 @@ func openExportFile(fpath string) (reader io.ReadSeeker, closer io.Closer, err e if err != nil { return } + // reset to offset 0 - needed on Plan 9 (see issue #11265) + // TODO: remove once issue #11265 has been resolved. + _, err = f.Seek(0, 0) + if err != nil { + return + } var elfreader io.ReaderAt switch string(magic[:]) { diff --git a/src/go/internal/gccgoimporter/importer_test.go b/src/go/internal/gccgoimporter/importer_test.go index ce0dfb99efa..4fa01c762c9 100644 --- a/src/go/internal/gccgoimporter/importer_test.go +++ b/src/go/internal/gccgoimporter/importer_test.go @@ -2,10 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Exclude plan9 for now due to test failure with TestGoxImporter. -// TODO(gri) eliminate this build tag -// +build !plan9 - package gccgoimporter import (