• Russ Cox's avatar
    cmd/nm, cmd/objdump: fix elf symbol types · 8e22903b
    Russ Cox authored
    Turns out elf.File.Sections is indexed by the actual
    section number, not the number minus one.
    I don't know why I thought the -1 was necessary.
    
    Fixes objdump test (and therefore build) on ELF systems.
    
    While we're here, fix bounds on gnuDump so that we
    don't crash when asked to disassemble outside
    the text segment. May fix Windows build or at least
    make the failure more interesting.
    
    TBR=iant
    CC=golang-codereviews
    https://golang.org/cl/92390043
    8e22903b
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...