ulas: Removed section use from mlb agian.
authorLukas Krickl <lukas@krickl.dev>
Sun, 19 Jan 2025 06:34:18 +0000 (07:34 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 19 Jan 2025 06:34:18 +0000 (07:34 +0100)
.section will not work in mlb as intended for now because mlb requires
relative memory locations. This will need some more work.

TODO.md
man/ulas.5
src/ulas.c

diff --git a/TODO.md b/TODO.md
index 0d6c2cd5b119b3b93f0f3406f0f3c35f69f6eae2..125e4dc5ee03baba93b8e9832e533275b133899a 100644 (file)
--- 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
index ec22dfd0314f65244342092d4a250c7f81f9b26f..7a85c7786e2357855fc1d6cda23f5f38d46650b5 100644 (file)
@@ -142,8 +142,6 @@ The special value $ will evaluate to the current address.
 .SH section
   \.section <name>
   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
 
index b533cf2e0c373d5da3e4f2f361b6e6da29888360..d0b4a33a4dd050c59cbdc62e0f8e18ce25ef3d26 100644 (file)
@@ -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;