This repository holds machine architecture information used by the Go toolchain. The parts needed in the main Go repository are copied in.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/arch.
The main issue tracker for the arch repository is located at https://go.dev/issues. Prefix your issue with "x/arch:" in the subject line, so it is easy to find.
Steps to build the changes:
- Make changes to the files in "arch/s390x" repo...
- Do a "git push" of local branch changes to here.. git push git@github.com:Vishwanatha-HD/arch.git...
- Edit the "src/cmd/internal/disasm/disasm.go" file to add "github.com:Vishwanatha-HD/arch/s390x/s390xasm" as an import path..
- From "src/cmd" directory, get the latest changes of the github.com/arch repo by executing "go get github.com/Vishwanatha-HD/arch@<latest_commit_id>" cmd...
- Execute "go mod tidy" command from "src/cmd" directory.. This will update the go.mod file with the github.com/arch repo with the latest commit hash..
- Execute "go mod vendor" command from "src/cmd/objdump" directory...
- Execute "go clean" and "go build" commands..
- This will create a "objdump" binary inside "src/cmd/objdump" directory..
- Execute "go clean", "go build" and "go test -c" commands from "arch/s390x/s390xasm" directory to build the local changes & create a s390xasm.test file..
- Use the "objdump" binary which is locally built inside "src/cmd/objdump" to disassemble the s390xasm.test file.. For eg..
- Execute the following command.. "/home/vishwa/golang/go/src/cmd/objdump/objdump -gnu s390xasm.test > <txt_file>"
- The new "txt_file" created will have the latest changes done to "arch/s390x/s390xasm" directory...