1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:44:48 -07:00

cmd/link: write dwarf sections

Also stop skipping TestExternalLinkerDWARF and
TestDefaultLinkerDWARF.

Fixes #10776.

Change-Id: Ia596a684132e3cdee59ce5539293eedc1752fe5a
Reviewed-on: https://go-review.googlesource.com/36983
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Alex Brainman 2017-02-08 12:47:43 +11:00
parent aada49038c
commit 29f061960d
2 changed files with 5 additions and 3 deletions

View File

@ -1482,7 +1482,11 @@ func dwarfgeneratedebugsyms(ctxt *Link) {
}
if Linkmode == LinkExternal {
if !Iself && Headtype != obj.Hdarwin {
switch {
case Iself:
case Headtype == obj.Hdarwin:
case Headtype == obj.Hwindows:
default:
return
}
}

View File

@ -19,7 +19,6 @@ func testCgoDWARF(t *testing.T, linktype int) {
}
func TestDefaultLinkerDWARF(t *testing.T) {
t.Skip("skipping broken test: see issue 10776")
testCgoDWARF(t, linkCgoDefault)
}
@ -28,6 +27,5 @@ func TestInternalLinkerDWARF(t *testing.T) {
}
func TestExternalLinkerDWARF(t *testing.T) {
t.Skip("skipping broken test: see issue 10776")
testCgoDWARF(t, linkCgoExternal)
}