aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorKeith Randall <keithr@alum.mit.edu>2017-06-14 11:36:36 -0700
committerKeith Randall <khr@golang.org>2017-06-15 03:51:03 +0000
commit79d05e75ca38f0e4b9986bbba4cd56398428f9fb (patch)
treeb3e363ce26fb39aed4cbcde6c144a71286ae0e10 /src/cmd
parent90b7058ec4b73fe1da0e94ccd80d78835b6e32cb (diff)
downloadgo-79d05e75ca38f0e4b9986bbba4cd56398428f9fb.tar.xz
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 <cherryyz@google.com>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/internal/obj/arm/asm5.go8
1 files changed, 4 insertions, 4 deletions
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