]> Cypherpunks repositories - gostls13.git/commit
cmd/link: eliminate a bunch of open coded elf64/rela switches
authorMatthew Dempsky <mdempsky@google.com>
Wed, 6 Apr 2016 06:01:10 +0000 (23:01 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 6 Apr 2016 17:25:19 +0000 (17:25 +0000)
commitec3c5b9d178ee373a41e46f6074c8729cfd11084
tree88cc16b23132cfc44f051a0752df9054ef0d5d8c
parent63cea5ac2b8ed0cf257c7bfe7ed13bdd42373a0c
cmd/link: eliminate a bunch of open coded elf64/rela switches

We already have variables to track whether the target platform is
64-bit vs 32-bit or RELA vs REL, so no point in repeating the list of
obscure architecture characters everywhere.

Passes toolstash/buildall.

Change-Id: I6a07f74188ac592ef229a7c65848a9ba93013cdb
Reviewed-on: https://go-review.googlesource.com/21569
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/symtab.go