]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: stop requiring the math package on ARM
authorCherry Zhang <cherryyz@google.com>
Mon, 24 Feb 2020 22:10:50 +0000 (17:10 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 25 Feb 2020 18:45:59 +0000 (18:45 +0000)
It was needed for the old softfloat implementation, which has
long gone.

Change-Id: Ib8d53689209a3b003d62f84c7c6047d8ec5df859
Reviewed-on: https://go-review.googlesource.com/c/go/+/220719
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/lib.go

index 45cc87287c38a9e2d73408ef2f332b8427dd1c05..c2c08389001c108d7833c820655e419acc01d730 100644 (file)
@@ -409,9 +409,6 @@ func (ctxt *Link) loadlib() {
        }
 
        // load internal packages, if not already
-       if ctxt.Arch.Family == sys.ARM {
-               loadinternal(ctxt, "math")
-       }
        if *flagRace {
                loadinternal(ctxt, "runtime/race")
        }