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>
// 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