tiny.tldr.formats.elf.layout.got
Defined in formats.elf.layout.
API (4)
Actions
Public operations.
Types and contracts
Public types and contracts.
Source
Source: lib/tldr/src/formats/elf/layout/got.zig
zig
const symbol = @import("symbol.zig");const SymbolRef = symbol.SymbolRef;pub const GotEntry = struct { ref: SymbolRef, offset: u64,};pub const GotLayout = struct { entries: []GotEntry = &.{}, pub fn deinit(self: *GotLayout, allocator: anytype) void { if (self.entries.len != 0) allocator.free(self.entries); } pub fn entryOffset(self: GotLayout, ref: SymbolRef) ?u64 { for (self.entries) |entry| { if (entry.ref.eql(ref)) return entry.offset; } return null; }};Source: lib/tldr/src/formats/elf/layout/root.zig:3
zig
pub const got = @import("got.zig");Audit
| Definitions | 5 |
|---|---|
| Public names | 9 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |