diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-09-04 22:41:50 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-09-04 22:41:50 +0200 |
| commit | 02451bdebfe2685c283f6955488d978047e4e9d8 (patch) | |
| tree | 37979504506ad16221780db7b03fb160690d97b5 /src/link/Elf/Atom.zig | |
| parent | 7d396110d63c7c15d9fe12dbbfc63f1ab0700df4 (diff) | |
| download | zig-02451bdebfe2685c283f6955488d978047e4e9d8.tar.gz zig-02451bdebfe2685c283f6955488d978047e4e9d8.zip | |
elf: atom.index of 0 reserved for null atom
Diffstat (limited to 'src/link/Elf/Atom.zig')
| -rw-r--r-- | src/link/Elf/Atom.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/link/Elf/Atom.zig b/src/link/Elf/Atom.zig index 7edb36f0a4..aa1d3920fb 100644 --- a/src/link/Elf/Atom.zig +++ b/src/link/Elf/Atom.zig @@ -4,12 +4,12 @@ /// the symbol references, and adding that to the file offset of the section. /// If this field is 0, it means the codegen size = 0 and there is no symbol or /// offset table entry. -sym_index: u32, +sym_index: u32 = 0, /// Points to the previous and next neighbors, based on the `text_offset`. /// This can be used to find, for example, the capacity of this `TextBlock`. -prev_index: ?Index, -next_index: ?Index, +prev_index: ?Index = null, +next_index: ?Index = null, pub const Index = u32; |
