Skip to documentation
SLOP

tiny.tldr.formats.elf.layout.frame

Reference tiny.tldr formats elf layout frame

Defined in formats.elf.layout.

API (6)

Actions

Public operations.

Types and contracts

Public types and contracts.

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

Source

Called byCallsNo direct callsformats.elf.layout.objectehFrameSectionformats.elf.layout.framesectionAt
Static calls · unresolved targets: 0 · external targets: 1.

Source: lib/tldr/src/formats/elf/layout/frame.zig

zig
const elf = @import("../root.zig");const Rela = elf.format.Rela;pub const EhFramePieceLayout = struct {    input_offset: u64 = 0,    size: u64 = 0,    output_offset: u64 = 0,    patch_cie_pointer: bool = false,    cie_pointer: u32 = 0,};pub const EhFrameCieLayout = struct {    input_offset: u64 = 0,    output_offset: u64 = 0,};pub const EhFrameSectionLayout = struct {    present: bool = false,    pieces: []EhFramePieceLayout = &.{},    relocations: []Rela = &.{},    pub fn deinit(self: *EhFrameSectionLayout, allocator: anytype) void {        if (self.pieces.len != 0) allocator.free(self.pieces);        if (self.relocations.len != 0) allocator.free(self.relocations);    }    pub fn isPresent(self: EhFrameSectionLayout) bool {        return self.present;    }};pub fn sectionAt(sections: []const EhFrameSectionLayout, section_index: usize) ?EhFrameSectionLayout {    if (section_index >= sections.len) return null;    const eh_frame_section = sections[section_index];    if (!eh_frame_section.isPresent()) return null;    return eh_frame_section;}

Source: lib/tldr/src/formats/elf/layout/root.zig:2

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

Audit

Definitions7
Public names12
Members10
Version26.7.0
Revisiondaab053ee433