1
0
mirror of https://github.com/golang/go synced 2024-11-19 04:44:41 -07:00

cmd/link: disable DWARF when not generating symtab

Fixes #15166

Change-Id: I30284e3c0fb2c80b26a2572e2fb249b8018e85f9
Reviewed-on: https://go-review.googlesource.com/21587
Run-TryBot: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
David Crawshaw 2016-04-07 14:00:00 -04:00
parent 39f1ecd157
commit e6181eb9e1

View File

@ -1915,6 +1915,9 @@ func dwarfgeneratedebugsyms() {
if Debug['w'] != 0 { // disable dwarf if Debug['w'] != 0 { // disable dwarf
return return
} }
if Debug['s'] != 0 && HEADTYPE != obj.Hdarwin {
return
}
if HEADTYPE == obj.Hplan9 { if HEADTYPE == obj.Hplan9 {
return return
} }