aboutsummaryrefslogtreecommitdiffstats
path: root/csc/linker.csc
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-07-30 09:59:44 -0700
committerRose Hogenson <rhogenson@posteo.net>2022-07-30 09:59:44 -0700
commit3f79dd1c6a34b7f6746ace3b4a9592ebb83eb15f (patch)
tree6a67d165639cfc2969bca63d1703f49b0cd36f35 /csc/linker.csc
parent22c476fbad2e9c132aacc59d3f913ba25bcf7a61 (diff)
downloadchromatopelma-3f79dd1c6a34b7f6746ace3b4a9592ebb83eb15f.tar.zst
Fix a bug in the linker label calculation.
Diffstat (limited to 'csc/linker.csc')
-rw-r--r--csc/linker.csc2
1 files changed, 1 insertions, 1 deletions
diff --git a/csc/linker.csc b/csc/linker.csc
index 6502cb0..5e4e678 100644
--- a/csc/linker.csc
+++ b/csc/linker.csc
@@ -109,7 +109,7 @@
(list 'alloc (list 'local 0) (list 'const (num-globals environment))))
(translate-globals
(loop for prog in programs
- for off = 0 then (+ off (length converted-prog))
+ for off = 1 then (+ off (length converted-prog))
for converted-prog = (translate-labels
prog
(make-label-map off prog))