go icon indicating copy to clipboard operation
go copied to clipboard

debug/pe: riscv64 is not supported

Open alfonsosanchezbeato opened this issue 1 year ago • 2 comments

What version of Go are you using (go version)?

$ go version
go version go1.18.1 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/abeato/.cache/go-build"
GOENV="/home/abeato/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/abeato/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/abeato/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.18"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.18/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3245950783=/tmp/go-build -gno-record-gcc-switches"

What did you do?

IMAGE_FILE_MACHINE_RISCV64 is not supported in the debug/pe package. That should be a matter of simply adding a test for it in a couple of places, like in https://github.com/golang/go/commit/0ca0551f02257283d00c01303100a16433c526c6

What did you expect to see?

NA

What did you see instead?

NA

alfonsosanchezbeato avatar Aug 04 '22 09:08 alfonsosanchezbeato

CC @alexbrainman, @golang/riscv64.

dmitshur avatar Aug 04 '22 18:08 dmitshur

Change https://go.dev/cl/421357 mentions this issue: debug/pe: add IMAGE_FILE_MACHINE_RISCV64

gopherbot avatar Aug 05 '22 02:08 gopherbot