summary refs log tree commit diff
path: root/hello.e
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-05-15 20:51:13 -0700
committerIrene Knapp <ireneista@irenes.space>2026-05-15 21:58:20 -0700
commit447921598269bae3e1406470015c37f23943cc74 (patch)
tree464583448ae74f83af637cefded39d8b3d431aff /hello.e
parent1af849abc637c4890285c4d3cc08d99faae2ea41 (diff)
make the label transformation work all the way, no crashing
the code doesn't quite run yet, that'll be a future CL

Force-Push: yes
Change-Id: I71e6a45127c1fc37906d902e36142c17afef2a21
Diffstat (limited to 'hello.e')
-rw-r--r--hello.e3
1 files changed, 2 insertions, 1 deletions
diff --git a/hello.e b/hello.e
index fcafa25..6c20295 100644
--- a/hello.e
+++ b/hello.e
@@ -4,7 +4,7 @@
   current-offset L!' cold-start
   1 :rax mov-reg64-imm32
   1 :rdi mov-reg64-imm64
-  origin L@' greeting + :rsi mov-reg64-imm64
+  L@' origin L@' greeting + :rsi mov-reg64-imm64
   L@' greeting-size :rdx mov-reg64-imm64
   syscall
   60 :rax mov-reg64-imm32
@@ -23,6 +23,7 @@
 ~ Everything directly called by all-contents has this same interface.
 ~
 : all-contents
+  0x08000000 L!' origin
   elf-file-header
   elf-program-header
   output-start-routine