go/src/cmd
Tamir Duberstein 531b6d3126 cmd/link: code cleanup in macho_combine_dwarf.go
- remove global variables
- add missing error checks
- add missing (*os.File).Close calls
- null-check text section correctly
- reduce some variable scopes
- use bytes.Buffer instead of appended slice
- reduce integer casting

Change-Id: Ib9ad41adefed4d61047f53e27046389182eef786
Reviewed-on: https://go-review.googlesource.com/c/go/+/218501
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
2020-02-24 13:25:13 +00:00
..
addr2line
api cmd/api: read std package info once, not per goos-goarch-cgo 2019-05-21 18:14:40 +00:00
asm cmd/internal/obj/riscv: use signed immediates for U-instructions 2020-01-28 02:39:28 +00:00
buildid
cgo cmd/cgo: better handling for '.' in pkgpath for gccgo 2019-11-19 19:38:07 +00:00
compile cmd/compile: consistently use OXXX for works relate to Op 2020-02-22 17:58:24 +00:00
cover syscall: respect permission bits on file opening on Windows 2019-10-22 10:09:39 +00:00
dist cmd/dist: test cgo internal linking PIE 2020-02-21 23:11:00 +00:00
doc cmd/doc: flag usage() inconsistency 2019-12-18 17:57:19 +00:00
fix cmd/fix: eliminate data races in TestRewrite and gofmt 2019-11-18 15:11:03 +00:00
go cmd/link: also apply R_ADDR relocation statically when internal linking PIE 2020-02-21 22:30:06 +00:00
gofmt cmd/fix, cmd/go, cmd/gofmt: refactor common code into new internal diff package 2019-10-28 23:59:10 +00:00
internal cmd/internal/moddeps: check for consistent versioning among all modules in GOROOT 2020-02-19 21:53:23 +00:00
link cmd/link: code cleanup in macho_combine_dwarf.go 2020-02-24 13:25:13 +00:00
nm all: base64-encode binaries that will cause Apple notarization to fail 2019-11-21 14:55:12 +00:00
objdump cmd/objdump: disable unsupported tests on riscv64 2020-01-25 05:48:12 +00:00
pack all: shorten some tests 2019-05-22 12:54:00 +00:00
pprof all: fix a number of misuses of the word "an" 2019-12-10 16:23:10 +00:00
test2json
trace cmd/trace: update to use WebComponents V0 polyfill 2020-02-20 19:12:11 +00:00
vendor all: update module dependencies 2020-02-19 21:26:10 +00:00
vet cmd/vet: add test for loading complex values with a single instruction 2019-11-05 01:01:31 +00:00
README.vendor
go.mod all: update module dependencies 2020-02-19 21:26:10 +00:00
go.sum all: update module dependencies 2020-02-19 21:26:10 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.