tiny.tldr.formats.elf.relocation.output
Defined in formats.elf.relocation.
API (1)
Actions
Public operations.
Source
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
| Definitions | 2 |
|---|---|
| Public names | 3 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |