• Michael Hudson-Doyle's avatar
    cmd/link: fix size of filetab slice · cf125a36
    Michael Hudson-Doyle authored
    The linker writes the number of file symbols (Nhistfile) to the filetab slice
    and then Nhistfile offsets -- which means the slice contains Nhistfile+1
    entries, not just Nhistfile.
    
    I think this bug has been around since at least 1.4 but it's easier to trigger
    with shared libraries and a tiny binary that only has a couple of functions in
    it -- try go install -buildmode=shared std && go run -linkshared test/fixedbugs/issue4388.go.
    
    Change-Id: I6c0f01f1e607b9b2b96872e37ffce81281911504
    Reviewed-on: https://go-review.googlesource.com/16342
    Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    cf125a36
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...