tiny.tldr.formats.elf.relocation.model
Defined in formats.elf.relocation.
API (7)
Actions
Public operations.
Types and contracts
Public types and contracts.
Source
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
| Definitions | 8 |
|---|---|
| Public names | 17 |
| Members | 11 |
| Version | 26.7.0 |
| Revision | daab053ee433 |