tiny.tldr.formats.elf.liveness
Defined in formats.elf.
API (5)
Actions
Public operations.
Namespaces
Public namespaces.
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);}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.
tiny.tldr.formats.elf.liveness.groups.mark[function] atlib/tldr/src/formats/elf/liveness/groups.zig:10tiny.tldr.formats.elf.liveness.roots.markReserved[function] atlib/tldr/src/formats/elf/liveness/roots.zig:15tiny.tldr.formats.elf.liveness.roots.markRetained[function] atlib/tldr/src/formats/elf/liveness/roots.zig:36tiny.tldr.formats.elf.liveness.state.deinit[function] atlib/tldr/src/formats/elf/liveness/state.zig:43tiny.tldr.formats.elf.liveness.state.discardUnmarked[function] atlib/tldr/src/formats/elf/liveness/state.zig:69tiny.tldr.formats.elf.liveness.state.init[function] atlib/tldr/src/formats/elf/liveness/state.zig:18tiny.tldr.formats.elf.liveness.symbols.mark[function] atlib/tldr/src/formats/elf/liveness/symbols.zig:21tiny.tldr.formats.elf.liveness.symbols.markRelocationTargets[function] atlib/tldr/src/formats/elf/liveness/symbols.zig:92
Audit
| Definitions | 2 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |