]> Cypherpunks repositories - gostls13.git/commit
cmd/link: mark DWARF function symbols as reachable
authorIan Lance Taylor <iant@golang.org>
Tue, 24 Jan 2017 01:30:41 +0000 (17:30 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 24 Jan 2017 03:37:56 +0000 (03:37 +0000)
commitaad06da2b9b293fd245626fc8e116e3b56654dae
tree2bbab3fcfaa9e342220214c13679d2f4f5175212
parentbe9dcfec293854bfb4a13737ba09801769daccbf
cmd/link: mark DWARF function symbols as reachable

Otherwise we don't emit any required ELF relocations when doing an
external link, because elfrelocsect skips unreachable symbols.

Fixes #18745.

Change-Id: Ia3583c41bb6c5ebb7579abd26ed8689370311cd6
Reviewed-on: https://go-review.googlesource.com/35590
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/link/internal/ld/dwarf.go
src/runtime/runtime-gdb_test.go