From a441942367d7e9db3a3b8a3454c74af1ff36526c Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Tue, 13 Oct 2026 17:07:08 +0100 Subject: [PATCH] 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 --- diff --git a/self/Link.raz b/self/Link.raz index c93cc31..852dce6 100644 --- a/self/Link.raz +++ b/self/Link.raz @@ -54,11 +54,10 @@ end; (* code and constants have fixups; variables start at zero, holding no addresses *) - fx := nil; - if Chunk.chunks[c].sec = Chunk.secText then - fx := Chunk.fixups; - elsif Chunk.chunks[c].sec = Chunk.secRodata then - fx := Chunk.dataFixups; + match Chunk.chunks[c].sec of + | secText: fx := Chunk.fixups; + | secRodata: fx := Chunk.dataFixups; + | secBss: fx := nil; end; if fx # nil then for f := Chunk.chunks[c].firstFix to Chunk.chunks[c].firstFix + Chunk.chunks[c].numFix - 1 do