• Anthony Martin's avatar
    cmd/nm: don't add filename elements for m symbols · 272687ec
    Anthony Martin authored
    The compilers used to generate only one 'm' symbol
    to record the stack frame size for each function.
    
    In cmd/nm, the 'm' and 'f' symbols are handled in
    the same switch case with a special exception for
    the symbol described above called ".frame".
    
    Now that the compilers emit additional 'm' symbols
    for precise garbage collection of the stack, the
    current logic is incorrect. cmd/nm will attempt to
    interpret these new 'm' symbols as 'f' symbols and
    add them to the file name index table.
    
    This fails with an out-of-memory condition when
    zenter encounters an 'm' symbol with a very large
    value (usually the .args symbol indicating a
    variadic NOSPLIT function).
    
    R=iant
    CC=dave, gobot, golang-dev, rsc
    https://golang.org/cl/7962045
    272687ec
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
cov Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
ld Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
prof Loading commit data...
vet Loading commit data...
yacc Loading commit data...