Skip to documentation
SLOP

tiny.tldr.formats.elf.relocation.model

Reference tiny.tldr formats elf relocation model

Defined in formats.elf.relocation.

API (7)

Actions

Public operations.

Types and contracts

Public types and contracts.

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

Source

Called byCallsNo direct callsformats.elf.parserparseObjectWithOptionsformats.elf.parserparseObjectWithSelectionSummaryformats.elf.relocation.RelocationCountsdeinit
Static calls · unresolved targets: 0 · external targets: 1.

Source: lib/tldr/src/formats/elf/relocation/model.zig

zig
const std = @import("std");const elf = @import("../root.zig");const Allocator = std.mem.Allocator;const format = elf.format;const Rela = format.Rela;pub const RelocationRange = struct {    start: usize,    count: usize,};pub const ObjectParseOptions = struct {    strip_debug: bool = false,};pub const ParsedRelocations = struct {    relocations: []const Rela,    owned: bool,    ranges: []RelocationRange,    pub fn deinit(self: ParsedRelocations, allocator: Allocator) void {        if (self.owned and self.relocations.len != 0) allocator.free(@constCast(self.relocations));        if (self.ranges.len != 0) allocator.free(self.ranges);    }};pub const RelocationCounts = struct {    counts: []usize = &.{},    duplicate_targets: bool = false,    pub fn deinit(self: *RelocationCounts, allocator: Allocator) void {        if (self.counts.len != 0) allocator.free(self.counts);    }};pub const SectionMetadata = struct {    symtab_index: ?usize = null,    has_relocation_sections: bool = false,    has_group_sections: bool = false,};

Source: lib/tldr/src/formats/elf/relocation/root.zig:1

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

Audit

Definitions8
Public names17
Members11
Version26.7.0
Revisiondaab053ee433