tiny.tldr.formats.elf.section_state
Defined in formats.elf.
API (6)
Actions
Public operations.
Types and contracts
Public types and contracts.
Source
Source: lib/tldr/src/formats/elf/root.zig:24
zig
pub const section_state = @import("sections.zig");Source: lib/tldr/src/formats/elf/sections.zig
zig
const std = @import("std");const record = @import("record.zig");const Allocator = std.mem.Allocator;const Symbol = record.Symbol;pub const SectionRef = struct { object_index: usize, section_index: usize,};pub fn ensureDiscardedSections(allocator: Allocator, object: anytype) Allocator.Error![]bool { if (object.discarded_sections.len != 0) return object.discarded_sections; object.discarded_sections = try allocator.alloc(bool, object.sections.len); @memset(object.discarded_sections, false); return object.discarded_sections;}pub fn ensureFoldedSections(allocator: Allocator, object: anytype) Allocator.Error![]?SectionRef { if (object.folded_sections.len != 0) return object.folded_sections; object.folded_sections = try allocator.alloc(?SectionRef, object.sections.len); @memset(object.folded_sections, null); return object.folded_sections;}pub inline fn sectionDiscarded(object: anytype, section_index: usize) bool { if (section_index >= object.discarded_sections.len) return false; return object.discarded_sections[section_index];}pub inline fn foldedSection(object: anytype, section_index: usize) ?SectionRef { if (section_index >= object.folded_sections.len) return null; return object.folded_sections[section_index];}pub fn symbolSectionDiscarded(object: anytype, symbol: Symbol) bool { if (symbol.isUndefined() or symbol.isCommon() or symbol.isAbsolute()) return false; return sectionDiscarded(object, symbol.section_index);}Complete caller list for formats.elf.section_state.foldedSection
16 direct callers.
lib.tldr.src.formats.elf.address.cache.syntheticBoundaryAddress[function] — private source atlib/tldr/src/formats/elf/address/cache.zig:128in nearest public ownerlib.tldr.src.formats.elf.address.cachetiny.tldr.formats.elf.addressing.contribution_module.symbol[function] atlib/tldr/src/formats/elf/address/contribution.zig:15lib.tldr.src.formats.elf.address.symbol.sectionAddress[function] — private source atlib/tldr/src/formats/elf/address/symbol.zig:187in nearest public ownertiny.tldr.formats.elf.addressing.symbollib.tldr.src.formats.elf.ehframe.section.relocationTargetDiscarded[function] — private source atlib/tldr/src/formats/elf/ehframe/section.zig:173in nearest public ownertiny.tldr.formats.elf.ehframe.sectiontiny.tldr.formats.elf.got_table.collectEntries[function] atlib/tldr/src/formats/elf/got.zig:29tiny.tldr.formats.elf.got_table.collectEntriesWithIfunc[function] atlib/tldr/src/formats/elf/got.zig:65lib.tldr.src.formats.elf.icf.fold.sectionEligible[function] — private source atlib/tldr/src/formats/elf/icf/fold.zig:56in nearest public ownerlib.tldr.src.formats.elf.icf.foldlib.tldr.src.formats.elf.link.addDiscardedSectionRecords[function] — private source atlib/tldr/src/formats/elf/link.zig:803in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.firstUnresolvedRelocation[function] — private source atlib/tldr/src/formats/elf/link.zig:586in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.firstUnsupportedRelocation[function] — private source atlib/tldr/src/formats/elf/link.zig:467in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.hasSyntheticBoundarySection[function] — private source atlib/tldr/src/formats/elf/link.zig:635in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.requireResolvedRelocationSymbolsSerial[function] — private source atlib/tldr/src/formats/elf/link.zig:536in nearest public ownerlib.tldr.src.formats.elf.linktiny.tldr.formats.elf.liveness.roots.markReserved[function] atlib/tldr/src/formats/elf/liveness/roots.zig:15tiny.tldr.formats.elf.liveness.roots.markRetained[function] atlib/tldr/src/formats/elf/liveness/roots.zig:36lib.tldr.src.formats.elf.liveness.symbols.markSyntheticBoundarySections[function] — private source atlib/tldr/src/formats/elf/liveness/symbols.zig:65in nearest public ownertiny.tldr.formats.elf.liveness.symbolslib.tldr.src.formats.elf.relocation.application.buildJobs[function] — private source atlib/tldr/src/formats/elf/relocation/application.zig:80in nearest public ownertiny.tldr.formats.elf.relocation.application
Complete caller list for formats.elf.section_state.sectionDiscarded
16 direct callers.
lib.tldr.src.formats.elf.address.cache.syntheticBoundaryAddress[function] — private source atlib/tldr/src/formats/elf/address/cache.zig:128in nearest public ownerlib.tldr.src.formats.elf.address.cachelib.tldr.src.formats.elf.ehframe.section.relocationTargetDiscarded[function] — private source atlib/tldr/src/formats/elf/ehframe/section.zig:173in nearest public ownertiny.tldr.formats.elf.ehframe.sectiontiny.tldr.formats.elf.got_table.collectEntries[function] atlib/tldr/src/formats/elf/got.zig:29tiny.tldr.formats.elf.got_table.collectEntriesWithIfunc[function] atlib/tldr/src/formats/elf/got.zig:65lib.tldr.src.formats.elf.icf.fold.sectionEligible[function] — private source atlib/tldr/src/formats/elf/icf/fold.zig:56in nearest public ownerlib.tldr.src.formats.elf.icf.foldlib.tldr.src.formats.elf.link.addDiscardedSectionRecords[function] — private source atlib/tldr/src/formats/elf/link.zig:803in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.firstUnresolvedRelocation[function] — private source atlib/tldr/src/formats/elf/link.zig:586in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.firstUnsupportedRelocation[function] — private source atlib/tldr/src/formats/elf/link.zig:467in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.hasSyntheticBoundarySection[function] — private source atlib/tldr/src/formats/elf/link.zig:635in nearest public ownerlib.tldr.src.formats.elf.linklib.tldr.src.formats.elf.link.requireResolvedRelocationSymbolsSerial[function] — private source atlib/tldr/src/formats/elf/link.zig:536in nearest public ownerlib.tldr.src.formats.elf.linktiny.tldr.formats.elf.liveness.roots.markReserved[function] atlib/tldr/src/formats/elf/liveness/roots.zig:15tiny.tldr.formats.elf.liveness.roots.markRetained[function] atlib/tldr/src/formats/elf/liveness/roots.zig:36tiny.tldr.formats.elf.liveness.state.markSection[function] atlib/tldr/src/formats/elf/liveness/state.zig:54lib.tldr.src.formats.elf.liveness.symbols.markSyntheticBoundarySections[function] — private source atlib/tldr/src/formats/elf/liveness/symbols.zig:65in nearest public ownertiny.tldr.formats.elf.liveness.symbolslib.tldr.src.formats.elf.relocation.application.buildJobs[function] — private source atlib/tldr/src/formats/elf/relocation/application.zig:80in nearest public ownertiny.tldr.formats.elf.relocation.applicationtiny.tldr.formats.elf.section_state.symbolSectionDiscarded[function] atlib/tldr/src/formats/elf/sections.zig:36
Complete caller list for formats.elf.section_state.symbolSectionDiscarded
7 direct callers.
tiny.tldr.formats.elf.addressing.size.symbol[function] atlib/tldr/src/formats/elf/address/size.zig:15tiny.tldr.formats.elf.addressing.symbol.address[function] atlib/tldr/src/formats/elf/address/symbol.zig:25tiny.tldr.formats.elf.addressing.symbol.relocation[function] atlib/tldr/src/formats/elf/address/symbol.zig:100tiny.tldr.formats.elf.addressing.tls.offset[function] atlib/tldr/src/formats/elf/address/tls.zig:23tiny.tldr.formats.elf.got_table.canonicalSymbolRef[function] atlib/tldr/src/formats/elf/got.zig:104tiny.tldr.formats.elf.liveness.symbols.mark[function] atlib/tldr/src/formats/elf/liveness/symbols.zig:21tiny.tldr.formats.elf.symbol_table.globalSymbolCanBeAdded[function] atlib/tldr/src/formats/elf/symbol.zig:169
Audit
| Definitions | 7 |
|---|---|
| Public names | 8 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |