summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2018-12-05 17:23:25 +0100
committerIan Lance Taylor <iant@golang.org>2018-12-10 18:52:31 +0000
commite256afff51f49c872975f5a5f73faa46ee64c334 (patch)
treedf4072b61e19c0986b509634ce0cadebdb2d6b0b
parent033d09493d3dc03fda13801902b6e2e102b9d73c (diff)
downloadgo-git-e256afff51f49c872975f5a5f73faa46ee64c334.tar.gz
all: move cmd/internal/xcoff to internal/xcoff
This commit moves cmd/internal/xcoff package to internal/xcoff because it will be needed to add XCOFF support in go/internal/gccgoimporter. Change-Id: Id12df0c438fb7db4a6a458fc1478480851bf7771 Reviewed-on: https://go-review.googlesource.com/c/152719 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--misc/nacl/testzip.proto6
-rw-r--r--src/cmd/cgo/gcc.go2
-rw-r--r--src/cmd/cgo/out.go2
-rw-r--r--src/cmd/compile/internal/ssa/stmtlines_test.go2
-rw-r--r--src/cmd/dist/buildtool.go2
-rw-r--r--src/cmd/internal/buildid/buildid.go2
-rw-r--r--src/cmd/internal/objfile/xcoff.go2
-rw-r--r--src/cmd/link/internal/loadxcoff/ldxcoff.go2
-rw-r--r--src/cmd/nm/nm_test.go2
-rw-r--r--src/go/build/deps_test.go1
-rw-r--r--src/internal/xcoff/file.go (renamed from src/cmd/internal/xcoff/file.go)0
-rw-r--r--src/internal/xcoff/file_test.go (renamed from src/cmd/internal/xcoff/file_test.go)0
-rw-r--r--src/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec (renamed from src/cmd/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec)bin54694 -> 54694 bytes
-rw-r--r--src/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec (renamed from src/cmd/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec)bin57152 -> 57152 bytes
-rw-r--r--src/internal/xcoff/testdata/hello.c (renamed from src/cmd/internal/xcoff/testdata/hello.c)0
-rw-r--r--src/internal/xcoff/xcoff.go (renamed from src/cmd/internal/xcoff/xcoff.go)0
16 files changed, 12 insertions, 11 deletions
diff --git a/misc/nacl/testzip.proto b/misc/nacl/testzip.proto
index 720663db9b..d05219364d 100644
--- a/misc/nacl/testzip.proto
+++ b/misc/nacl/testzip.proto
@@ -37,9 +37,6 @@ go src=..
buildid
testdata
+
- xcoff
- testdata
- +
gofmt
gofmt.go
gofmt_test.go
@@ -157,6 +154,9 @@ go src=..
trace
testdata
+
+ xcoff
+ testdata
+ +
io
+
mime
diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go
index b59bfe68fe..e7766e740f 100644
--- a/src/cmd/cgo/gcc.go
+++ b/src/cmd/cgo/gcc.go
@@ -9,7 +9,6 @@ package main
import (
"bytes"
- "cmd/internal/xcoff"
"debug/dwarf"
"debug/elf"
"debug/macho"
@@ -21,6 +20,7 @@ import (
"go/ast"
"go/parser"
"go/token"
+ "internal/xcoff"
"math"
"os"
"strconv"
diff --git a/src/cmd/cgo/out.go b/src/cmd/cgo/out.go
index 401a87feca..0985a7e72e 100644
--- a/src/cmd/cgo/out.go
+++ b/src/cmd/cgo/out.go
@@ -6,7 +6,6 @@ package main
import (
"bytes"
- "cmd/internal/xcoff"
"debug/elf"
"debug/macho"
"debug/pe"
@@ -14,6 +13,7 @@ import (
"go/ast"
"go/printer"
"go/token"
+ "internal/xcoff"
"io"
"io/ioutil"
"os"
diff --git a/src/cmd/compile/internal/ssa/stmtlines_test.go b/src/cmd/compile/internal/ssa/stmtlines_test.go
index 6fc0239ffe..c71f8befd9 100644
--- a/src/cmd/compile/internal/ssa/stmtlines_test.go
+++ b/src/cmd/compile/internal/ssa/stmtlines_test.go
@@ -1,13 +1,13 @@
package ssa_test
import (
- "cmd/internal/xcoff"
"debug/dwarf"
"debug/elf"
"debug/macho"
"debug/pe"
"fmt"
"internal/testenv"
+ "internal/xcoff"
"io"
"runtime"
"testing"
diff --git a/src/cmd/dist/buildtool.go b/src/cmd/dist/buildtool.go
index 2db115e20e..71ed4ba8bc 100644
--- a/src/cmd/dist/buildtool.go
+++ b/src/cmd/dist/buildtool.go
@@ -65,7 +65,6 @@ var bootstrapDirs = []string{
"cmd/internal/obj/wasm",
"cmd/internal/src",
"cmd/internal/sys",
- "cmd/internal/xcoff",
"cmd/link",
"cmd/link/internal/amd64",
"cmd/link/internal/arm",
@@ -90,6 +89,7 @@ var bootstrapDirs = []string{
"debug/elf",
"debug/macho",
"debug/pe",
+ "internal/xcoff",
"math/big",
"math/bits",
"sort",
diff --git a/src/cmd/internal/buildid/buildid.go b/src/cmd/internal/buildid/buildid.go
index 8205f696eb..ac238d70ea 100644
--- a/src/cmd/internal/buildid/buildid.go
+++ b/src/cmd/internal/buildid/buildid.go
@@ -6,9 +6,9 @@ package buildid
import (
"bytes"
- "cmd/internal/xcoff"
"debug/elf"
"fmt"
+ "internal/xcoff"
"io"
"os"
"strconv"
diff --git a/src/cmd/internal/objfile/xcoff.go b/src/cmd/internal/objfile/xcoff.go
index f62a7edf89..d438c80226 100644
--- a/src/cmd/internal/objfile/xcoff.go
+++ b/src/cmd/internal/objfile/xcoff.go
@@ -7,9 +7,9 @@
package objfile
import (
- "cmd/internal/xcoff"
"debug/dwarf"
"fmt"
+ "internal/xcoff"
"io"
"unicode"
)
diff --git a/src/cmd/link/internal/loadxcoff/ldxcoff.go b/src/cmd/link/internal/loadxcoff/ldxcoff.go
index 7204d34388..7c863d79c5 100644
--- a/src/cmd/link/internal/loadxcoff/ldxcoff.go
+++ b/src/cmd/link/internal/loadxcoff/ldxcoff.go
@@ -9,10 +9,10 @@ import (
"cmd/internal/bio"
"cmd/internal/objabi"
"cmd/internal/sys"
- "cmd/internal/xcoff"
"cmd/link/internal/sym"
"errors"
"fmt"
+ "internal/xcoff"
)
// ldSection is an XCOFF section with its symbols.
diff --git a/src/cmd/nm/nm_test.go b/src/cmd/nm/nm_test.go
index 87baa09d38..1f2ad53ef2 100644
--- a/src/cmd/nm/nm_test.go
+++ b/src/cmd/nm/nm_test.go
@@ -64,7 +64,7 @@ func TestNonGoExecs(t *testing.T) {
"debug/pe/testdata/gcc-386-mingw-exec",
"debug/plan9obj/testdata/amd64-plan9-exec",
"debug/plan9obj/testdata/386-plan9-exec",
- "cmd/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec",
+ "internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec",
}
for _, f := range testfiles {
exepath := filepath.Join(runtime.GOROOT(), "src", f)
diff --git a/src/go/build/deps_test.go b/src/go/build/deps_test.go
index 7251274756..dd38cc0a6a 100644
--- a/src/go/build/deps_test.go
+++ b/src/go/build/deps_test.go
@@ -273,6 +273,7 @@ var pkgDeps = map[string][]string{
"internal/goroot": {"L4", "OS"},
"internal/singleflight": {"sync"},
"internal/trace": {"L4", "OS", "container/heap"},
+ "internal/xcoff": {"L4", "OS", "debug/dwarf"},
"math/big": {"L4"},
"mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
"mime/quotedprintable": {"L4"},
diff --git a/src/cmd/internal/xcoff/file.go b/src/internal/xcoff/file.go
index 0923b9fcf3..0923b9fcf3 100644
--- a/src/cmd/internal/xcoff/file.go
+++ b/src/internal/xcoff/file.go
diff --git a/src/cmd/internal/xcoff/file_test.go b/src/internal/xcoff/file_test.go
index a6722e9453..a6722e9453 100644
--- a/src/cmd/internal/xcoff/file_test.go
+++ b/src/internal/xcoff/file_test.go
diff --git a/src/cmd/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec b/src/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec
index 810e21a0df..810e21a0df 100644
--- a/src/cmd/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec
+++ b/src/internal/xcoff/testdata/gcc-ppc32-aix-dwarf2-exec
Binary files differ
diff --git a/src/cmd/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec b/src/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec
index 707d01ebd4..707d01ebd4 100644
--- a/src/cmd/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec
+++ b/src/internal/xcoff/testdata/gcc-ppc64-aix-dwarf2-exec
Binary files differ
diff --git a/src/cmd/internal/xcoff/testdata/hello.c b/src/internal/xcoff/testdata/hello.c
index 34d9ee7923..34d9ee7923 100644
--- a/src/cmd/internal/xcoff/testdata/hello.c
+++ b/src/internal/xcoff/testdata/hello.c
diff --git a/src/cmd/internal/xcoff/xcoff.go b/src/internal/xcoff/xcoff.go
index f8465d7289..f8465d7289 100644
--- a/src/cmd/internal/xcoff/xcoff.go
+++ b/src/internal/xcoff/xcoff.go