shithub: scc

Download patch

ref: b5db11bdc0453df8725b2e62789ef41fa7b95d6b
parent: 2350408c1d99e368b249468b25753a4f0e6ad777
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Dec 18 16:56:36 EST 2017

[as] Fix cleansec()

We changed the meaning of the flags, so we had to change also
this condition that was inverted.

--- a/as/symbol.c
+++ b/as/symbol.c
@@ -236,7 +236,7 @@
 
 	for (sec = seclist; sec; sec = sec->next) {
 		sec->curpc = sec->pc = sec->base;
-		if (pass == 1 || !(sec->flags & SFILE))
+		if (pass == 1 || sec->flags & SFILE)
 			continue;
 
 		siz = sec->max - sec->base;