1
0
mirror of https://github.com/golang/go synced 2024-11-11 20:20:23 -07:00

liblink: fix Plan 9 build

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/39280043
This commit is contained in:
David du Colombier 2013-12-09 07:55:53 -05:00 committed by Russ Cox
parent 7c17982f72
commit b9bed39714
4 changed files with 11 additions and 2 deletions

View File

@ -13,3 +13,5 @@ typedef uint uint32;
typedef vlong int64;
typedef uvlong uint64;
typedef int intptr;
typedef float float32;
typedef double float64;

View File

@ -13,3 +13,5 @@ typedef uint uint32;
typedef vlong int64;
typedef uvlong uint64;
typedef vlong intptr;
typedef float float32;
typedef double float64;

5
include/plan9/link.h Normal file
View File

@ -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"

View 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;