mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
39f1ecd157
commit
e6181eb9e1
1 changed files with 3 additions and 0 deletions
|
|
@ -1915,6 +1915,9 @@ func dwarfgeneratedebugsyms() {
|
|||
if Debug['w'] != 0 { // disable dwarf
|
||||
return
|
||||
}
|
||||
if Debug['s'] != 0 && HEADTYPE != obj.Hdarwin {
|
||||
return
|
||||
}
|
||||
if HEADTYPE == obj.Hplan9 {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue