diff options
| author | Keith Randall <keithr@alum.mit.edu> | 2017-06-14 11:36:36 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2017-06-15 03:51:03 +0000 |
| commit | 79d05e75ca38f0e4b9986bbba4cd56398428f9fb (patch) | |
| tree | b3e363ce26fb39aed4cbcde6c144a71286ae0e10 /src/cmd/internal/obj | |
| parent | 90b7058ec4b73fe1da0e94ccd80d78835b6e32cb (diff) | |
| download | go-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/internal/obj')
| -rw-r--r-- | src/cmd/internal/obj/arm/asm5.go | 8 |
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 |
