Commit b9bed397 authored by David du Colombier's avatar David du Colombier Committed by Russ Cox

liblink: fix Plan 9 build

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/39280043
parent 7c17982f
...@@ -13,3 +13,5 @@ typedef uint uint32; ...@@ -13,3 +13,5 @@ typedef uint uint32;
typedef vlong int64; typedef vlong int64;
typedef uvlong uint64; typedef uvlong uint64;
typedef int intptr; typedef int intptr;
typedef float float32;
typedef double float64;
...@@ -13,3 +13,5 @@ typedef uint uint32; ...@@ -13,3 +13,5 @@ typedef uint uint32;
typedef vlong int64; typedef vlong int64;
typedef uvlong uint64; typedef uvlong uint64;
typedef vlong intptr; typedef vlong intptr;
typedef float float32;
typedef double float64;
// 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"
...@@ -99,7 +99,7 @@ savedata(Link *ctxt, LSym *s, Prog *p, char *pn) ...@@ -99,7 +99,7 @@ savedata(Link *ctxt, LSym *s, Prog *p, char *pn)
s->p[off+i] = p->to.u.sval[i]; s->p[off+i] = p->to.u.sval[i];
} else if(p->to.type == ctxt->arch->D_CONST) { } else if(p->to.type == ctxt->arch->D_CONST) {
if(p->to.sym) if(p->to.sym)
goto Addr; goto addr;
o = p->to.offset; o = p->to.offset;
fl = o; fl = o;
cast = (uchar*)&fl; cast = (uchar*)&fl;
...@@ -125,7 +125,7 @@ savedata(Link *ctxt, LSym *s, Prog *p, char *pn) ...@@ -125,7 +125,7 @@ savedata(Link *ctxt, LSym *s, Prog *p, char *pn)
break; break;
} }
} else if(p->to.type == ctxt->arch->D_ADDR || p->to.type == ctxt->arch->D_SIZE) { } else if(p->to.type == ctxt->arch->D_ADDR || p->to.type == ctxt->arch->D_SIZE) {
Addr: addr:
r = addrel(s); r = addrel(s);
r->off = off; r->off = off;
r->siz = siz; r->siz = siz;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment