]> Cypherpunks repositories - gostls13.git/commitdiff
liblink: fix arm build
authorRuss Cox <rsc@golang.org>
Tue, 4 Mar 2014 19:59:08 +0000 (14:59 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 4 Mar 2014 19:59:08 +0000 (14:59 -0500)
The arm puts the text flags in a different place
than the other architectures. This needs to be
cleaned up.

TBR=minux
CC=golang-codereviews
https://golang.org/cl/71260043

src/liblink/obj5.c

index 91d13d8c1850637b5c7313d27ab5949f9691d29d..96d7aa052dda87c0acf2a9e8de77c93b1239995b 100644 (file)
@@ -411,7 +411,7 @@ addstacksplit(Link *ctxt, LSym *cursym)
                        }
 
                        if(!(p->reg & NOSPLIT))
-                               p = stacksplit(ctxt, p, autosize, !(cursym->text->from.scale&NEEDCTXT)); // emit split check
+                               p = stacksplit(ctxt, p, autosize, !(cursym->text->reg&NEEDCTXT)); // emit split check
                        
                        // MOVW.W               R14,$-autosize(SP)
                        p = appendp(ctxt, p);