Lines Matching defs:section
120 // relocation and returns updated addend by offset in the output section.
138 return getSectionSymbol(reloc.Index)->section->getOffset(reloc.Addend);
220 return getSectionSymbol(reloc.Index)->section->getOffset(reloc.Addend);
230 const WasmSection *section) {
231 if (!section)
234 ArrayRef<WasmRelocation> relocs = section->Relocations;
365 // Sadly we don't have section attributes yet for custom sections, so we
389 // A mergeable section with size 0 is useless because they don't have
390 // any data to merge. A mergeable string section with size 0 can be
441 // this as extra metadata in the `dylink` section.
463 // Returns the alignment for a custom section. This is used to concatenate
464 // custom sections with the same name into a single custom section.
466 // TODO: Add a section attribute for alignment in the linking spec.
534 const WasmSection §ion = wasmObj->getWasmSection(sec);
535 // Wasm objects can have at most one code and one data section.
536 if (section.Type == WASM_SEC_CODE) {
538 codeSection = §ion;
539 } else if (section.Type == WASM_SEC_DATA) {
541 dataSection = §ion;
542 } else if (section.Type == WASM_SEC_CUSTOM) {
544 uint32_t alignment = getCustomSectionAlignment(section);
545 if (shouldMerge(section))
546 customSec = make<MergeInputChunk>(section, this, alignment);
548 customSec = make<InputSection>(section, this, alignment);
551 customSections.back()->setRelocations(section.Relocations);
556 for (const WasmRelocation &reloc : section.Relocations)
697 InputChunk *section = customSectionsByIndex[sym.Info.ElementIndex];
701 if (section->discarded)
703 return make<SectionSymbol>(flags, section, this);
764 llvm_unreachable("section symbols cannot be undefined");