Skip to documentation
SLOP

tiny.tldr.formats.elf.liveness.groups

Reference tiny.tldr formats elf liveness groups

Defined in formats.elf.liveness.

API (1)

Actions

Public operations.

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

Source

Called byCallsformats.elf.livenessdiscardUnreachableformats.elf.liveness.statemarkSectionformats.elf.liveness.groupsmark
Static calls · unresolved targets: 0 · external targets: 4.

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

zig
const root = @import("../../../root.zig");const elf = @import("../root.zig");const state = @import("state.zig");const model = root.model;const ObjectFile = elf.parser.ObjectFile;const SectionRef = elf.parser.SectionRef;const State = state.State;pub fn mark(    objects: []const ObjectFile,    group_memberships: *const elf.group.Index,    live: *State,    section_ref: SectionRef,) model.Error!void {    const object = objects[section_ref.object_index];    for (group_memberships.groupsForSection(section_ref)) |group_section_index| {        if (group_section_index >= object.sections.len) return error.MissingSection;        const group_bytes = try elf.group.bytes(object, object.sections[group_section_index]);        var member_iterator = elf.group.members(group_bytes);        while (member_iterator.next()) |member_index| {            try state.markSection(                live,                objects,                .{                    .object_index = section_ref.object_index,                    .section_index = member_index,                },            );        }    }}

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

zig
pub const groups = @import("groups.zig");

Audit

Definitions2
Public names2
Members0
Version26.7.0
Revisiondaab053ee433