mirror of
https://github.com/golang/go
synced 2024-11-12 09:30:25 -07:00
cmd/link/internal/sym: uncomment code for ELF cases in RelocName
When this code was introduced, there were no R_MIPS, R_PPC64 and R_390 and build would fail with this code uncommented. Now we have those. Change-Id: I18a54eaa250db12e293f8e4d1f080f1dd2e66a4f Reviewed-on: https://go-review.googlesource.com/122896 Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
6ebc31f9fb
commit
ca8ba0675a
@ -83,11 +83,11 @@ func RelocName(arch *sys.Arch, r objabi.RelocType) string {
|
||||
case sys.I386:
|
||||
return elf.R_386(nr).String()
|
||||
case sys.MIPS, sys.MIPS64:
|
||||
// return elf.R_MIPS(nr).String()
|
||||
return elf.R_MIPS(nr).String()
|
||||
case sys.PPC64:
|
||||
// return elf.R_PPC64(nr).String()
|
||||
return elf.R_PPC64(nr).String()
|
||||
case sys.S390X:
|
||||
// return elf.R_390(nr).String()
|
||||
return elf.R_390(nr).String()
|
||||
default:
|
||||
panic("unreachable")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user