Fixes the build for 5l, and also removes an inconsequential bug in 8l.
R=rsc
CC=golang-dev
https://golang.org/cl/
4127051
cflush();
}
-void
-wputl(ushort w)
-{
- cput(w);
- cput(w>>8);
-}
-
void
hput(int32 l)
cflush();
}
-void
-lputl(int32 l)
-{
-
- cbp[3] = l>>24;
- cbp[2] = l>>16;
- cbp[1] = l>>8;
- cbp[0] = l;
- cbp += 4;
- cbc -= 4;
- if(cbc <= 0)
- cflush();
-}
-
void
cflush(void)
{
void cput(int);
void hput(int32);
void lput(int32);
+void lputb(int32);
void lputl(int32);
void* mysbrk(uint32);
void names(void);
return s->value;
}
-void
-wputl(uint16 w)
-{
- cput(w);
- cput(w>>8);
-}
-
-void
-wputb(uint16 w)
-{
- cput(w>>8);
- cput(w);
-}
-
-void
-lputb(int32 l)
-{
- cput(l>>24);
- cput(l>>16);
- cput(l>>8);
- cput(l);
-}
-
-void
-vputb(uint64 v)
-{
- lputb(v>>32);
- lputb(v);
-}
-
-void
-lputl(int32 l)
-{
- cput(l);
- cput(l>>8);
- cput(l>>16);
- cput(l>>24);
-}
-
-void
-vputl(uint64 v)
-{
- lputl(v);
- lputl(v>>32);
-}
-
vlong
datoff(vlong addr)
{
void span(void);
void undef(void);
vlong symaddr(Sym*);
+void vputb(uint64);
void vputl(uint64);
void wputb(uint16);
void wputl(uint16);
return s->value;
}
-void
-wputl(ushort w)
-{
- cput(w);
- cput(w>>8);
-}
-
-void
-wputb(ushort w)
-{
- cput(w>>8);
- cput(w);
-}
-
-void
-lputb(int32 l)
-{
- cput(l>>24);
- cput(l>>16);
- cput(l>>8);
- cput(l);
-}
-
-void
-lputl(int32 l)
-{
- cput(l);
- cput(l>>8);
- cput(l>>16);
- cput(l>>24);
-}
-
-void
-vputl(uvlong l)
-{
- lputl(l >> 32);
- lputl(l);
-}
-
vlong
datoff(vlong addr)
{
int n, c1, c2, c3, c4;
uint32 magic;
vlong import0, import1, eof;
- char *fld[10], *s, *t;
- int nfld;
+ char *t;
eof = Boffset(f) + len;
symt->size += 4;
}
+void
+wputl(ushort w)
+{
+ cput(w);
+ cput(w>>8);
+}
+
+void
+wputb(ushort w)
+{
+ cput(w>>8);
+ cput(w);
+}
+
+void
+lputb(int32 l)
+{
+ cput(l>>24);
+ cput(l>>16);
+ cput(l>>8);
+ cput(l);
+}
+
+void
+lputl(int32 l)
+{
+ cput(l);
+ cput(l>>8);
+ cput(l>>16);
+ cput(l>>24);
+}
+
+void
+vputb(uint64 v)
+{
+ lputb(v>>32);
+ lputb(v);
+}
+
+void
+vputl(uvlong v)
+{
+ lputl(v);
+ lputl(v >> 32);
+}
+
void
putsymb(Sym *s, char *name, int t, vlong v, vlong size, int ver, Sym *typ)
{