ref: e53dfc6f0afefa8191033a3a467a67846060c6e9
parent: 051a76e14d0004c2646546c79792f4536f6218d7
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Sep 9 16:37:25 EDT 2017
[as] Add the ABS segment This segment is used when it is needed to assemble something in a specific address.
--- 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 = {