raz / commit a4419423

commit
a441942367d7e9db3a3b8a3454c74af1ff36526c
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
76a2b1b6
Self: Link.markLive picks the fixups with a match

Self: Link.markLive picks the fixups with a match

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

patch · log

1 file changed, +4 -5

self/Link.raz modified +4 -5

@@ -54,11 +54,10 @@
5454 end;
5555 (* code and constants have fixups; variables start at zero, holding
5656 no addresses *)
57- fx := nil;
58- if Chunk.chunks[c].sec = Chunk.secText then
59- fx := Chunk.fixups;
60- elsif Chunk.chunks[c].sec = Chunk.secRodata then
61- fx := Chunk.dataFixups;
57+ match Chunk.chunks[c].sec of
58+ | secText: fx := Chunk.fixups;
59+ | secRodata: fx := Chunk.dataFixups;
60+ | secBss: fx := nil;
6261 end;
6362 if fx # nil then
6463 for f := Chunk.chunks[c].firstFix to Chunk.chunks[c].firstFix + Chunk.chunks[c].numFix - 1 do