diff options
Diffstat (limited to 'src/cmd/internal/objfile/elf.go')
| -rw-r--r-- | src/cmd/internal/objfile/elf.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/internal/objfile/elf.go b/src/cmd/internal/objfile/elf.go index 9048be7d73..8923290cff 100644 --- a/src/cmd/internal/objfile/elf.go +++ b/src/cmd/internal/objfile/elf.go @@ -127,6 +127,10 @@ func (f *elfFile) goarch() string { return "ppc64le" } return "ppc64" + case elf.EM_RISCV: + if f.elf.Class == elf.ELFCLASS64 { + return "riscv64" + } case elf.EM_S390: return "s390x" } |
