• 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
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...