Skip to content

Commit 8280455

Browse files
ianlancetaylorrsc
authored andcommitted
cmd/go: don't print phdrs running "go version" on ELF files
I assume this was for debugging purposes. Updates #31624 Change-Id: Ie158fde0574c9bbbd9d1b684f51af5681974aff7 Reviewed-on: https://go-review.googlesource.com/c/go/+/175449 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Russ Cox <[email protected]>
1 parent 7feb313 commit 8280455

File tree

1 file changed

+0
-1
lines changed
  • src/cmd/go/internal/version

1 file changed

+0
-1
lines changed

src/cmd/go/internal/version/exe.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ func (x *elfExe) Close() error {
8686

8787
func (x *elfExe) ReadData(addr, size uint64) ([]byte, error) {
8888
for _, prog := range x.f.Progs {
89-
fmt.Printf("%#x %#x %#x\n", addr, prog.Vaddr, prog.Vaddr+prog.Filesz)
9089
if prog.Vaddr <= addr && addr <= prog.Vaddr+prog.Filesz-1 {
9190
n := prog.Vaddr + prog.Filesz - addr
9291
if n > size {

0 commit comments

Comments
 (0)