6l: fix warning, setmalloctag declaration, missing header type cases

This commit is contained in:
cinap_lenrek 2014-02-01 09:52:06 +01:00
parent bbe6fe51b3
commit 010af9ba12
3 changed files with 3 additions and 4 deletions

View file

@ -132,6 +132,7 @@ asmb(void)
default:
diag("unknown header type %ld", HEADTYPE);
case 2:
case 3:
case 5:
seek(cout, HEADR+textsize, 0);
break;
@ -165,6 +166,7 @@ asmb(void)
switch(HEADTYPE) {
default:
case 2:
case 3:
case 5:
seek(cout, HEADR+textsize+datsize, 0);
break;

View file

@ -50,6 +50,6 @@ mysbrk(ulong size)
}
void
setmalloctag(void*, ulong)
setmalloctag(void*, uintptr)
{
}

View file

@ -668,9 +668,6 @@ asmandsz(Adr *a, int r, int rex, int m64)
rex &= (0x40 | Rxr);
v = a->offset;
if ((vlong)v != a->offset)
print("asmandsz: Trying to emit %#ullx and 32 bits is not sufficient\n",
a->offset);
t = a->type;
if(a->index != D_NONE) {
if(t >= D_INDIR) {