]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: fix PC deltas in DWARF line number table
authorIan Lance Taylor <iant@golang.org>
Tue, 10 Jun 2014 21:11:39 +0000 (14:11 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 10 Jun 2014 21:11:39 +0000 (14:11 -0700)
commit507afa68c5a3ce37a824288d19d8b8b0918a1530
tree0b461c951d14f9502e71faba320b378a5ec60f24
parentb91d2339bb80116d49656e6f07e0f8ff440b431e
cmd/ld: fix PC deltas in DWARF line number table

The putpclcdelta function set the DWARF line number PC to
s->value + pcline->pc, which is correct, but the code then set
the local variable pc to epc, which can be a different value.
This caused the next delta in the DWARF table to be wrong.

Fixes #8098.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/104950045
src/cmd/ld/dwarf.c