Skip to documentation
SLOP

tiny.tldr.formats.elf.diagnostic

Reference tiny.tldr formats elf diagnostic

Defined in formats.elf.

API (2)

Actions

Public operations.

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

Source

Called byCallsNo direct callsprivate sourcelib.tldr.src.formats.elf.linkrequireResolvedRelocationSymbolsSerialformats.elf.liveness.symbolsmarkformats.elf.diagnosticrecordUndefinedSymbol
Static calls · unresolved targets: 0 · external targets: 1.
Called byCallsprivate sourcelib.tldr.src.formats.elf.linkfailSupportedRelocationsprivate sourcelib.tldr.src.formats.elf.relocation.applicationbuildJobsprivate sourcelib.tldr.src.formats.elf.relocation.applicationrecordRelocationDiagnosticformats.elf.parsersectionNameOrEmptyformats.elf.diagnosticrecordUnsupportedRelocation
Static calls · unresolved targets: 0 · external targets: 3.

Source: lib/tldr/src/formats/elf/diagnostic.zig

zig
const root = @import("../../root.zig");const format = @import("format.zig");const parser = @import("parser.zig");const model = root.model;const ObjectFile = parser.ObjectFile;const Rela = format.Rela;const Symbol = format.Symbol;pub fn recordUndefinedSymbol(    options: model.LinkOptions,    object: ObjectFile,    symbol: Symbol,) void {    if (options.diagnostics) |diagnostics| {        diagnostics.recordUndefinedSymbol(object.name, symbol.name);    }}pub fn recordUnsupportedRelocation(    options: model.LinkOptions,    object: ObjectFile,    section_index: usize,    relocation: Rela,) void {    if (options.diagnostics) |diagnostics| {        const section_name = if (section_index < object.sections.len)            parser.sectionNameOrEmpty(object, section_index)        else            "";        const symbol_name = if (relocation.symbolIndex() < object.symbols.len)            object.symbols[@intCast(relocation.symbolIndex())].name        else            "";        diagnostics.recordUnsupportedRelocation(            object.name,            section_name,            symbol_name,            relocation.relocationType(),        );    }}

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

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

Audit

Definitions3
Public names3
Members0
Version26.7.0
Revisiondaab053ee433