diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-02-10 14:41:07 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-02-11 10:52:13 +0100 |
| commit | b9b1ab024063105a9adfe3828692867c91015dc6 (patch) | |
| tree | ae0c2e67953f9fbb308ecb17d5bdd8438747cca9 /src/stage1/parser.cpp | |
| parent | 08e2f5d08390d41b58c92707693385e5e2968fc8 (diff) | |
| download | zig-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/stage1/parser.cpp')
0 files changed, 0 insertions, 0 deletions
