diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2024-01-17 08:33:58 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2024-01-24 12:34:41 +0100 |
| commit | bd9d8bd462799c552eed9812484add68e498a3ee (patch) | |
| tree | 34bf18252080820f36a5645b065096cda403e091 /src/link/MachO/Symbol.zig | |
| parent | 9509fadbe38e77bc0f8b079c4d9def2937d81322 (diff) | |
| download | zig-bd9d8bd462799c552eed9812484add68e498a3ee.tar.gz zig-bd9d8bd462799c552eed9812484add68e498a3ee.zip | |
macho: create Atom for Decl in ZigObject
Diffstat (limited to 'src/link/MachO/Symbol.zig')
| -rw-r--r-- | src/link/MachO/Symbol.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/link/MachO/Symbol.zig b/src/link/MachO/Symbol.zig index 421e9bc02c..a86aea80b5 100644 --- a/src/link/MachO/Symbol.zig +++ b/src/link/MachO/Symbol.zig @@ -19,7 +19,7 @@ out_n_sect: u16 = 0, /// Index of the source nlist this symbol references. /// Use `getNlist` to pull the nlist from the relevant file. -nlist_idx: u32 = 0, +nlist_idx: Index = 0, /// Misc flags for the symbol packaged as packed struct for compression. flags: Flags = .{}, @@ -352,6 +352,10 @@ pub const Flags = packed struct { needs_got: bool = false, has_got: bool = false, + /// Whether the symbol contains __got_zig indirection. + needs_zig_got: bool = false, + has_zig_got: bool = false, + /// Whether the symbols contains __stubs indirection. stubs: bool = false, @@ -386,5 +390,6 @@ const std = @import("std"); const Atom = @import("Atom.zig"); const File = @import("file.zig").File; const MachO = @import("../MachO.zig"); +const Nlist = Object.Nlist; const Object = @import("Object.zig"); const Symbol = @This(); |
