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

8l: correct Plan 9 compiler warnings

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4390047
This commit is contained in:
Lucio De Re 2011-04-12 16:21:01 -04:00 committed by Russ Cox
parent 4fe9f57413
commit 36b6d1aaf2

View File

@ -307,6 +307,7 @@ elfsetupplt(void)
int int
archreloc(Reloc *r, Sym *s, vlong *val) archreloc(Reloc *r, Sym *s, vlong *val)
{ {
USED(s);
switch(r->type) { switch(r->type) {
case D_CONST: case D_CONST:
*val = r->add; *val = r->add;
@ -644,7 +645,7 @@ asmb(void)
{ {
int32 v, magic; int32 v, magic;
int a, dynsym; int a, dynsym;
uint32 va, fo, w, symo, startva, machlink; uint32 symo, startva, machlink;
ElfEhdr *eh; ElfEhdr *eh;
ElfPhdr *ph, *pph; ElfPhdr *ph, *pph;
ElfShdr *sh; ElfShdr *sh;
@ -776,7 +777,6 @@ asmb(void)
lputb(0L); lputb(0L);
lputb(~0L); /* gp value ?? */ lputb(~0L); /* gp value ?? */
break; break;
lputl(0); /* x */
case Hunixcoff: /* unix coff */ case Hunixcoff: /* unix coff */
/* /*
* file header * file header
@ -892,13 +892,10 @@ asmb(void)
debug['d'] = 1; debug['d'] = 1;
eh = getElfEhdr(); eh = getElfEhdr();
fo = HEADR;
startva = INITTEXT - HEADR; startva = INITTEXT - HEADR;
va = startva + fo;
w = segtext.filelen;
/* This null SHdr must appear before all others */ /* This null SHdr must appear before all others */
sh = newElfShdr(elfstr[ElfStrEmpty]); newElfShdr(elfstr[ElfStrEmpty]);
/* program header info */ /* program header info */
pph = newElfPhdr(); pph = newElfPhdr();
@ -1214,6 +1211,6 @@ genasmsym(void (*put)(Sym*, char*, int, vlong, vlong, int, Sym*))
put(nil, a->asym->name, 'p', a->aoffset, 0, 0, a->gotype); put(nil, a->asym->name, 'p', a->aoffset, 0, 0, a->gotype);
} }
if(debug['v'] || debug['n']) if(debug['v'] || debug['n'])
Bprint(&bso, "symsize = %ud\n", symsize); Bprint(&bso, "symsize = %uld\n", symsize);
Bflush(&bso); Bflush(&bso);
} }