]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: fix line numbers when using fieldtrack
authorRuss Cox <rsc@golang.org>
Tue, 25 Jun 2013 21:23:33 +0000 (17:23 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 25 Jun 2013 21:23:33 +0000 (17:23 -0400)
commita14e143c2173e106b1155905a41f5144e1a864b7
treeedcbfbffc29e82df646c1db7da57686308e38193
parent75aab1374196f454c9fa579863eaadbae2ac17c3
cmd/ld: fix line numbers when using fieldtrack

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
src/cmd/ld/lib.c