• David Crawshaw's avatar
    cmd/link: zero symtab fields correctly · 350b74bc
    David Crawshaw authored
    CL 69370 introduced a hasmain field to moduledata after the
    modulehashes slice. However that code was relying on the zeroing
    code after it to cover modulehashes if len(Shlibs) == 0. The
    hasmain field gets in the way of that. So clear modulehashes
    explicitly in that case.
    
    Found when looking at #22250. Not sure if it's related.
    
    Change-Id: I81050cb4554cd49e9f245d261ef422f97d026df4
    Reviewed-on: https://go-review.googlesource.com/70730
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    350b74bc
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...