Skip to documentation
SLOP

tiny.tldr.formats.elf.layout.object

Reference tiny.tldr formats elf layout object

Defined in formats.elf.layout.

API (4)

Actions

Public operations.

Types and contracts

Public types and contracts.

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

Source

Called byCallsNo direct callersformats.elf.layout.framesectionAtformats.elf.layout.objectehFrameSection
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callersformats.elf.layout.mergesectionAtformats.elf.layout.objectmergeSection
Static calls · unresolved targets: 0 · external targets: 0.

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

zig
const frame = @import("frame.zig");const merge = @import("merge.zig");const section = @import("section.zig");pub const ObjectLayout = struct {    sections: []section.SectionContribution,    common_symbols: []section.SectionContribution,    merge_sections: []merge.MergeSectionLayout,    eh_frame_sections: []frame.EhFrameSectionLayout,    pub fn deinit(self: *ObjectLayout, allocator: anytype) void {        if (self.common_symbols.len != 0) allocator.free(self.common_symbols);        for (self.merge_sections) |*merge_section| merge_section.deinit(allocator);        if (self.merge_sections.len != 0) allocator.free(self.merge_sections);        for (self.eh_frame_sections) |*eh_frame_section| eh_frame_section.deinit(allocator);        if (self.eh_frame_sections.len != 0) allocator.free(self.eh_frame_sections);    }};pub fn mergeSection(object_layout: ObjectLayout, section_index: usize) ?merge.MergeSectionLayout {    return merge.sectionAt(object_layout.merge_sections, section_index);}pub fn ehFrameSection(object_layout: ObjectLayout, section_index: usize) ?frame.EhFrameSectionLayout {    return frame.sectionAt(object_layout.eh_frame_sections, section_index);}

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

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

Audit

Definitions5
Public names9
Members4
Version26.7.0
Revisiondaab053ee433