From 79d05e75ca38f0e4b9986bbba4cd56398428f9fb Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Wed, 14 Jun 2017 11:36:36 -0700 Subject: runtime: restore arm assembly stubs for div/mod These are used by DIV[U] and MOD[U] assembly instructions. Add a test in the stdlib so we actually exercise linking to these routines. Update #19507 Change-Id: I0d8e19a53e3744abc0c661ea95486f94ec67585e Reviewed-on: https://go-review.googlesource.com/45703 Reviewed-by: Cherry Zhang --- src/cmd/internal/obj/arm/asm5.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/internal/obj/arm/asm5.go b/src/cmd/internal/obj/arm/asm5.go index 04b1cb7442..417da44574 100644 --- a/src/cmd/internal/obj/arm/asm5.go +++ b/src/cmd/internal/obj/arm/asm5.go @@ -1480,10 +1480,10 @@ func buildop(ctxt *obj.Link) { deferreturn = ctxt.Lookup("runtime.deferreturn") - symdiv = ctxt.Lookup("_div") - symdivu = ctxt.Lookup("_divu") - symmod = ctxt.Lookup("_mod") - symmodu = ctxt.Lookup("_modu") + symdiv = ctxt.Lookup("runtime._div") + symdivu = ctxt.Lookup("runtime._divu") + symmod = ctxt.Lookup("runtime._mod") + symmodu = ctxt.Lookup("runtime._modu") var n int -- cgit v1.3