Skip to documentation
SLOP

tiny.tldr.formats.elf.relocation.output

Reference tiny.tldr formats elf relocation output

Defined in formats.elf.relocation.

API (1)

Actions

Public operations.

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

Source

Called byCallsformats.elf.got_tablecollectEntriesformats.elf.got_tablecollectEntriesWithIfuncprivate sourcelib.tldr.src.formats.elf.linkfirstUnresolvedRelocationprivate sourcelib.tldr.src.formats.elf.linkfirstUnsupportedRelocationprivate sourcelib.tldr.src.formats.elf.linkrequireResolvedRelocationSymbolsSerialformats.elf.parsersectionNameOrEmptyformats.elf.format.recordsectionIsAllocatedformats.elf.output_sectiondebugOutputIndexForNameformats.elf.relocation.outputsectionRelocationsAffectOutput
Static calls · unresolved targets: 0 · external targets: 0.

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

zig
const std = @import("std");const elf = @import("../root.zig");const format = elf.format;const output_section = elf.output_section;const parser = elf.parser;const ObjectFile = parser.ObjectFile;const debugOutputIndexForName = output_section.debugOutputIndexForName;const sectionIsAllocated = format.sectionIsAllocated;const sectionNameOrEmpty = parser.sectionNameOrEmpty;pub fn sectionRelocationsAffectOutput(object: ObjectFile, section_index: usize) bool {    if (section_index >= object.sections.len) return false;    const section = object.sections[section_index];    if (sectionIsAllocated(section)) return true;    if (section.section_type != std.elf.SHT_PROGBITS) return false;    return debugOutputIndexForName(sectionNameOrEmpty(object, section_index)) != null;}

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

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

Audit

Definitions2
Public names3
Members0
Version26.7.0
Revisiondaab053ee433