mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
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>
This commit is contained in:
parent
033d09493d
commit
e256afff51
|
@ -37,9 +37,6 @@ go src=..
|
||||||
buildid
|
buildid
|
||||||
testdata
|
testdata
|
||||||
+
|
+
|
||||||
xcoff
|
|
||||||
testdata
|
|
||||||
+
|
|
||||||
gofmt
|
gofmt
|
||||||
gofmt.go
|
gofmt.go
|
||||||
gofmt_test.go
|
gofmt_test.go
|
||||||
|
@ -157,6 +154,9 @@ go src=..
|
||||||
trace
|
trace
|
||||||
testdata
|
testdata
|
||||||
+
|
+
|
||||||
|
xcoff
|
||||||
|
testdata
|
||||||
|
+
|
||||||
io
|
io
|
||||||
+
|
+
|
||||||
mime
|
mime
|
||||||
|
|
|
@ -9,7 +9,6 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"cmd/internal/xcoff"
|
|
||||||
"debug/dwarf"
|
"debug/dwarf"
|
||||||
"debug/elf"
|
"debug/elf"
|
||||||
"debug/macho"
|
"debug/macho"
|
||||||
|
@ -21,6 +20,7 @@ import (
|
||||||
"go/ast"
|
"go/ast"
|
||||||
"go/parser"
|
"go/parser"
|
||||||
"go/token"
|
"go/token"
|
||||||
|
"internal/xcoff"
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
@ -6,7 +6,6 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"cmd/internal/xcoff"
|
|
||||||
"debug/elf"
|
"debug/elf"
|
||||||
"debug/macho"
|
"debug/macho"
|
||||||
"debug/pe"
|
"debug/pe"
|
||||||
|
@ -14,6 +13,7 @@ import (
|
||||||
"go/ast"
|
"go/ast"
|
||||||
"go/printer"
|
"go/printer"
|
||||||
"go/token"
|
"go/token"
|
||||||
|
"internal/xcoff"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
package ssa_test
|
package ssa_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cmd/internal/xcoff"
|
|
||||||
"debug/dwarf"
|
"debug/dwarf"
|
||||||
"debug/elf"
|
"debug/elf"
|
||||||
"debug/macho"
|
"debug/macho"
|
||||||
"debug/pe"
|
"debug/pe"
|
||||||
"fmt"
|
"fmt"
|
||||||
"internal/testenv"
|
"internal/testenv"
|
||||||
|
"internal/xcoff"
|
||||||
"io"
|
"io"
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
2
src/cmd/dist/buildtool.go
vendored
2
src/cmd/dist/buildtool.go
vendored
|
@ -65,7 +65,6 @@ var bootstrapDirs = []string{
|
||||||
"cmd/internal/obj/wasm",
|
"cmd/internal/obj/wasm",
|
||||||
"cmd/internal/src",
|
"cmd/internal/src",
|
||||||
"cmd/internal/sys",
|
"cmd/internal/sys",
|
||||||
"cmd/internal/xcoff",
|
|
||||||
"cmd/link",
|
"cmd/link",
|
||||||
"cmd/link/internal/amd64",
|
"cmd/link/internal/amd64",
|
||||||
"cmd/link/internal/arm",
|
"cmd/link/internal/arm",
|
||||||
|
@ -90,6 +89,7 @@ var bootstrapDirs = []string{
|
||||||
"debug/elf",
|
"debug/elf",
|
||||||
"debug/macho",
|
"debug/macho",
|
||||||
"debug/pe",
|
"debug/pe",
|
||||||
|
"internal/xcoff",
|
||||||
"math/big",
|
"math/big",
|
||||||
"math/bits",
|
"math/bits",
|
||||||
"sort",
|
"sort",
|
||||||
|
|
|
@ -6,9 +6,9 @@ package buildid
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"cmd/internal/xcoff"
|
|
||||||
"debug/elf"
|
"debug/elf"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"internal/xcoff"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
package objfile
|
package objfile
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cmd/internal/xcoff"
|
|
||||||
"debug/dwarf"
|
"debug/dwarf"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"internal/xcoff"
|
||||||
"io"
|
"io"
|
||||||
"unicode"
|
"unicode"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"cmd/internal/bio"
|
"cmd/internal/bio"
|
||||||
"cmd/internal/objabi"
|
"cmd/internal/objabi"
|
||||||
"cmd/internal/sys"
|
"cmd/internal/sys"
|
||||||
"cmd/internal/xcoff"
|
|
||||||
"cmd/link/internal/sym"
|
"cmd/link/internal/sym"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"internal/xcoff"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ldSection is an XCOFF section with its symbols.
|
// ldSection is an XCOFF section with its symbols.
|
||||||
|
|
|
@ -64,7 +64,7 @@ func TestNonGoExecs(t *testing.T) {
|
||||||
"debug/pe/testdata/gcc-386-mingw-exec",
|
"debug/pe/testdata/gcc-386-mingw-exec",
|
||||||
"debug/plan9obj/testdata/amd64-plan9-exec",
|
"debug/plan9obj/testdata/amd64-plan9-exec",
|
||||||
"debug/plan9obj/testdata/386-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 {
|
for _, f := range testfiles {
|
||||||
exepath := filepath.Join(runtime.GOROOT(), "src", f)
|
exepath := filepath.Join(runtime.GOROOT(), "src", f)
|
||||||
|
|
|
@ -273,6 +273,7 @@ var pkgDeps = map[string][]string{
|
||||||
"internal/goroot": {"L4", "OS"},
|
"internal/goroot": {"L4", "OS"},
|
||||||
"internal/singleflight": {"sync"},
|
"internal/singleflight": {"sync"},
|
||||||
"internal/trace": {"L4", "OS", "container/heap"},
|
"internal/trace": {"L4", "OS", "container/heap"},
|
||||||
|
"internal/xcoff": {"L4", "OS", "debug/dwarf"},
|
||||||
"math/big": {"L4"},
|
"math/big": {"L4"},
|
||||||
"mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
|
"mime": {"L4", "OS", "syscall", "internal/syscall/windows/registry"},
|
||||||
"mime/quotedprintable": {"L4"},
|
"mime/quotedprintable": {"L4"},
|
||||||
|
|
Loading…
Reference in a new issue