aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-02-10 14:41:07 +0100
committerJakub Konka <kubkon@jakubkonka.com>2022-02-11 10:52:13 +0100
commitb9b1ab024063105a9adfe3828692867c91015dc6 (patch)
treeae0c2e67953f9fbb308ecb17d5bdd8438747cca9 /src/value.zig
parent08e2f5d08390d41b58c92707693385e5e2968fc8 (diff)
downloadzig-b9b1ab024063105a9adfe3828692867c91015dc6.tar.gz
zig-b9b1ab024063105a9adfe3828692867c91015dc6.zip
elf: store pointer relocations indexed by containing atom
In `getDeclVAddr`, it may happen that the target `Decl` has not been allocated space in virtual memory. In this case, we store a relocation in the linker-global table which we will iterate over when flushing the module, and fill in any missing address in the final binary. Note that for optimisation, if the address was resolved at the time of a call to `getDeclVAddr`, we skip relocating this atom. This commit also adds the glue code for lowering const slices in the ARM backend.
Diffstat (limited to 'src/value.zig')
0 files changed, 0 insertions, 0 deletions