Skip to documentation
SLOP

tiny.tldr.formats.elf.layout.got

Reference tiny.tldr formats elf layout got

Defined in formats.elf.layout.

API (4)

Actions

Public operations.

Types and contracts

Public types and contracts.

No direct callersNo direct callsformats.elf.layoutgot
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions5
Public names9
Members3
Version26.7.0
Revisiondaab053ee433