• 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
..
data.c Loading commit data...
decodesym.c Loading commit data...
doc.go Loading commit data...
dwarf.c Loading commit data...
dwarf.h Loading commit data...
dwarf_defs.h Loading commit data...
elf.c Loading commit data...
elf.h Loading commit data...
go.c Loading commit data...
ldelf.c Loading commit data...
ldmacho.c Loading commit data...
ldpe.c Loading commit data...
lib.c Loading commit data...
lib.h Loading commit data...
macho.c Loading commit data...
macho.h Loading commit data...
pe.c Loading commit data...
pe.h Loading commit data...
symtab.c Loading commit data...