]> Cypherpunks repositories - gostls13.git/commitdiff
liblink: fix Plan 9 build
authorDavid du Colombier <0intro@gmail.com>
Mon, 9 Dec 2013 12:55:53 +0000 (07:55 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 9 Dec 2013 12:55:53 +0000 (07:55 -0500)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/39280043

include/plan9/386/u.h
include/plan9/amd64/u.h
include/plan9/link.h [new file with mode: 0644]
src/liblink/data.c

index 4736b8efb23cb3eb0645f17b24781fa84347c53a..1c4076b5ea295688cdb12d722e040feb8de53164 100644 (file)
@@ -13,3 +13,5 @@ typedef       uint    uint32;
 typedef        vlong   int64;
 typedef        uvlong  uint64;
 typedef        int     intptr;
+typedef        float   float32;
+typedef        double  float64;
index 090b2fa5c93bd4ab9091b5782827283add2b7db8..c2d4999383c95e2c60b45b13a2bfb549d6639ab2 100644 (file)
@@ -13,3 +13,5 @@ typedef       uint    uint32;
 typedef        vlong   int64;
 typedef        uvlong  uint64;
 typedef        vlong   intptr;
+typedef        float   float32;
+typedef        double  float64;
diff --git a/include/plan9/link.h b/include/plan9/link.h
new file mode 100644 (file)
index 0000000..f65971e
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#include "../link.h"
index 97d2260418d12a6ddf2bc73241a0d24a7a7c4edc..9a481b6e5e6d65820088999d8b87f537173c7f71 100644 (file)
@@ -99,7 +99,7 @@ savedata(Link *ctxt, LSym *s, Prog *p, char *pn)
                        s->p[off+i] = p->to.u.sval[i];
        } else if(p->to.type == ctxt->arch->D_CONST) {
                if(p->to.sym)
-                       goto Addr;
+                       goto addr;
                o = p->to.offset;
                fl = o;
                cast = (uchar*)&fl;
@@ -125,7 +125,7 @@ savedata(Link *ctxt, LSym *s, Prog *p, char *pn)
                        break;
                }
        } else if(p->to.type == ctxt->arch->D_ADDR || p->to.type == ctxt->arch->D_SIZE) {
-       Addr:
+       addr:
                r = addrel(s);
                r->off = off;
                r->siz = siz;