From: Lukas Krickl Date: Sun, 19 Jan 2025 06:34:18 +0000 (+0100) Subject: ulas: Removed section use from mlb agian. X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=929c08956ece5640188b60265a2d5ee333f7b019;p=ulas%2F.git ulas: Removed section use from mlb agian. .section will not work in mlb as intended for now because mlb requires relative memory locations. This will need some more work. --- diff --git a/TODO.md b/TODO.md index 0d6c2cd..125e4dc 100644 --- a/TODO.md +++ b/TODO.md @@ -6,3 +6,4 @@ - Add `.error` and `.warning` directives - Add failing tests for most failure cases - Assert `.section` in full test +- Make `.section` work in mlb files diff --git a/man/ulas.5 b/man/ulas.5 index ec22dfd..7a85c77 100644 --- a/man/ulas.5 +++ b/man/ulas.5 @@ -142,8 +142,6 @@ The special value $ will evaluate to the current address. .SH section \.section Defines a section name. - This is currently only used for mlb symbol files, but might be added to other areas in the future. - If no section was defined the .section directive will use pre-defined values for mlb outputs. .SH SEE ALSO diff --git a/src/ulas.c b/src/ulas.c index b533cf2..d0b4a33 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -366,11 +366,6 @@ int ulas_symbolset(const char *cname, int scope, struct ulas_tok tok, } int ulas_symbolout_mlbloc(FILE *dst, long addr) { - if (ulas.section[0] != '\0') { - fprintf(dst, "%s:", ulas.section); - return 0; - } - if (addr == -1) { fprintf(dst, "Unknown:"); return 0;