• Russ Cox's avatar
    cmd/ld: fix line numbers when using fieldtrack · a14e143c
    Russ Cox authored
    USEFIELD is a special kind of NOP, so treat it like a NOP
    when generating the pc-ln table.
    
    There are more invasive fixes that could be applied here.
    I am going for minimum number of lines changed.
    
    The smallest test case we know of is five distinct Go files
    in four packages, and the bug only happens with
    GOEXPERIMENT=fieldtrack enabled, which we don't
    normally build with, so the test would never run
    meaningfully anyway.
    
    Fixes #5762.
    
    R=golang-dev, bradfitz
    CC=golang-dev
    https://golang.org/cl/10495044
    a14e143c
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...