mirror of https://github.com/golang/go.git
[dev.link] cmd/link: check for dwarf enabled in loadlibfull
Check dwarfEnabled before invoking dwarfConvertSymbols (not needed if we're not doing dwarf gen). Change-Id: Id7ea7d11c13524705d305596bf1468d4858216b6 Reviewed-on: https://go-review.googlesource.com/c/go/+/222157 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
cb2843704e
commit
24064a302c
|
|
@ -2068,6 +2068,9 @@ func dwarfGenerateDebugInfo(ctxt *Link) {
|
|||
// through dwarf DIE objects and rewrites loader.Sym refs to
|
||||
// sym.Symbol there as well. This is obviously a temporary function.
|
||||
func dwarfConvertSymbols(ctxt *Link) {
|
||||
if !dwarfEnabled(ctxt) {
|
||||
return
|
||||
}
|
||||
if *FlagNewDw2 {
|
||||
// don't convert since we're running phase 2 with loader
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue