summary refs log tree commit diff
path: root/elf.e
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-09-07 22:08:39 -0700
committerIrene Knapp <ireneista@irenes.space>2026-09-07 22:08:39 -0700
commit08d58db689cac50ef582340e93047273f7759a37 (patch)
tree842477c73f0d4b4201143132d9158afdb91d1f19 /elf.e
parente42c36f0887de2bf2d5471e4eb59f6ad7cb79a21 (diff)
implement magic hex-transform comments
they work! that is, they show up in the output. to prove it, two of them are added to elf.e.

they don't yet deal with substring parameters, and there's some formatting niceties to consider.

Force-Push: yes
Change-Id: I0a0f72e21ca023bf99287880d52b5a8dddbf8e34
Diffstat (limited to 'elf.e')
-rw-r--r--elf.e3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf.e b/elf.e
index 7801bf6..a832c61 100644
--- a/elf.e
+++ b/elf.e
@@ -23,6 +23,7 @@
 ~   The only interesting thing here is the entry pointer.
 
 : elf-file-header
+  ~ : ELF file header
   ~ * denotes mandatory fields according to breadbox
   current-offset 3unroll
 
@@ -86,6 +87,7 @@
 
 ~ ~~
 : elf-program-header
+  ~ : ELF program header
   ~ * denotes mandatory fields according to breadbox
   current-offset L!' elf-program-header
   current-offset 3unroll
@@ -112,6 +114,7 @@
 ~ may be useful for other programs, such as hex.e. Its only difference from
 ~ the base version is that it adds the write permission.
 : elf-program-header-writable
+  ~ : ELF program header
   ~ * denotes mandatory fields according to breadbox
   current-offset L!' elf-program-header
   current-offset 3unroll