scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit c237ebcf520436742745b1e80406e6c5d2591732
parent 88fe60fa8ec816384d0acd8eaef354190fe19a91
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 13 Dec 2017 07:54:27 +0000

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

Diffstat:
Mas/myro.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/as/myro.c b/as/myro.c @@ -190,6 +190,9 @@ reloc(Symbol *sym, 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) {