Skip to documentation
SLOP

tiny.tldr.formats.elf.liveness

Reference tiny.tldr formats elf liveness

Defined in formats.elf.

API (5)

Actions

Public operations.

Namespaces

Public namespaces.

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

Source

Source: lib/tldr/src/formats/elf/liveness/mark.zig:15

zig
pub fn discardUnreachable(    allocator: Allocator,    objects: []ObjectFile,    globals: *const std.StringHashMapUnmanaged(GlobalSymbol),    options: model.LinkOptions,) model.Error!void {    var live = try state.init(allocator, objects);    defer state.deinit(&live, allocator);    const entry = globals.get(options.entry_symbol) orelse return error.MissingEntrySymbol;    var group_memberships = try elf.group.Index.init(allocator, objects);    defer group_memberships.deinit(allocator);    try roots.markReserved(objects, &live);    try roots.markRetained(objects, &live);    try symbols.mark(objects, globals, &live, entry.ref, options);    var next: usize = 0;    while (next < live.pending.items.len) : (next += 1) {        const section_ref = live.pending.items[next];        try groups.mark(objects, &group_memberships, &live, section_ref);        try symbols.markRelocationTargets(objects, globals, &live, section_ref, options);    }    try state.discardUnmarked(&live, allocator, objects);}
Called byCallsNo direct callersformats.elf.liveness.groupsmarkformats.elf.liveness.rootsmarkReservedformats.elf.liveness.rootsmarkRetainedformats.elf.liveness.statedeinitformats.elf.liveness.statediscardUnmarked+3 moreformats.elf.livenessdiscardUnreachable
Static calls · unresolved targets: 1 · external targets: 2.

Source: lib/tldr/src/formats/elf/liveness/root.zig

zig
const mark = @import("mark.zig");pub const groups = @import("groups.zig");pub const roots = @import("roots.zig");pub const state = @import("state.zig");pub const symbols = @import("symbols.zig");pub const discardUnreachable = mark.discardUnreachable;

Source: lib/tldr/src/formats/elf/root.zig:14

zig
pub const liveness = @import("liveness/root.zig");

Complete call list for formats.elf.liveness.discardUnreachable

8 direct calls.

Audit

Definitions2
Public names2
Members0
Version26.7.0
Revisiondaab053ee433