]> Cypherpunks repositories - gostls13.git/commitdiff
6l: add comment to CMOV* relocation
authorGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 1 Feb 2011 16:49:33 +0000 (11:49 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 1 Feb 2011 16:49:33 +0000 (11:49 -0500)
R=rsc
CC=golang-dev
https://golang.org/cl/4042045

src/cmd/6l/asm.c

index 2e401db9130a786837152303abd95ecec4e7ea77..f82fef543f2af081b6bd5772cbcab572e2a8f04c 100644 (file)
@@ -213,7 +213,8 @@ adddynrel(Sym *s, Reloc *r)
                                r->add += 4;
                                return;
                        }
-                       // unknown instruction (CMOV* maybe), use GOT
+                       // fall back to using GOT and hope for the best (CMOV*)
+                       // TODO: just needs relocation, no need to put in .dynsym
                        targ->dynimpname = targ->name;
                }
                addgotsym(targ);