Change-Id: I6ed153b780c70fa90822e4daa5749478ac43afca
Reviewed-on: https://go-review.googlesource.com/c/go/+/312034
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Errorf(nil, "emitRelocations: could not find %q section", sect.Name)
}
+ if f.ctorsSect == nil {
+ return
+ }
+
f.ctorsSect.emitRelocations(ctxt.Out, func() int {
dottext := ldr.Lookup(".text", 0)
ctxt.Out.Write32(0)