shithub: scc

Download patch

ref: ecd902397f5fbc94804263b0f301db24ff2605d4
parent: 6b5ef4c2ebd7ad1d58bd740868b2d8f21336ee60
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Dec 13 02:54:27 EST 2017

[as/myro] Don't emit relocations in 1st pass

--- a/as/myro.c
+++ b/as/myro.c
@@ -190,6 +190,9 @@
 	size_t tmp;
 	Reloc *p;
 
+	if (pass == 1)
+		return;
+
 	if (relcap == relsiz) {
 		tmp = ((relcap + 1) * 3) / 2;
 		if ((p = realloc(relocs, tmp * sizeof(Reloc))) == NULL) {