shithub: riscv

Download patch

ref: 010af9ba12213ccaf92a1d863dc1c971185ff7fb
parent: bbe6fe51b3151cb87d26db2c28c043f29d473e56
author: cinap_lenrek <[email protected]>
date: Sat Feb 1 04:52:06 EST 2014

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

--- a/sys/src/cmd/6l/asm.c
+++ b/sys/src/cmd/6l/asm.c
@@ -132,6 +132,7 @@
 	default:
 		diag("unknown header type %ld", HEADTYPE);
 	case 2:
+	case 3:
 	case 5:
 		seek(cout, HEADR+textsize, 0);
 		break;
@@ -165,6 +166,7 @@
 		switch(HEADTYPE) {
 		default:
 		case 2:
+		case 3:
 		case 5:
 			seek(cout, HEADR+textsize+datsize, 0);
 			break;
--- a/sys/src/cmd/6l/compat.c
+++ b/sys/src/cmd/6l/compat.c
@@ -50,6 +50,6 @@
 }
 
 void
-setmalloctag(void*, ulong)
+setmalloctag(void*, uintptr)
 {
 }
--- a/sys/src/cmd/6l/span.c
+++ b/sys/src/cmd/6l/span.c
@@ -668,9 +668,6 @@
 
 	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) {