scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit ff136f0ec39799a447752a1736173c4fa86917ab
parent d8efa5c5f4926ab97f083cba19e423dbb337d92c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  9 Sep 2017 20:37:25 +0200

[as] Add the ABS segment

This segment is used when it is needed to assemble something
in a specific address.

Diffstat:
Mas/emit.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/as/emit.c b/as/emit.c @@ -6,9 +6,15 @@ #include "../inc/scc.h" #include "as.h" +static Section abss = { + .name = "abs", + .flags = SREAD|SWRITE +}; + static Section bss = { .name = "bss", - .flags = SRELOC|SREAD|SWRITE + .flags = SRELOC|SREAD|SWRITE, + .next = &abss }; static Section data = {